I just realized that for about a week now my git pushes are not actually going through to my repository on bitbucket. I'm using Mac and have GitX locally which is showing my commits from the past week that have not made it to bitbucket.
When I try git push
it says "Everything up-to-date". I've tried git push origin master
, git push --all
, git push origin --all
, and git push origin master:master
all of them say "up to date".
As I stated, I use GitX locally to view the commits/files. The directory of the project I'm working in is /Applications/XAMPP/xamppfiles/hdtocs/serve
, but I noticed in gitx that there is a repository labeled /Applications/XAMPP/xamppfiles/hdtocs/serve1
. I checked the commits in serve1 and sure enough, it matches up with the one on bitbucket. I have no idea how/what I did, but it's just an older version of the serve repository.
Despite commits adding correctly locally to the serve repository, it seems like git is trying to push serve1 which explains why it says no updates. I made sure that I'm in the serve directory with cd /Applications/XAMPP/xamppfiles/hdtocs/serve
What can I do to get the correct repository to push?