git diff <old hash>^..<new hash>
git tag <tag name> <commit hash>
git tag -l
git stash
git rebase -i HEAD~10
(or however many commits back you want to see)git stash pop
git add <files>
git commit --amend --no-edit
git rebase --continue
which will rewrite the rest of your commits against the new onegit stash
git rebase -i HEAD~10
(or however many commits back you want to see)git rebase --continue
$ git checkout master
$ git pull origin master
$ git rebase master <branch>
# Make manual changes as needed
$ git rebase --continue
Pushing a rebased branch to a remote will require --force
:
$ git push origin <branch> --force
IMPORTANT: Start with a fresh clone of the repository, not your working copy
git remote rm origin
git filter-branch --subdirectory-filter <directory> -- --all
$ git reset --hard
$ git gc --aggressive
$ git prune
$ git clean -fd
dnf install git-cvs rsh
$ git cvsimport -v -d <CVS repo path> <module>
# where CVS repo path is similar to
# :pserver:anonymous@a.cvs.sourceforge.net:/cvsroot/pcal
$ git apply --reject --whitespace=fix <patch>
$ wiggle --replace <file> <file.rej>
export GIT_PAGER=vim -c "runtime! macros/less.vim" -