Git (Useful Commands)

Register You Identity

git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

Initiate a New Git Project

 git init

Adding files that you want to commit

Add a single file
 git add {file}
Add all files
 git add -A

Committing files

By adding the dash m you can add any comment to your commit 
*Files Committed are not push to the repository yet
 git commit -m "Comment"

Push the committed files

 git push

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 )

Connecting to %s