Git Help
I accidentally made a commit before switching off the master branch.
git reset --hard HEAD^
I made commits to master but did not push
https://stackoverflow.com/questions/1628563/move-the-most-recent-commits-to-a-new-branch-with-git
I checked a (large data) file into the repo and now I can't push to github
https://dalibornasevic.com/posts/2-permanently-remove-files-and-folders-from-git-repo
Push a bunch of small commits together (squash)
If you are working with github and using non-"Master" branches for development, you can squash the commits before merging through the website gui., but i haven't tried it.
Accidentally merged the wrong pull request/commit
https://intellipaat.com/community/21094/undo-merge-git-rollback-a-git-merge
Reset a file and lose all progress
https://www.norbauer.com/rails-consulting/notes/git-revert-reset-a-single-file
Pushed big changes to a repo. Now i want to reset my local repo to match master
https://stackoverflow.com/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files
Last updated