Best link to learn github (push) :- www.howtoforge.com/tutorial/install-git-and-github-on-ubuntu-14.04/
Best Link to learn (pull) :- https://help.github.com/articles/importing-a-git-repository-using-the-command-line/
STEPS :-
1) GENERATE THE .SSH KEYS (ONE PUBLIC AND ONE PRIVATE).
$ ssh -keygen -t rsa -C "uremailid.com"
$ ssh -T git@github.com ( command for connection testing )
2) ENTER THE PUBLIC KEY IN GITHUB (in ur account ) .
NOW CONNECTION HAS BEEN MADE :)
3) now, WE WILL ADD OUR PROJECTS TO GITHUB.
$ git remote add origin git@github.blah__blah__ydsushj.git
(here git@github.blah__blah__ydsushj.git is the name of ur repository in github ,, u named it
temporarily as "origin ". Here "origin" is just a variable ).
4) now final stage push ur project.
$ git push origin master .
No comments:
Post a Comment