company just pushed a big release, and since we have a little down time, i'd like to clean up my git repo so that it's cleaner for the next release.
I've read this S.O. question/answers and found it pretty helpful. however, i find that there are some things missing, and i'd like to compile a full list of things to clean up. here's what i plan on doing:
- drop all unnecessary stashes
- delete remote branches that are merged into master from github
- go through github and remove all unmerged remote branches that are not needed
- run
git remote prune origin
- run
git gc
- clean up fsck: Listing and deleting Git commits that are under no branch (dangling?)
what else am i missing? or is there a better process for doing the 5 steps above? basically, i'd like to have a clean stash, clean list of local branches, clean list of remote branches...etc. and only see the things that are relevant.