GIT tricks
Rebase squashing
sh
git rebase -i e417ef2d # commit to the last commit before the ones you want to squashIgnore locally without using gitignore
Add file to .git/info/exclude
Then run
sh
git update-index --assume-unchanged fileBranches
Delete branch
Locally
sh
git branch -d branch-nameRemote
sh
git push -d origin branch-nameReset local branch to origin
sh
git reset --hard origin/masterTags
Delete tag
Locally
sh
git tag -d tagnameRemote
sh
git push --delete origin tagnamePush tags after commit
sh
git push origin --tagsList tags ascending
sh
git tag --sort -v:refname