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:
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
source share