Git initial set up

To install git: sudo apt-get install git
git init
git config –globaluser.name
“username”
git config –gloval user.email “asdf@gmail.com

no need to repeat the steps mentioned above. its for the first time alone.

then,

git status
git add –all
git commit -m “asdf”

then,
create a repo in github
copy the url

git remote add origin paste the url
git push -u origin master

this steps is fr the first time.

again if u change the code and wish to update the repo

git status
git add –all
git status
git commit -m “changes”
git push

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s