How do I checkout a git branch which tracks my remote in MATLAB R2017a?

8 vues (au cours des 30 derniers jours)
I have cloned a remote git repository and in my local copy I now want to checkout a specific branch which already exists on the remote and I want my locally copy to track this remote. With command line git, if I wanted to checkout branch foo, I would simply use:
git checkout foo
And this would then automatically track the remote without further configuration needed.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 6 Sep 2018
To check-out a specific branch in MATLAB
1. Go to "Source Control" -> "Branches"
2. Under "Branch and Tag Creation", manually enter:
Source: origin/foo
Name: foo
Hit "Create".
3. Select the "foo" branch in the Branch Browser and click "Switch".

Plus de réponses (0)

Catégories

En savoir plus sur Source Control dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by