Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

merge remote commits to local then push

git checkout master
git fetch <remote>

# Merge remote/master
git merge remote/master

# Or rebase local commits on top instead
git rebase remote/master

# Push the results
git push remote master
Comment

git merge pushed commits

git push origin +main
Comment

PREVIOUS NEXT
Code Example
Shell :: install adb 
Shell :: dotenv installation 
Shell :: gitignore tracked files 
Shell :: powershell check file extension 
Shell :: bash store file lines in variable 
Shell :: add arabic keyboard ubuntu 20.04 
Shell :: concatenate strings batch 
Shell :: install python math library 
Shell :: bash script language check if item in array 
Shell :: delete all local branches except current branch 
Shell :: how to update an existing repository in github 
Shell :: sudo a terminal is required to read the password 
Shell :: list all node versions mac 
Shell :: how to get updates in linux 
Shell :: ords version view 
Shell :: new commit 
Shell :: Check for process and kill if running Linux 
Shell :: kill process ubuntu 
Shell :: install phantomjs 
Shell :: docker compose multiple command 
Shell :: how to edit crontab in linux 
Shell :: gitlab change commit message 
Shell :: ubuntu no space left on device boot 
Shell :: android keystore generator 
Shell :: lines of code 
Shell :: apt vs homebrew 
Shell :: show conflcited files 
Shell :: git return to last commit 
Shell :: give docker permission to non-root user in linux 
Shell :: how to set default editor in git 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =