git的常用命令

$ git config --global user.name "姓名"

$ git config --global user.email "[email protected]"

$ git config -l    

查看配置信息

$ git commit -m "註釋"   

將暫存區內容提交至代碼庫


$ git commit --amend

修改最後一次提交的註釋



$ git init --bare

初始化空白的代碼倉庫,協同開發使用



$ git status

查看所有文件狀態  




$ git status 文件名

查看指定文件的狀態



$ git log

查看版本庫日誌 按字母 q 可以退出(關閉中文輸入法)


$ git log 文件名

查看指定文件的修訂記錄





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章