Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git rename branch and force push

git checkout <old_name>
git branch -m <new_name>
# reset upstream branch if old branch is already pushed
git push origin -u <new_name>
git push origin --delete <old_name>
Comment

PREVIOUS NEXT
Code Example
Shell :: crosh package manager 
Shell :: get cwd in shell script 
Shell :: cherry pick multiple commits 
Shell :: linux get processor count 
Shell :: how to change to previous directory 
Shell :: create new repository 
Shell :: create a new repository 
Shell :: linux directories 
Shell :: shell scripting cheat sheet 
Shell :: git commit to previous commit 
Shell :: set new git remote url 
Shell :: app:connectedDebugAndroidTest fail adb 
Shell :: docker pull adguard home 
Shell :: debian logrotate mail.log monatly 
Shell :: Target Packages (main) 
Shell :: poetry install zsh 
Shell :: What does maven clean install -U do? 
Shell :: linux add myself to dialout group 
Shell :: iterate over dir and remove file bash 
Shell :: cht sht .vim (config opts) 
Shell :: redirect error files to different file linux 
Shell :: ros2 build from source 
Shell :: ubuntu create large file 
Shell :: Linux search manual and list all pages with term 
Shell :: Comparing float or integers in if using bash 
Shell :: pulish changes to firebase function 
Shell :: verify SHA256 in Windows Power Shell 
Shell :: change local Git email address to match GitHub account email 
Shell :: deleting when you terminate it 
Shell :: install web3modal 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =