Skip to content

Commit

Permalink
git: Always delete and checkout main branch to avoid merge conflicts 2
Browse files Browse the repository at this point in the history
  • Loading branch information
KA2107 committed May 6, 2012
1 parent b974fad commit c7e60e3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions git/git_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,24 @@ _RUN()
_GIT_REMOTE_BRANCH='master'
fi

git checkout "${_GIT_REMOTE_BRANCH}"
echo

git merge "remotes/origin/${_GIT_REMOTE_BRANCH}"
echo

git reset --hard
echo

git checkout "remotes/origin/${_GIT_REMOTE_BRANCH}"
echo

git branch -D "${_GIT_REMOTE_BRANCH}"
echo

git checkout "${_GIT_REMOTE_BRANCH}"
echo

# git merge "remotes/origin/${_GIT_REMOTE_BRANCH}"
# echo

git reset --hard
echo
fi
Expand Down

0 comments on commit c7e60e3

Please sign in to comment.