Here are some git commands that I’ve used on my projects to make me look like I knew what I was doing, when in reality….I was winging it.
This command reverts back to the cleanest canvas (the most working version) and delete any unwanted dependencies which will update the remote repo.
git reset --hard CommitId && git clean -f
git push -f
This command helped me know which commit to revert to
git log --oneline