When ever I push my changes to remote path from my local. (Remote path is my dev server). All my changes are showing as unstaged and remove all of my changes. and my changes does not exists on my dev server.
Asked
Active
Viewed 20 times
1 Answers
1
Make sure your remote path is not one for a checked out repository, but for a bare repository (xxx.git
, with only git database files, and not xxx/.git
, with checked out files in it)
While you can technically push to a non-bare repository, a post-receive hook is safer to restore your files on your dev server where you want them to be.

VonC
- 1,262,500
- 529
- 4,410
- 5,250