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

No comments:

Post a Comment