Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

commited to wrong branch

# undo the last commit, but leave the changes available
git reset HEAD~ --soft
git stash
# move to the correct branch
git checkout name-of-the-correct-branch
git stash pop
git add . # or add individual files
git commit -m "your message here";
# now your changes are on the correct branch
Comment

fix commit on wrong branch

download git history extension for vscode and manage you history

https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
Comment

PREVIOUS NEXT
Code Example
Shell :: wise highlight ubuntu 
Shell :: run same command in different hosts 
Shell :: react spring version 8 
Shell :: fdart string to uri 
Shell :: catch input bash 
Shell :: autostart syncthing (replace myuser with your username) 
Shell :: change directory name lunix 
Shell :: filter in powershell Win32_NTEventlogFile 
Shell :: uninstall texlive 2019 in ubuntu 18.4 
Shell :: imstall prettier 
Shell :: debug chrome remote ssh 
Shell :: error while ruling prettier 
Shell :: how to copy stuff in git ter 
Shell :: vim emacs 
Shell :: override dh_dwz 
Shell :: bash check if can execute 
Shell :: linux seq leading zero 
Shell :: pi docker installieren 
Shell :: shell command operator and seperator control characters 
Shell :: other-alternatives-of-column-command 
Shell :: yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh 93684c35 
Shell :: chicken programming language hello world 
Shell :: WSL2 SystemD-Genie AutoStarts with windows 
Shell :: "scrapy shell" pass cookies to fetch 
Shell :: install gnuunicorn pip 
Shell :: vim delete all commented lines double forward slash 
Shell :: $FOO, or val if unset (or null) 
Shell :: ubuntu mouse lost focus 
Shell :: kali linux 2016 virtualbox password 
Shell :: i dont have pip, hoow to install pandas 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =