Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Wednesday, February 1, 2012

some basic command of git

adding user name
#git config --global user.name "Trinity"

set email address
#git config --global user.email "trinity@gmail.com"

.gitconfig file in home folder will contain above information

creating clone of project :
#git clone <link>

to see history of project
#git log

creating a project

create folder for project
#mkdir Trinity

#cd Trinity

#git init


to check the status
#git status

to commit the modification

#git commit -m 'msg'

to add files to track
#git add .

to see last commit
#git show

Working with git

when i build git from its source then i tried to clone a project then i face a problem  :

" fatal : Unable to find remote helper for 'https' "

actually it require curl and expat support.

remove the previous git
#apt-get remove git-core

install the git with new source with support of curl and expat
#tar -zxvf git-1.x.x.tar.gz
#cd git-1.x.x
#./configure --with-curl --with-expat
#make
#make install


now we can enjoy git without any error....


Enjoy Coding.. :) B-)