Git submodule on remote bare

前端 未结 3 2058
予麋鹿
予麋鹿 2020-11-29 03:38

I\'ve setup my environment so I can push to a remote bare repository. I used these commands to set up the remote repository:

$ mkdir ~/website.git &&         


        
3条回答
  •  暖寄归人
    2020-11-29 04:05

    I figured out another solution which looks rather clean to me. Just give git all the info it needs to perform the submodule stuff:

    $ cd /path/to/your/git_work_tree
    $ git --git-dir=/path/to/your/bare_repo.git --work-tree=. submodule init
    $ git --git-dir=/path/to/your/bare_repo.git --work-tree=. submodule update
    

提交回复
热议问题