Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

handle git diverged

# depends why upstream state changed. 
# If someone else is working on the same branch,
# the good way to solve it is to rebase your commits on top of the remote state:
$ git rebase origin # +/branch_name if want to specify 

# Another way to fix the issue is to merge the upstream branch state to local:
$ git merge origin #  +/branch_name 
Source by serebrov.github.io #
 
PREVIOUS NEXT
Tagged: #handle #git #diverged
ADD COMMENT
Topic
Name
9+5 =