我有一个类似下面的场景,
Cloned the remote repo for the git url. Then the default remote branch showing local is say "D"
1 Created a new branch X
2 checkout X
3 did all the changes
4 added the files
5 Committed the files
6 and Did a rebase and pushed my branch to remote
7 And created a pull request一切都很顺利,但最后一天我不得不更新我的系统,不幸的是,我不得不重新安装操作系统和所有的应用程序……
有没有办法下载分支X并在拉取请求被拒绝或未被拒绝的情况下继续工作。(就像什么都没发生过一样)分支X只是我的分支,其他人不应该在git登录中看到它
发布于 2020-06-05 00:55:11
要获取所有远程分支的列表,请使用
git branch -a要使用远程分支在本地创建新分支,请执行以下操作
git checkout -b <local-branch-name> remotes/origin/<remote-branch-name>https://stackoverflow.com/questions/62199712
复制相似问题