Git Installation and usages

In Linux ubuntu

sudo apt-get install git-core
cd /apt/lampp/htdocs (or) cd /var/www/html

clone project to your local
sudo git clone http://tester@

checking all git branches
git branch -a

checking current git branch
git branch

pulling / downloading the latest files
git pull

change to the other branch by checkout
git checkout dedicated_branch

checking the edited files
git diff file

adding edited file to comit
git add file

commit edited files to push
git commit -m “About the commit”

push the edited files
git push


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