Can I switch to a remote git branch through Matlab GUI?

13 ビュー (過去 30 日間)
Scott Senften
Scott Senften 2017 年 9 月 14 日
編集済み: Rajesh Balagam 2017 年 9 月 18 日
Is it possible to switch to a git branch which is remote and not, yet, local?
Under Source Control -> Branches, in the Branches pulldown, I can see all the available branches both local and remote (all prefaced with 'refs/remote/origin...'. If I select a local branch, I can switch to it. If I select a remote branch, I can not switch to it. If I check the remote branch out via the command line (git checkout myremotebranchname) and creates a local version then I switch to it.
Is it possible to do this all through the matlab GUI?

回答 (1 件)

Rajesh Balagam
Rajesh Balagam 2017 年 9 月 18 日
編集済み: Rajesh Balagam 2017 年 9 月 18 日
To check-out a specific remote 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".
At present, there is no easier workflow where you can just select the branch from the list.

カテゴリ

Help Center および File ExchangeSource Control についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by