![]() For example, maybe you added some files and made a commit, and then immediately realized you forgot something. If you made a mistake on your last commit and have not pushed yet, you can undo it. Undoing Your Last Commit (That Has Not Been Pushed) If working with a remote repo, you can now push those changes:.This will make a new commit that is the opposite of the existing commit, reverting the file(s) to their previous state as if it was never changed. ![]() To exit VIM, press : to enter command mode, then q for quit, and finally hit Return (Mac) or Enter (Windows). If you don't add that option, you'll end up in the VIM text editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |