Prevent local branch overwrite - Git pull origin

  1. Reset your local master to match the remote repository's master (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
    
  2. Fetch all remote branches into your local repository:
    git fetch origin
    
  3. Create a new local vsup12 branch from the remote vsup12 branch, and switch to this new local branch:
    git checkout -b vsup12 origin/vsup12
Source

Comments

Popular posts from this blog

Generate ArcGIS Token By URL Request From ArcGIS Portal, Federated Environment , ESRI JS API and Angular snippets

Update WPF Interaction Triggers in from .Net Framework 4.8 to .Net 5

Solution: IntelliJ not recognizing a particular file correctly, instead its stuck as a text file