Wednesday 21 November 2012

GIT getting started

A very good tutorial on git : http://www.sbf5.com/~cduan/technical/git/

GIT commands:

  • Git Pull

    From what I understand, git pull will pull down from a remote whatever you ask (so, whatever trunk you’re asking for) and instantly merge it into the branch you’re in when you make the request. Pull is a high-level request that runs ‘fetch’ then a ‘merge’ by default, or a rebase with ‘–rebase’. You could do without it, it’s just a convenience.
  • Git fetch

    Fetch is similar to pull, except it won’t do any merging.
  • Git clone

    Git clone will clone a repo int a newly created directory. It’s useful for when you’re setting up your local doodah


If you get stuck, run ‘git branch -a’ and it will show you exactly what’s going on with your branches. You can see which are remotes and which are local. 
http://betterexplained.com/articles/aha-moments-when-learning-git/
http://jonas.nitro.dk/git/quick-reference.html

Reading: http://blog.mikepearce.net/2010/05/18/the-difference-between-git-pull-git-fetch-and-git-clone-and-git-rebase/

No comments:

Post a Comment