May 22, 2015 asvignesh 0Comment

There are lots of document and posts about GIT repos and commits, i wrote this like a note for future reference for me and my colleagues

Firstly need to setup a bare repository

SSH into the remote Unix machine and create a bare repo

ssh git@asvignesh.in
mkdir asvignesh_proj.git
cd asvignesh_proj.git
git init –bare

Then move to the client machine,

mkdir asvignesh_proj
cd asvignesh_proj
init git //Create Some files
add *
git commit -m “My initial commit ”
git remote add origin git@asvignesh.in:/path/asvignesh_proj.git
git push -u origin master

Now your team can download / clone it

git clone git@asvignesh.in:/path/asvignesh_proj.git

Software developer experience in building storage management and Data protection software for the Private and public cloud.

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to time… This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.