You can scramble the commit shas and messages if you want, if they contain sensitive information. Add the output of git log -oneline -graph -decorate to your question. To reach the Git command line, I just right-clicked on the Git directory and selected Git Bash Here (look at the image on step two above to see where it’s located). If you need help fixing the merge commit, it will help to see your current commit graph. Now for the next commit undo, which I wanted to do via the command line. Revert an Older Commit Via the Git Bash Command Line Here you can create a new branch that then points to the state of the repository (index) before the reset. I simply navigated through the Git directory in my file system and solved the conflict. When you had no uncommitted changes, you can easily open the RefLog dialog, select the last commit/entry before the reset and open the context menu. For the most part, my revert did happen, it just wasn’t able to auto-commit after the revert due to a conflict with a later commit. I, however, got a “Failed Revert” dialog that said “error: could not revert”:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |