After I successfully Installed the GIT in my local user . I need to setup the remote repository in server end. When I am googling this I got this page which proves my work is done most. Setting up GIT remote server is as easy as creating the user in Unix.

They say its only 4 steps.

1) Install GIT what I did previously
2) Create one user git in your box.

sudo adduser git

3) Then Create the repository .

# login to remote server
ssh git@REMOTE_SERVER
# once logged in
mkdir example.git
cd example.git
git --bare init

4) Commit to this new repository .

mkdir example
cd example
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@REMOTE_SERVER:example.git
git push origin master

With the above doc help I worked out in my local box and added few more steps .
To know more on this please see my sidewiki link.

in reference to:

"mkdir example cd example git init touch README git add README git commit -m 'first commit' git remote add origin git@REMOTE_SERVER:example.git git push origin master"
- CommonThread Blog Setting Up a Git Server (view on Google Sidewiki)

Related Posts :



Bookmark and Share