Using git

git commands I use regularly:

#-----------------
# Get status
#-----------------
$ git status

#-----------------
# Start new -> from inside folder
#-----------------
$ git init

#-----------------
# Add
#-----------------
$ git add .
$ git add file1 newfile2 newfolder3

#-----------------
# Commit
#-----------------
$ git commit -m "enter the comment"

#-----------------
# Log
#-----------------
$ git log

#-----------------
# Using with github
#-----------------
$ git remote add origin git@github.com:user_name/repository_name.git
$ git push origin master

gittutorial7

http://www.spheredev.org/wiki/Git_for_the_lazy

http://git-scm.com/documentation


Categorized as Development, Tools

Leave a Reply

You must be logged in to post a comment.