Matlab GIT which remote branch is being used.
12 ビュー (過去 30 日間)
古いコメントを表示
I am able to clone a GIT repository into my local sandbox, create a local branch, make changes, and commit to the local repository.
However, how do I know which branch does my change is going to be pushed into. How do I know which remote branch is associated with the local branch.
Using command line, I would do "git checkout --track origin/<branch name>".
Thanks for any help.
Norman
0 件のコメント
回答 (2 件)
Xiaodong
2015 年 4 月 16 日
Local branch is not associated with a remote repository or branch. In fact, you can choose the remote repository and the branch you want to push into. In git, you can use command
``` git push REPO BRANCH ```
Since Matlab only partially implemented the git interface, I am not sure if this command works for the Matlab 2015a. Help it works on your side.
0 件のコメント
Norman Lo
2015 年 4 月 16 日
1 件のコメント
Xiaodong
2015 年 4 月 16 日
I would think so. So far, the Git interface in Matlab has not been fully implemented yet (I just submitted a bug report on commit message). Therefore, I would suggest you to use command line instead of clicking buttons to make sure everything works as expected. Bugs or new features should direct to matlab's support team. Good luck!
参考
カテゴリ
Help Center および File Exchange で Git in MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!