Github replication name and local folder name for repo

Now I store my application sources (git repo) in a folder:

Myproject / front_app

But on the git host, I want the repo to be called not "front_app", but rather "my_project_front_app", is this possible?

Is this a good approach or is it better to have a local my_project_front_app folder for this git repo?

+5
source share
2 answers

You can do what you want. The local and remote repository may have different names.

If you already have a local repository, you can add a remote (named as you like) using

git remote add origin http://distant/a_remote_repository 

If you already have a GitHub repository, you can clone it to your local folder:

 git clone http://distant/a_remote_repository a_different_local_folder 
+14
source

There is no reason why the github repository, your local clone, and any other copy of coude cannot be called different. There are no real advantages or disadvantages other than the ability of your and your associates to support him directly.

 git clone <url> <path> ;# path is a variable; it the url that well-defined git remote add <name> <url> ;# as can be seen in the 'git remote add' command 
+2
source

All Articles