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 "some@emailid.com"
# The above command will generate private and public key pair as rsa_id and rsa_id.pub. Now copy the #rsa_id.pub 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 git@github.com
Global setup:
Download and install Git
git config --global user.name "[ ]"
git config --global user.email [ ...@gmail.com]
Next steps:
rails -new [AppName]
cd [AppName]
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:bhupendramishra/[AppName].git
git push origin master
No comments:
Post a Comment