Git push to live server

后端 未结 6 605
北恋
北恋 2020-12-12 11:11

We have a website that has all its PHP/HTML/JS/CSS/etc files stored in a Git repository.

We currently have 3 types of computers (or use cases) for the repository.

6条回答
  •  悲&欢浪女
    2020-12-12 11:52

    Look at the git urls portion of http://www.kernel.org/pub/software/scm/git/docs/v1.6.0.6/git-push.html

    so you would try:

    git push ssh://admin@webserver.com/~admin/domain.com/ master
    

    ADDED: I think part of what you are asking for is how to have multiple remote repositories.

    git remote add webserver ssh://admin@webserver.com/~admin/domain.com/
    

    that allows you to run:

       git push origin master
       git push webserver master
    

提交回复
热议问题