Git has a command that allows you to save the current state of the local working repository and go back to the last committed revision with git stash. This is really helpful when you have to develop an urgent fix. After this, you can restore the stashed changes and continue with your development.
To use this command, just execute the following command snippet:
To use this command, just execute the following command snippet:
$ git stash
Do your fix and then unstash edit:
$ git stash pop
$ git stash
$ git stash list
$ git stash apply stash@"1}
$ git stash drop stash@"1}
$ git stash clear
$ git stash branch mynewbranch
No comments:
Post a Comment