Answers for "how to repo your branch as origin"

2

create new branch from origin

git checkout -b nameOfBranch origin/nameOfBranch
Posted by: Guest on March-25-2021
2

git replace local branch with remote

git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
Posted by: Guest on December-06-2020

Code answers related to "how to repo your branch as origin"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language