Skip to content
Matt Harley edited this page Oct 29, 2015 · 13 revisions

Git (and Github)

Introductory Material

Tools

  • Github's tool for Mac and Windows
  • Source Tree (Which I personally use)
  • Gitg for Linux
  • Command line - learn the basic command line stuff: git clone, git status, git add, git commit -m 'my commit message', git push, git pull. If you're using the windows shell, you're fighting a bit of an uphill battle. I would recommend using Git through Cygwin so you get all the nice POSIXy (i.e. Mac and Linux style) goodness. The majority of tutorial, Q&A and help topics are written assuming a POSIX shell

More Advanced Stuff

Github

What Github gives you:

  1. Source Control (duh)
  2. Private repositories
  3. Issue Tracking
  4. Wiki
  5. Gists (small, shareable snippets of code)

Bitbucket is another solid choice for hosted source code management however I prefer Github's auxiliary tools (see above) better.

If you are thinking of hosting your own Git server behind your firewall. Don't. Unless you are a spy agency.

Useful Scripts

Pretty Log Messages

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

# then use
git lg
Clone this wiki locally