I am new to git so please bear with me. I have a rails application on my local machine that I am experimenting with and pushing to the master branch periodically. It works at the moment, but I have fallen behind, and now I am many commits behind the master.
$ git branch
* master
$ git status
On branch master
Your branch is behind 'origin/master' by 27 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
However, when I use git pull
and then start rails, my application breaks with a precompiler error. So I am forced to use git --reset
to go back to the local commit before I used git pull
.
What is the right way to get around this issue and merge with the latest changes on the master branch? Would one use git --rebase
in this case?