Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git replace local branch with remote

Delete your local branch: 							git branch -d local_branch
Fetch the latest remote branch: 					git fetch origin remote_branch
Rebuild the local branch based on the remote one:	git checkout -b local_branch origin/remote_branch
 
PREVIOUS NEXT
Tagged: #git #replace #local #branch #remote
ADD COMMENT
Topic
Name
8+8 =