Set user.name and user.email in config file
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
See the config setting in your git
$ git config --list user.name=Scott Chacon user.email=schacon@gmail.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ...
Getting Help
$ git help
Initializing a repository
$ git init
Add a file to the repository
$ git add *.c
OR $ git add README
Clone a repository
$ git clone git://github.com/schacon/grit.git
OR
$ git clone https://github.com/schacon/grit.git
Clone a repository in a particular folder
$ git clone https://github.com/schacon/grit.git mygrit
Check status of the files
$ git status
$ git checkout
Checkout and create a branch
$ git checkout -b
Commit the changes
$ git commit -m "comment"
Push the changes to the branch
$ git push origin
See the logs
$ git log
git
git
References:
- http://git-scm.com/documentation
- http://rogerdudler.github.io/git-guide/
- http://try.github.io/
- http://pcottle.github.com/learnGitBranching/
- http://www.codeschool.com/courses/git-real
No comments:
Post a Comment