Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

stash untracked files

git stash push -m "custom messsage" --include-untracked
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 :: netflix app ubuntu 
Shell :: wsl2 config file 
Shell :: set new git remote url 
Shell :: sed add a line after a match 
Shell :: firefox nightly linux curl install fedora 
Shell :: delete typeeset variable bash 
Shell :: shell less bin 
Shell :: bcmatch install 
Shell :: docker port entered blocking state 
Shell :: git undo changes single file 
Shell :: run powershell 64bit 
Shell :: calculate folder storage in command line 
Shell :: What does maven clean install -U do? 
Shell :: update your git identity 
Shell :: imagemagick merge multiple images 
Shell :: linux ubuntu "jetson Nano" disable ufw firewalld 
Shell :: add migrations inside specific directory 
Shell :: scipy optimize how to install 
Shell :: ros2 galactic build from source 
Shell :: how to use firework command in the linux ternimal 
Shell :: Update VS Code from Microsoft Repository 
Shell :: bash ps3 newline 
Shell :: ubuntu install curse of war 
Shell :: refname master is ambiguous 
Shell :: bash tab adds backslash before dollar sign 
Shell :: install ltrace with yum 
Shell :: docker run +"--entrypoint" args 
Shell :: stash recrusive submodules 
Shell :: kali qcow2 image download 
Shell :: xargs column cut linux 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =