Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git merge force

git checkout master

git merge -X theirs branchName

git push origin master --force     # again, see below
Comment

git force merge branch

# Migrate to the branch you want to merge into
git checkout <branch_name>

# Merge branch_b into branch you're in
git merge <branch_name>

# Force merge if the branches have unrelated histories. This means
# you must have previously gotten an error message like this 
# 'fatal: refusing to merge unrelated histories' when you try to do
# normal merge with the command above.
git merge -X theirs <branch_name> --allow-unrelated-histories
Comment

PREVIOUS NEXT
Code Example
Shell :: pterodactyl installer 
Shell :: docker update all images 
Shell :: To stop all running docker containers 
Shell :: stop tracking a file git 
Shell :: httpd ssl docker 
Shell :: ubuntu 20.04 how to check dns server 
Shell :: composer xampp windows 
Shell :: git set upstream remote branch 
Shell :: install golang ubuntu 
Shell :: sudo snap linux store 
Shell :: pip installation directory 
Shell :: vim jump to line number 
Shell :: powershell check if user is admin 
Shell :: compress folder ubutnu 
Shell :: terminal command as parameter 
Shell :: sudo tee 
Shell :: check wordpress version cli 
Shell :: istio grafana 
Shell :: ubuntu reset path 
Shell :: crontab command not found 
Shell :: set cuda path 
Shell :: upgrade docker compose windows 
Shell :: program to find leap year in bash 
Shell :: install devtools 
Shell :: server 2012r2 powershell unable to download from URI 
Shell :: composer change version 
Shell :: linux list environment variables 
Shell :: create alias in powershell permanently 
Shell :: how to setup dockers on aws 
Shell :: ubuntu instlal kubectl 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =