Pacific-Design.com

    
Home Index

1. Git

2. Changes

Git / Changes /

Get/Push with Repository

  • git status
  • git add -v .
  • git commit -m ’description of change’
  • git pull origin master
  • git push master origin
  • git gc

git status 
git diff 
git diff –-stat 
git log 
git log --name-only --since='12/05/2011 14:31' --pretty=oneline 
git log --name-only --since='22/04/2009 10:21' --
pretty=oneline>changes.txt 
git gui blame cgi-bin/search.fcgi 

Creating a bare repository
    \_ git --bare init

Create Branch
    \_ git push origin origin:refs/heads/my_branch

Bring Changes
    \_ git fetch origin 

Display Remote Branches
    \_ git branch -r 

One time only per branch>
    \_ git checkout -–track –b my_branch origin/my_branch

Work on branch
    \_ git checkout my_branch

Back to master
    \_ git checkout master 

Remove branch
    \_ git push origin :heads/my_branch 

Other good resources

http://git.or.cz/course/svn.html