Git 常用命令(待續(xù))

Reference:

Git

git add filepath/filename
git commit -av % commit本地的修改內(nèi)容
git config --global core.editor vim 修改git的默認編輯器為vim
git reflog % 查看本地的git命令(只記錄clone checkout clone)
git rev-parse HEAD % 查看當前分支的版本號
git log % 會顯示所有人曾經(jīng)的commit.
git log --author="zhjhe"
git log --decorate
git log master..zhjhetest
git log master..HEAD % 查看兩個branch,或者兩個節(jié)點之間的不同.
git log master..HEAD --decorate

git log A..B http://www.cnblogs.com/irocker/p/advanced-git-log.html
>:~/Code/dkpro-core$ git reflog
1880579 HEAD@{0}: checkout: moving from master to zhjhetest
8c19525 HEAD@{1}: checkout: moving from zhjhetest to master
1880579 HEAD@{2}: checkout: moving from master to zhjhetest
8c19525 HEAD@{3}: checkout: moving from zhjhetest to master
1880579 HEAD@{4}: commit: Use commond "git add" to add new file (<----I just forgot to do this step in the last commit).
14c5525 HEAD@{5}: commit: Add Chinese CRF-NER model path to DKPro-CoreNLP(StanfordNLP), and add some print infos.
8c19525 HEAD@{6}: checkout: moving from master to zhjhetest
8c19525 HEAD@{7}: checkout: moving from zhjhetest to master
8c19525 HEAD@{8}: checkout: moving from master to zhjhetest
8c19525 HEAD@{9}: clone: from https://github.com/dkpro/dkpro-core.git

提交時常用的組合命令:

git diff
git status
git add filepath/filename
git commit -av
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • git常用命令 GIT常用命令備忘:http://stormzhang.com/git/2014/01/27/gi...
    新篇章閱讀 8,889評論 1 26
  • Add & Commit git init 初始化一個 Git 倉庫(repository),即把當前所在目錄變成...
    冬絮閱讀 5,155評論 0 9
  • 生活除了詩和遠方,也離不開一日三餐。但很多時候,吃并不僅僅是為了滿足生存之需,也不只是為了滿足口腹之欲,飲食之中其...
    夏亦吾閱讀 890評論 0 4
  • 可可不想用從來沒想到這樣的語句來形容她和阿奇的重逢。她知道,她會和阿奇再次見面,無論何時何地。 但是不得...
    鹿一鳴last閱讀 441評論 0 1
  • 冬日的午后氣溫很低,陽光暖暖的,透過車窗如果不了解天氣預(yù)報很難想象此時氣溫在零下20攝氏度,北方冬季的特點淋漓盡致...
    尷尬的領(lǐng)悟閱讀 272評論 0 0

友情鏈接更多精彩內(nèi)容