📌  相关文章
📜  如何在 git 中复制分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:23.153000             🧑  作者: Mango

代码示例2
# initial state 
commit 2 (65bc341)   O  <-- master
                     |
     (more commits) ...
                     |
commit 1 (125afe4)   O  <-- origin/master

# run command
git push origin 125afe4:refs/heads/master-copy

# result
commit 2 (65bc341)   O  <-- master
                     |
     (more commits) ...
                     |
commit 1 (125afe4)   O  <-- origin/master origin/master-copy