Prevent local branch overwrite - Git pull origin
- Reset your local
masterto match the remote repository'smaster(WARNING: be sure that you don't have any uncommitted changes you want to keep before issuing the following command):git reset --hard origin/master - Fetch all remote branches into your local repository:
git fetch origin - Create a new local
vsup12branch from the remotevsup12branch, and switch to this new local branch:git checkout -b vsup12 origin/vsup12
Comments
Post a Comment