Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git sync branch with master

git checkout master
git pull
git checkout mybranch
git merge master


# to keep mybranch in sync with master

# then when you're ready to put mobiledevicesupport into master, first merge in master like above, then ...

git checkout master
git merge mybranch
git push origin master
Comment

git sync branches

git fetch origin
git reset --hard origin/master
git clean -f -d

#If you want to retain the changes as unstaged files, use --soft instead of --hard.
#WARNING: All your untracked files will be gone when you do git clean -f -d.
Comment

git sync branch from master

git checkout test-branch 	//Checkout the branch you want to update
git merge master			//Merge all code from master to test-branch

// When your are done with test-branch you can merge all code into master branch
git checkout master 		// Make sure you are on master branch
git merge test-branch
Comment

PREVIOUS NEXT
Code Example
Shell :: how to shutdown computer using linux 
Shell :: how to do install tmux plugins 
Shell :: crontab command not found 
Shell :: set permanant environemt variable 
Shell :: copy from remote to local 
Shell :: check and verify git version 
Shell :: install slack on linux 
Shell :: rails scaffold 
Shell :: count lines in files 
Shell :: composer install no dev 
Shell :: installing sh file linux 
Shell :: unrachive .tar.gz 
Shell :: copy contents of folder to another folder in terminal 
Shell :: stop npm running on port 3000 
Shell :: how to revert to a specific commit in origin 
Shell :: git remove without deleting 
Shell :: link folder to github repo 
Shell :: make current branch master 
Shell :: file descriptor bash 
Shell :: how to upgrade docker-compose version 
Shell :: how to list all the available versionb for installation ubuntu 
Shell :: show env in bash 
Shell :: docker node alpine 
Shell :: check my localhost command 
Shell :: download sublime text ubuntu 20.04 
Shell :: run jar file on the background on ubuntu 
Shell :: utserver: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 
Shell :: how to config username and email in git 
Shell :: install eclipse in fedora 
Shell :: git add and commit all 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =