I'm working on a project, where I have 4 branches, but I'm focused on one branch at the moment. I'm not sure what happened but I've made changes to my code, and tried to commit and push, however Git is telling me that "Everything up-to-date" when clearly it's not as there are modified files that I've staged and tried to commit.
I've looked at these links Fix a detached head, git push says "everything up-to-date" even though i have local changes where I could possibly be in a detached HEAD however, to be completely honest, I'm not sure how to know this.
Here is the output of git branch -a
and git status
:
codio@senior-miranda:~/workspace$ git branch -a
bug-remove-logged-msg-01
home-page
master
selling-items
* styling
stylingchanges
remotes/origin/home-page
remotes/origin/master
remotes/origin/remove-loggedin-message
remotes/origin/selling-items
remotes/origin/styling
codio@senior-miranda:~/workspace$ git status
On branch styling
Your branch is up to date with 'origin/styling'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: views/register.handlebars
codio@senior-miranda:~/workspace$ git commit -m "viewport meta"
PRE-COMMIT
codio@senior-miranda:~/workspace$ git push
Everything up-to-date
Everything up-to-date
The PRE-COMMIT hook runs ESLint
and if any errors arise, prevents the commit from happening. After checking, I can confirm the PRE-COMMIT exits with a value of 0.
Output of git log --oneline --graph -5
:
codio@senior-miranda:~/workspace$ git log --oneline --graph -5
* a5198f5 (HEAD -> styling, origin/styling, origin/selling-items, stylingchanges, selling-items) added prefers colour scheme css
* fb44eec linter new line
* 5aa511f responsive cards on home
* 65d0765 (master) linter newline
* daedd13 working on theme changer + navbar improvements