Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git how to not commit but keep changes

You can use git stash, which will save your changes without creating a commit.1

First, stash your changes:

$ git stash
Then switch to your other branch:

$ git checkout branch-B
When you're ready, go back to your original branch and unstash your changes:

$ git checkout branch-A
$ git stash pop
See the documentation linked above for more details and specifics on additional use cases.

Comment

PREVIOUS NEXT
Code Example
Shell :: backtick ubuntu 
Shell :: terminal mkv to mp4 
Shell :: digitalocean install lamp ubuntu 20.04 
Shell :: mac install glew 
Shell :: SCP copy a directory from a local to remote system 
Shell :: install go on mac brew 
Shell :: sail command not found 
Shell :: /bin/bash: ./darknet: No such file or directory 
Shell :: print batch 
Shell :: curl a zip 
Shell :: mongodb install windows 
Shell :: gsed comand store file 
Shell :: git stash 
Shell :: ssh codecommit 
Shell :: docker no space left on device ubuntu but only 75% use? 
Shell :: sed output to file 
Shell :: how to clear terminal in linux 
Shell :: bash if not 
Shell :: shell echo new line into file 
Shell :: tar append 
Shell :: add ssh key to github 
Shell :: installer-snap change in progress 
Shell :: docker exec it bash python 
Shell :: View Commit History With Changes 
Shell :: how to download files using cmd 
Shell :: login to docker registry from terminal 
Shell :: basename bash 
Shell :: git rename a local branch 
Shell :: download gif 
Shell :: rebase my fork branch 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =