我已经在一个项目中添加了多个远程仓库。
如何检查特定分支并将代码推送到该分支的远程仓库?
例如:
origin https://example1@bitbucket.org/username/repo.git (fetch)
origin https://example1@bitbucket.org/username/repo.git (push)
stash http://example2@stash.xyz.com/scm/omed/repo.git (fetch)
stash http://example2@stash.xyz.com/scm/omed/repo.git (push)
这里新增了两个远程分支。 目前我只有原始分支,没有隐藏分支。
我想列出特定远程仓库的所有分支。
当我执行 git branch -a
命令时,我只能看到来自原始仓库的分支。
我需要一个命令来列出隐藏远程分支。
git pull stash <branch-name>
和git push stash <branch-name>
。虽然stash不是远程的好名称... - Vishwanathgit checkout -b <branch-name> stash/<branch-name>
- Vishwanath