Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git stash only untracked files

You can do it with alias in ~/.gitconfig:

stash-untracked = "!f() {    
    git stash;               
    git stash -u;            
    git stash pop stash@{1}; 
}; f"
And then just do

git stash-untracked
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #stash #untracked #files
ADD COMMENT
Topic
Name
2+7 =