Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Git pull is ahead by x commit

git checkout <branch_name>
git pull -s recursive -X theirs
git reset --hard origin/<branch_name>
git fetch
 
PREVIOUS NEXT
Tagged: #Git #pull #commit
ADD COMMENT
Topic
Name
5+7 =