1. 添加遠程倉庫地址
git remote add origin xxxxxxxxxxxx
2.初始化倉庫
git init
3.創建分支
git checkout -b xxxxxx
4. 查看當前分支
git branch
5. 查看遠程分支
git branch -a
6.合并分支
git merge fake-branch
7.洗掉指定分支
git branch -d fake-branch
8.將更改加入暫存區
git add -A
9.提交更改
git commit -m "fake-word"
10.切換分支
git checkout fake-branch
11.推送分支
git push origin master
12.已經被管理的檔案還沒有提交到暫存區的時候撤銷更改
git checkout .
13.放棄沒被管理(新創建的檔案)和檔案夾的更改
git checkout -f -d
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/215419.html
標籤:其他
