![]() ![]() Read more about Interactive Rebase, including what to watch out for. This is because it allows you to change your commit history quite drastically - which is a dangerous process. ![]() In that case, we'll have to bring out the big guns: Git's " Interactive Rebase" tool is what we need here. Delete or change specific commitsĪnother use case might be to delete a commit "in the middle" of your history, without resetting your whole project to a previous revision. Our post explains the details of how to go about reverting commits. Interestingly, the command doesn't delete anything it creates a new commit that introduces changes which revert the effects of the specified commit. It adds a new commit, which undoes everything the. This is a case for the " git revert" command. There exists a safe way of deleting a commit in the middle of the history: using the git revert command. Undoing only a specific commitĪ different scenario is when you want to revert the effects of a certain commit - without deleting any commits that came afterwards. Read more in our detailed post about how to reset to a previous revision. In that case, the " git reset" command is what best suits your needs. Download Now for Free Restoring an old version of a projectÄo you want to restore an older revision of your project - just as it was at a certain point in time? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |