简体   繁体   中英

Git shows “Everything up to date”, but I can see gem files updated in my local, not updated in git

I am building a rails application and I'm very new to Git. I am trying to update files in git, and although my local gemfile has been updated, when I try git status , git add . or git commit everything shows up as "Everything up to date" and "nothing to commit, working directory clean"

I am using Vagrant on windows

Have you tried git pull origin master and then git push origin master

Note: check if you are on your on your main branch "origin master" by typing git branch -a and then try the above logic

you should see below message on trying git branch -a

* master remotes/origin/HEAD -> origin/master remotes/origin/master

I was able to figure out the problem. I have been commit'ing from a different folder, where as my actual app existed within the root and was not at the root.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM