Good commit message guide: https://hashnode.com/post/which-commit-message-convention-do-you-use-at-work-ck3e4jbdd00zyo4s1h7mc7e0g
Basic git commands: https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html
git fetch origin
# is the best utility for cleaning outdated branches. It will connect to a shared remote repository remote and fetch all remote branch refs. It will then delete remote refs that are no longer in use on the remote repository
git fetch --prune
git branch --merged | grep -v \* | xargs git branch -D
git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done
git cherry-pick <commit_hash>
git reset --hard <commit_hash>
git push -f <remote_name> main
git branch -m <new_name>
git diff
git reset HEAD~
Guide: https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination
TODO
TODO
TODO