Thursday, March 24, 2011

how do i add project in git

This blog assumes that all the connectivity and credentials has been set up for GiT.

Global setup:
Download and install Git
git config --global user.name "Your Name"
git config --global user.email kushchinu@gmail.com

Next steps:
mkdir JavaHaddi
cd JavaHaddi
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:kushptl/JavaHaddi.git
git push -u origin master

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

No comments:

Post a Comment