git checkout
1、本地從當前所在分支上創建一個新分支:
git checkout -b 新分支名
2、拉取遠程某個分支到本地:
git checkout -b 本地分支名 origin/遠程分支名
git push
非master分支都需要加上origin
git push origin 當前分支名
強制推送
git push -u origin master -f
git stash
git stash list 查看存儲區中的內容
git stash pop 彈出一個內容,先進後出
git stash drop -q stash@{1} 刪除儲區中爲1的內容