Git: Bare Init, Initial push and clone repository

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

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 push -u origin master

Now your team can download / clone it

git clone

Default image
Vignesh A Sathiyanantham
AWS Certified developer with 8 years of extensive experience working for Cloud and Datacenter solutions and leading a small team in a lean startup based on Bangalore, India

Leave a Reply

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