git 流程圖
當你輸入指令時,其實是針對一個實體檔案去做修正,那就是 .gitconfig
。
c:\\documents and settings\\user\\
~/.gitconfig
[alias] 可以自定義 git 縮寫
co = checkout
ci = commit
st = status
br = branch
# 初始化
git init
# 查詢狀態
git status
# 加入索引
git add .
# 提交新版本
git commit -m '<訊息>'
# 查詢版本
git log
# 新增分支
git branch <分支名>
# 切換分支
git checkout <分支名>