Github repo名称和本地文件夹名称用于回购 [英] Github repo name and local folder name for repo
问题描述
MyProject / front_app
但是,我将我的应用程序资源(git repo)在git集线器上我想要命名为不是front_app,而是my_project_front_app可以做到吗?
这是好的方法,还是最好有本地文件夹my_project_front_app这个git repo?
你可以做你想做的。本地和远程存储库可以有不同的名称。
如果您已有本地存储库,则可以添加远程(按您的需要命名):
git remote add origin http:// distant / a_remote_repository
如果您已经拥有GitHub存储库,可以将其克隆到您想要的本地文件夹中:
git clone http:// distant / a_remote_repository a_different_local_folder
Now I store my app sources (git repo) in folder:
MyProject/front_app
But on git hub I want to have repo named not "front_app" but rather "my_project_front_app" is it possible to do?
Is it good approach or it is better to have local folder my_project_front_app for this git repo?
You can do what you want. The local and the remote repository can have different names.
If you already have a local repository, you can add a remote (named as you want) with:
git remote add origin http://distant/a_remote_repository
If you already have a GitHub repository, you can clone it in the local folder you want with:
git clone http://distant/a_remote_repository a_different_local_folder
这篇关于Github repo名称和本地文件夹名称用于回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!