Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

change commit branch after push

//Back all commits
git reset --soft HEAD^
//If you see 'More', try alternatives

//Back one commit
git reset --soft HEAD~1

//Back two commit
git reset --soft HEAD~2
Comment

PREVIOUS NEXT
Code Example
Shell :: exit branch git 
Shell :: command to start a system service 
Shell :: how to clone all git repositories 
Shell :: bash append to a file 
Shell :: change default location screen mac 
Shell :: merge branch to master 
Shell :: linux zip folder without parent folder 
Shell :: wget debian to Downloads 
Shell :: Bash dir in loop 
Shell :: git newly created branch not showing 
Shell :: sublime downloafd 
Shell :: download docker linux 
Shell :: docker run 
Shell :: git clone does not show all branches 
Shell :: linux calculator 
Shell :: ubuntu increase valume 
Shell :: how can fix some refs in git github 
Shell :: git close private repo 
Shell :: mv command in linux to rename 
Shell :: brownie coverage 
Shell :: anonymous github email 
Shell :: how to run orange3 on linux 
Shell :: install pgadmin ubuntu 20.04 
Shell :: command line if output of command is equal to string 
Shell :: Install ktlint in command line 
Shell :: sort descending order linux 
Shell :: docker list images and remove them 
Shell :: linux clear lines of log 
Shell :: Push existing folder 
Shell :: bashrc check if interactive 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =