Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

stash untracked files

git stash push -m "custom messsage" --include-untracked
Comment

stash with untracked git

git stash -u
Comment

git stash save untracked

git stash save -u "Message"
Comment

git stash untracked files

$ git statusOn branch mainChanges to be committed:    new file:   style.cssChanges not staged for commit:    modified:   index.htmlUntracked files:    script.js$ git stash -uSaved working directory and index state WIP on main: 5002d47 our new homepageHEAD is now at 5002d47 our new homepage$ git statusOn branch mainnothing to commit, working tree clean
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to do compress video in linux 
Shell :: test internet speed terminal linux 
Shell :: error gyp ERR! stack Error: not found: make 
Shell :: install git-lfs ubuntu 18.04 
Shell :: brew install gcloud 
Shell :: brew uninstall mysql 
Shell :: choco list installed 
Shell :: linux find files larger than 1gb 
Shell :: remove all the containers docker 
Shell :: how can I find perticular extension in ubuntu? 
Shell :: install zlib ubuntu 
Shell :: firewalld not running centos 7 
Shell :: dns flush windows 
Shell :: github ssh test 
Shell :: sudo: aptitude: command not found 
Shell :: install redis ubuntu 
Shell :: npm install --global yarn 
Shell :: ubuntu 18 ffmpeg install 
Shell :: remove oh my zsh ubuntu 
Shell :: how to check battery health of laptop in cmd 
Shell :: dos2unix recursive 
Shell :: stop all docker images 
Shell :: restart ssh service 
Shell :: uninstall scikit learn 
Shell :: linux set python 3 as default 
Shell :: git show graph command line 
Shell :: docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory 
Shell :: git config user 
Shell :: how to install pip in ubuntu 
Shell :: git delete local branches not on remote 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =