Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git replace local branch with remote

git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
 
PREVIOUS NEXT
Tagged: #git #replace #local #branch #remote
ADD COMMENT
Topic
Name
1+6 =