Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 :: windows 10 path to wsl 
Shell :: open git gui from command line 
Shell :: linux mv all folder to previous folder 
Shell :: Uninstall Applications in ubuntu through the Command Line 
Shell :: get total installed List from ubuntu terminal 
Shell :: commmand for installing tailwind to react 
Shell :: install react-native-community hooks 
Shell :: linux mail delete all 
Shell :: git squash last 2 commits 
Shell :: how to install edge throught terminal ubuntu 
Shell :: kubectl cheat sheet 
Shell :: turn redis off 
Shell :: Install Docker Engine on EC2 Instance 
Shell :: break line bash 
Shell :: gcc for macos 
Shell :: install brew on mac m1 
Shell :: npm legacy-peer-deps 
Shell :: flutter run all 
Shell :: how to git clone from a specific branch git 
Shell :: conda install regex 
Shell :: check if service is running server 
Shell :: get additional parameters linux scripting 
Shell :: make shortcut folder in windows 
Shell :: install choclatey 
Shell :: adb screenrecord 
Shell :: interact with container 
Shell :: netbeans 8.2 download ubuntu 
Shell :: add mirror list arch linux 
Shell :: how to run a sh file in terminal 
Shell :: phpcs standard xml 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =