git 常用命令简略罗列
git 常用命令简单罗列
git clone git@172.16.10.183:/home/git/repositories/testdemo
git init --bare
git commit -m "add a.txt"
git add .
commit -m "add a.txt"
git push -u origin master
git add remote origin git@172.16.10.183:testdemo
git status
git config -l
git remote
git remote -v
git commit -m "add a.txt"
git show log
git log
git status
git pull
git push origin
git remote
git remote -v
git diff
git status
git log
git diff a.txt
git reflog
git branch
git branch -a
git remote add origin git@172.16.10.183:/home/git/repositories/testdemo
git push -u
git push -u origin master
git pull
git push -u origin master
git commit -a
git checkout -b actionlock_redis-cluster origin/master
git push origin actionlock_redis-cluster
or
git checkout -b
gitgerric
git push 远程地址 本地分支:refs/for/远程分支
git push origin master:refs/for/master or git push origin HEAD:refs/for/master
git config --global user.name xxx@xxx.com
git config --global user.email xxx@xxx.com
git clone git@172.16.10.183:/home/git/repositories/testdemo
git init --bare
git commit -m "add a.txt"
git add .
commit -m "add a.txt"
git push -u origin master
git add remote origin git@172.16.10.183:testdemo
git status
git config -l
git remote
git remote -v
git commit -m "add a.txt"
git show log
git log
git status
git pull
git push origin
git remote
git remote -v
git diff
git status
git log
git diff a.txt
git reflog
git branch
git branch -a
git remote add origin git@172.16.10.183:/home/git/repositories/testdemo
git push -u
git push -u origin master
git pull
git push -u origin master
git commit -a
git checkout -b actionlock_redis-cluster origin/master
git push origin actionlock_redis-cluster
or
git checkout -b
gitgerric
git push 远程地址 本地分支:refs/for/远程分支
git push origin master:refs/for/master or git push origin HEAD:refs/for/master
git config --global user.name xxx@xxx.com
git config --global user.email xxx@xxx.com