I am baffled. I made a branch to make css changes to my Ruby on Rails app. Let's call the branch Update_CSS
After I made changes, I did git status
and it showed that the css files were not added so I added them with git add app/assets/stylesheets/application.css
Then I committed my changes with git commit -am "Updated CSS"
. Then I checked out master and merged branch with CSS changes:
git checkout Master
git merge Update_CSS
Terminal said changes were merged, blah blah. Then tried to push to git: git push
. Then I got the following message Everything up-to-date
! What?! Sure enough, I looked on Github and the the CSS file was different from the one on my machine. I actually have a couple of CSS files that are merged and committed on my machine and not on origin/master. Any idea what's going on or how to fix this. Ideally, I'd like to override the file in origin/master with the one on my local master.
Update: When I ran git checkout master
with a small "m", the output read: Your branch is ahead of 'origin/master' by 9 commits.
I wonder if I was careless with the capitalization of "master" and that somehow screwed things up. I tried changing other files on Master, committing changes, and pushing to git, and now I always get that Everything up-to-date
.