Push Git Project to Local Directory

后端 未结 2 1971
孤城傲影
孤城傲影 2021-02-05 06:07

Don\'t know whether this is fully supported in Git would be excellent if it is as it could make things a lot easier, basically I have a project am working on in folder X and whe

2条回答
  •  野的像风
    2021-02-05 06:30

    It is absolutely possible - what you probably want to do is create a "bare" git repository in folder Y (git init --bare) and then add that file location as a remote:

    git remote add Y file:///path/to/Y
    

    I assume GitHub for Mac or Tower for Mac would handle this like any other remote.

提交回复
热议问题