How to remove all commits in Git except the latest one?
89896
Make the current commit the only (initial) commit in a Git repository?
25070
Squash my last X commits together using Git
122315
Handling temporary changes (not to be committed) in Git
60861
Using git to get just the latest revision
53222
Undoing a 'git push'
122314
How to undo "git commit --amend" done instead of "git commit"
94501
How do I reduce the size of a bloated Git repo by non-interactively squashing all commits except for the most recent ones?
43600
How can I stop .gitignore from appearing in the list of untracked files?
122624
How to get a list of all files that changed between two Git commits?
34410
Move existing, uncommitted work to a new branch in Git
147234
Add all files to a commit except a single file?
121289
How to make Git "forget" about a file that was tracked but is now in .gitignore?
130733
Stash only one file out of multiple files that have changed with Git?
42987
How do I merge my local uncommitted changes into another Git branch?
74671
How to make Git ignore changes I'm making to a file (under source control)?
42569
Is there anyway to undo git push -f?
112299
Git: How to remove file from historical commit?