Git杂记

submodule

1
2
git submodule init
git submodule update

remote

1
2
git remote -v
git remote set-url origin git@github.com:gitusername/repository.git

修改committer&&不修改提交时间

1
git -c rebase.instructionFormat='%s%nexec GIT_COMMITTER_DATE="%cD" GIT_AUTHOR_DATE="%aD" git commit --amend --no-edit --reset-author' rebase --root