📌  相关文章
📜  从 github 拉分支 - Shell-Bash 代码示例

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

代码示例1
#pull changes from remote to local copy of same/current branch:
git pull

#create a new local branch
git checkout -b new-branch

#switch to an existing local branch
git checkout other-branch

#--track: remote branch speified is the basis for the newly-created local branch
git checkout -b new-branch --track origin/develop 

#restoring an old revision of a file:
git checkout  

#HEAD as the revision -> undo local changes to a file:
git checkout HEAD