Sunday, January 2, 2011

Setting up git and start code sharing

Setting up SS connection with GitHub

$ sudo apt-get install ssh-keygen
# Generate the ssh public and private key by using following command
$ ssh-keygen -t rsa -C ""
# The above command will generate private and public key pair as rsa_id and Now copy the content to public key a/c in GitHub page. and copy the rsa_id (private kye file) to root location #of ssh key generator tool(.ssh) if you are not in the root of .ssh already.
# Run the following command to check the connection
$ ssh

Global setup:

Download and install Git
  git config --global "[ ]"
  git config --global []      

Next steps:

rails -new  [AppName]
  cd [AppName]
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin[AppName].git
  git push origin master

No comments:

Post a Comment