top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to create remote GIT repository?

0 votes
478 views

As far as I can tell, there is no way I can create remote git repository from command line (git.exe in windows). if I am not mistaken shall you tell me why such limitation exist given that git is an old and mature project.

posted Dec 14, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

I am not sure about windows, but i can guess there should be command where you can create remote repository if you know the URL of the remote where you want to host your repository like linux.

Like using
git remote add |name for remote| |URL Of Remote|

The you push ur locally created codebase to remote using the remote name, as it contains the URL info.

git push ** |name for remote| |BranchName|**

answer Dec 14, 2016 by Sachidananda Sahu
Similar Questions
+1 vote

How to configure a read-only copy of a remote Git repository on a local server in bare mode and automatically synchronize its contents.

I need to configure a mirror of the repository hosted at another location and the mirrored repository should automatically perform syncing of code at regular intervals.

+1 vote

Is it possible to make a git remote pack its repository on every push?

I have tried setting gc.auto to 1 on both the remote and the clients, but so far no push seems to have packed anything.

Do I need to create a push hook on the remote to make it pack?

The reason for this is that I have several git repositorier for org-mode files.

Having a history, and rollback of the history, is more important than having a good history.

The diff of each push is small, the repositories only contain one, or a handful of org-mode files, and some of the org-mode files are quite large.

The remote is git 1:2.1.4-2.1 (debian packge, git --version reports 2.1.4), running on debian 8.0 "jessie".

The clients are various GNU/linux git (whatever comes with the distro out of the box) and Win32 msysgit installations.

+3 votes

When we clone a remote GIT repository, all folders/files will be cloned. This will consume lot of disk space in our local machine.
Is there a way to clone only few folders & exclude others?

This is possible in clearcase snapshot view by changing load rules.

+1 vote

I have created one repository (but I'm not a root user on the server) like

$ git init --bare

And I do push my changes locally to remote repo where I created. My friend also working the same repo, and he needs to push the changes on the same.

I tried by adding below line on the remote config file

 sharedRepository = true

Any suggestion?

...