How to create a git repository for my common hosgent?

How to create a git repository for my common hosgent? Unfortunately, we have SSH access.

+5
source share
1 answer

Git is supposed to be installed ...

git init --bare /path/to/repo

If Git is not installed, you cannot directly click on the hosted repository, but you can make the snapshot available by doing the following (from here ):

First, run these commands on your local machine (this assumes your repo is located ~/foolocally):

git clone --bare ~/foo ~/foo.git
cd ~/foo.git
git --bare update-server-info

foo.git - public_html. http://yourserver.com/you/foo.git . , , .

+6

All Articles