git init
建立新分支 backup
see branch
1 2 3 4 5 6
| git branch
git branch -r
git branch -a
|
checkout to branch
add all file
加入全部異動檔案
不論檔案狀態是 Untracked files 或是 Changes not staged for commit(紅色),都會一口氣變成 Changes to be committed(綠色)
1 2
| git add -A git add --all
|
and commit
1
| git commit -m "1st commit"
|
dump commit 紀錄
list commit
1 2 3 4
| git rev-list --remotes
git rev-list –all
|
add origin
1
| git remote add origin https://github.com/hot5656/blog.git
|
push origin to remote
1
| git push -u origin backup
|
dump remote server setting
change origin setting
1
| git remote set-url origin https://github.com/hot5656/blog.git
|
change modify status