git Overview

Now we're entering into the subject. First we're gonna define git, who created it and which projects are already using git. So here we go:

Git is a SCM (Source Code Management) created by Linus Torvalds to become the
Bitkeeper's substitute. It's implemented in a distributed way, which means we don't need to stay connected to internet in order to work. We can produce patches whenever we want, wherever we are.

Git is being used in big projects such as:

  • Linux Kernel (almost all trees);
  • Xorg (every single module);
  • GEDA (recently migrated);
  • Others.

Git is really a big tool, really better then CVS or SVN, though it has a lot of commands, a lot of documentation and it'll take a while to understand how it works.

I'm listing the main commands every developer should know about git wiling this will help every single new developer to work better with git after 1 week playing around with it. So here we go, be careful :-p

  • git-clone – Clone a git tree;
  • git-checkout – Switch branches;
  • git-log – Show the history;
  • git-show-branch – Show where you are ([branch] Commit Msg);
  • git-branch – List and create branches;
  • git-diff e git-status – Show the actual state of your tree;
  • git-commit – Apply your modifications into the current branch;
  • git-reset – Undo changes;
  • git-pull – Update or merge a tree;
  • git-merge – Merge local branches
  • git-rebase – Maintain branches;
  • git-tag – Create, list, remove a tag;
  • git-add – Add files to the current commit-ish

In later posting we'll study every single command in this list.

VN:F [1.9.0_1079]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.0_1079]
Rating: 0 (from 0 votes)

Leave a Reply