Answers for "git change origin branch from which i originally checked out from"

1

switch to remote branch git

# creates a branch called some_branch
# switches to this newly created branch
# pulls changes from the origin remote branch
git checkout -b some_branch origin/some_branch
Posted by: Guest on September-02-2021
0

git replace with origin branch

git reset --hard origin/<branch-name>
Posted by: Guest on October-01-2020

Code answers related to "git change origin branch from which i originally checked out from"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language