Saturday, April 12, 2014

Git for Beginners

Git is a very handy tool. Start by creating an account on Github.


git init //init local git repo in .git

git add . // add pwd contents to .git

git commit . -m "Comments" //commit changes to .git

git remote add Project1 urlofyourproject.git    //set remote git repo url

git pull Project1 master //pull from remote repo

git push Project1  master //push to remote repo