Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

! [rejected] main -> main

1. First run this
git fetch origin main
git merge origin main

2. Then run this commands
git fetch origin main:tmp
git rebase tmp
git push origin HEAD:main
git branch -D tmp
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #main #main
ADD COMMENT
Topic
Name
3+9 =