How to copy a local repository to remote server using git?

后端 未结 2 622
执念已碎
执念已碎 2021-01-31 11:34

I\'m trying to use git to deploy my local code in my remote server.

So here is what I\'ve done in my local folder mywebsite/ :

git init
git add .
         


        
2条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 11:42

    This will answer your question

    http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/

    In bare repository you don't need to have source.

提交回复
热议问题