Strange git deleting issue

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
User avatar
Eccid
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Nov 15, 2012 2:32 pm

Strange git deleting issue

Post by Eccid »

Hello all, I'm having a strange issue with git that I can't find an answer to, maybe you guys can help. I'm working on rebuilding my website on my local machine, and using git to push my files to both github and my webserver, mainly as a learning experience for using git. I'm having an issue that when I make a push to my webserver, the files are added then immediately deleted. After I push I type git status serverside and it shows all the files I pushed as deleted. The only work around that's been working is to type

Code: Select all

git reset HEAD . 
then

Code: Select all

git checkout --
and the files appear on my websever.

I'm using git through bash on OSX Yosemite 10.10.3
User avatar
Eccid
New to forums
New to forums
Posts: 6
Joined: Thu Nov 15, 2012 2:32 pm

Re: Strange git deleting issue

Post by Eccid »

I never fixed the issue, but I've decided to just pull from github when I'm done working for the day. One more step, but it's less time consuming than trying to find a solution to this problem.
Post Reply