![]() This is the only way to save untracked files: $ git stash -u or $ git stash -include-untracked Try this out by adding CSS-line high to your styles and stash it with a nice comment. Save a stash with a message: $ git stash save. There are a couple of other things you can do with a stash. If you want to keep the changes in the stash as well, you can use git stash apply instead. Popping your stash removes the changes from your stash and reapplies the last saved state. When you're ready to continue where you left off, you can restore the saved state easily: git stash pop. Your working directory is now clean and all uncommitted local changes have been saved! At this point, you're free to make new changes, create new commits, switch branches, and perform any other Git operations.īy default, stashes are identified as "WIP" – work in progress, on top of the branch and commit they are created from. Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |