Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

merge two branches git

git checkout master   
git branch main master -f    
git checkout main  
git push origin main -f 
# Note that this code forces them to merge. Also got this from Stack Overflow 
# and found it was incredibly useful for me.
 
PREVIOUS NEXT
Tagged: #merge #branches #git
ADD COMMENT
Topic
Name
8+5 =