Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you do this make sure you set the permissions such that it is not possible to make changes to the files on the server independently of the remote otherwise next time you push you’ll end up with conflicts and, if you’re using an interpreted language, the version control markup that indicates where the conflicts are in files will break your code and bring down your website.


Best way to do this is to init the remote repository using:

  git init --bare


Bare repositories cannot have a working tree.

    fatal: core.bare and core.worktree do not make sense




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: