heroku-like git setup?

前端 未结 2 387
我在风中等你
我在风中等你 2021-01-17 05:03

I\'m a noob when it comes to git.

How would I get it so I can do something like git push production master and have the remote repository mirror my own?<

相关标签:
2条回答
  • 2021-01-17 05:47

    Pushing to working repositories is a bit dangerous as any work in progress is not taken into account by the push, and it is quite easy to subsequently lose any uncommitted changes (basically the working HEAD can get out of step with the working branch HEAD). The full, gory details are in the following link:

    git push to a non-bare repository

    It is recommended that your published repository should be a bare repo which does not have a checked out tree. Bare repos are created using the "git clone --bare" option.

    0 讨论(0)
  • 2021-01-17 05:58

    Aparently what I was looking for is an unconventional way to use git.

    I followed http://danielmiessler.com/blog/using-git-to-maintain-your-website and got what I was looking for.

    0 讨论(0)
提交回复
热议问题