Git Submodule
Add submodule
git submodule add git@github.com:xxxxxxxxxConfirm submodule
git submodulOperetion
Edit In submodule
git add .
git commit -m ''
git pushIn Parent
git add .
git commit -m ''
git pushother woker
git pull
git submodule update -iDelete submodule
git submodule deinit repository
git rm -rf repository
vi .gitmoduledelete submodule
.git/configdelete submodule
rm -rf .git/modules/SUBMODULEGit stash
Save
git stash saveList
git stash listRstore
git stash apply stash@{0}
git stash apply stash@{0} --indexDelete
git stash drop stash@{0}Git commit
Reset 1 previous
git reset --hard HEAD^
git reset --soft HEAD^Change commit massage
git commit --amendCommit clearup
# when not commit
git commit --fixup <target hash>
git rebase -i --autosquash <the on before target hash >
# when commited
git rebase -i <the on before target hash >
tppkgit rebase -i --autosquash c441d237826d5f90d3cbebcaf741c7edaf06ce90Git branch
# list
git branch -a
# Create
git checkout -bGit log
# all
git log
# lines
git log -5
# Date
git log --since=2017-12-1
git log --until=2017-12-1
# Branch
git log exgit rebase
# git rebase
git rebase -i <hush_num>
#git rebase delete
git rebase --abort