Handy Git Commands

Posted on Thursday, March 24, 2011

0


Global setup:
Download and install Git
git config –global user.name “FirstName Lastname”
git config –global user.email

Next steps:
mkdir Scala-Nuggets
cd Scala-Nuggets
git init
touch README
git add README
git commit -m ‘first commit’
git remote add origin git@github.com:vhazrati/Scala-Nuggets.git
git push -u origin master

Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:vhazrati/Scala-Nuggets.git
git push -u origin master

Advertisements
Posted in: Java