Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git replace branch with another

# overwrite master with contents of feature branch (feature > master)
git checkout feature    # source name
git merge -s ours master  # target name
git checkout master       # target name
git merge feature       # source name
Comment

PREVIOUS NEXT
Code Example
Shell :: git config --list 
Shell :: remove directory command line 
Shell :: no shell command in vs code 
Shell :: kubectl connect to node bash 
Shell :: To use, run # sudo amazon-linux-extras install nginx1 
Shell :: git add command 
Shell :: git push existing git repository 
Shell :: pulseaudio listen to microphone 
Shell :: write content in file powershell 
Shell :: linux iso dd 
Shell :: git change author of last 2 commits 
Shell :: install adminlte in laravel 
Shell :: convert windows file to unix 
Shell :: cargo new lib 
Shell :: install ros 
Shell :: compress to tgz linux 
Shell :: how to open new terminal in ubuntu 
Shell :: manjaro linux system information 
Shell :: apt install yarn 
Shell :: Winbox for linux 
Shell :: ubuntu iptables add rule 
Shell :: mkdir -p option 
Shell :: how to remove a pushed file from git 
Shell :: bash tar list of files from folder 
Shell :: how to format pendrive on ubuntu 
Shell :: cmd dir all files subfolders 
Shell :: git list untracked files 
Shell :: ssh list port forwards 
Shell :: makefile 
Shell :: bash exit code 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =