Git随记:修订间差异

来自三线的随记
无编辑摘要
无编辑摘要
 
第30行: 第30行:


git update-index --no-assume-unchanged 
git update-index --no-assume-unchanged 
查看分支合并情况
git log --graph --pretty=oneline --abbrev-commit
[[分类:Linux]]
[[分类:Linux]]

2019年6月17日 (一) 02:46的最新版本

git config --global --edit

git commit --amend --reset-author

git config --global core.editor vim

git log - -abbrev-commit

git diff --no-index --color --ignore-all-space

git diff --ignore-all-space

git checkout -b 创建并切换分支

git branch List, create, or delete branches

git branch newBranch 创建分支

git reset

git checkout

git checkout -- ***** 把***文件在工作区的修改全部撤销,就是让这个文件回到最近一次git commitgit add时的状态。

git reset --hard

git reset HEAD <file>可以把暂存区的修改撤销掉(unstage),重新放回工作区:

git update-index --assume-unchanged 

git update-index --no-assume-unchanged 


查看分支合并情况

git log --graph --pretty=oneline --abbrev-commit