1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
| git clone xxxx
git init
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
git config --global color.ui true
git config --global color.status auto git config --global color.diff auto git config --global color.branch auto git config --global color.interactive auto git config --global --unset http.proxy
git clone git+ssh://git@192.168.53.168/VT.git
git status
git add xyz
git add .
git commit -m 'xxx'
git commit --amend -m 'xxx'
git commit -am 'xxx'
git rm xxx
git rm -r *
git log
git log -1
git log -5 git log --stat
git log -p -m git show dfb02e6e4f2f7b573337763e5c0013802e392818
git show dfb02
git show HEAD
git show HEAD^
git tag
git tag -a v2.0 -m 'xxx'
git show v2.0
git log v2.0
git diff
git diff --cached
git diff HEAD^
git diff HEAD -- ./lib
git diff origin/master..master
git diff origin/master..master --stat
git remote add origin git+ssh://git@192.168.53.168/VT.git
git branch
git branch --contains 50089
git branch -a
git branch -r
git branch --merged
git branch --no-merged
git branch -m master master_copy
git checkout -b master_copy
git checkout -b master master_copy
git checkout features/performance
git checkout --track hotfixes/BJVEP933
git checkout v2.0
git checkout -b devel origin/develop
git checkout -- README
git merge origin/master
git cherry-pick ff44785404a8e
git push origin master
git push origin :hotfixes/BJVEP933
git push --tags
git fetch
git fetch --prune
git pull origin master
git mv README README2
git reset --hard HEAD
git rebase git branch -d hotfixes/BJVEP933
git branch -D hotfixes/BJVEP933
git ls-files
git show-branch
git show-branch --all
git whatchanged
git revert dfb02e6e4f2f7b573337763e5c0013802e392818
git ls-tree HEAD
git rev-parse v2.0
git reflog
git show HEAD@{5} git show master@{yesterday}
git log --pretty=format:'%h %s' --graph
git show HEAD~3 git show -s --pretty=raw 2be7fcb476 git stash
git stash list
git stash show -p stash@{0}
git stash apply stash@{0}
git grep "delete from"
git grep -e '#define' --and -e SORT_DIRENT git gc git fsck
|