Whenever I push my local code to my staging server (a remote repository) they don't show up but instead appear in 'git status' as deleted. How can I get this set up properly?
I so my work in my local repository ('development' branch). Other non-Git people are putting files directly on the server (and the server does some period updates itself as well). I have set up the server to be a 'staging' branch. When I want to push my code to the server. I add / commit changes made on the server in the 'staging' branch. I then pull them down to my local 'staging' branch. I merge them with my 'development' branch. Then I push the 'staging' branch back up to the server. Unfortunately this is no longer working - my new files get marked immediately as 'deleted' and my changed files get marked as 'modified'. How can I resolve this condition? The files don't even appear in the directory.
I suspect this has to do with a change I made up there to resolve the fact that this is a live staging server and I wanted to be able to push to the checked-out branch.
git config receive.denyCurrentBranch ignore
Any help, ideas, scorn, ridicule, resolutions, appreciated.