GIT – Version Control System

04 Dec

Here are the few commands in git repository system that we can use.

To install git in ubuntu:

sudo apt-get install git

To get a clone from a repository:

git clone <repository url>

To add  new file(s) created in local to the repository:

git add <file-name1> <file-name2>..

git commit -m “comments about the adding files”

To view the changed file:


git status

To commit some changed files:

git commit -m “comments about the commit” <file-name1> <file-name2> <file-name3>….

Then push all the changes made so far into the repository after add and commit:

git push

Remember to pull the latest version from the repository into local before committing anything to avoid problems when merging:

git pull

Leave a comment

Posted by on December 4, 2009 in Git


Tags: , , ,

Leave a Reply

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

You are commenting using your 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

%d bloggers like this: