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

8 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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".

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Source Control 的更多信息

标签

尚未输入任何标签。

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by