Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to move unstaged changes to different branch

git stash
git checkout -b new-branch
git stash pop
Comment

how to move unstaged changes to different branch

git stash
git checkout correct-branch
git stash pop
Comment

undo unstaged changes git

git checkout -- .
Comment

git undo unstaged changes to one file

git restore file
Comment

commit unstaged changes to new branch

git checkout -b new_branch_name
Comment

revert unstaged changes git

git checkout -- path/to/file/to/revert
Comment

PREVIOUS NEXT
Code Example
Shell :: change desktop icon size ubuntu 
Shell :: how to delay a script from running linx terminal 
Shell :: open directory 
Shell :: how to open directory in linux using command 
Shell :: get ip address linux 
Shell :: where does pip install packages 
Shell :: remove a directory in ubuntu 
Shell :: start stop restart pm2 
Shell :: download images from url terminal 
Shell :: bash count occurrences of string in array 
Shell :: github to colab 
Shell :: terminal shortcut ubuntu 
Shell :: linux sort text file alphabetically 
Shell :: This is a GitLab CI configuration to build the project as a docker image 
Shell :: Push an existing repository to an empty github repository 
Shell :: debian libc-client.a). Please check your c-client installation 
Shell :: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. 
Shell :: how to set umask in linux 
Shell :: getting error while installing npm react-redux-form 
Shell :: stack navigator 
Shell :: debian 10 install jenkins 
Shell :: kivy vim plugin 
Shell :: how to delete image docker 
Shell :: c compiler with working fork 
Shell :: audacious music player 
Shell :: push to docker hub 
Shell :: your system lacks libtoolize 
Shell :: pull from dev branch to master 
Shell :: scp local to ssh aws 
Shell :: bash ignore stderr 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =