Git on windows - l1j-en/classic GitHub Wiki

Quick nasty guide to git on windows (using the console)

everyone I know of so far is having hell attempting to use a git gui program, and to be perfectly honest, git/svn are two programs that just get no benefit from a gui imo. So if you want to save yourself a lot of trouble here's a very quick guide to using it on the console (like us linux users typically do). It's actually faster and more intuitive.

First install git, at the time of writing this I installed http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.6-preview20110708.exe&can=2&q=

I chose gitbash in the context menu options through the install, tbh I dont know what the cheetah thing is but it may work as well. The rest should be self explanatory (or I'll fill in more blanks here later).

Open My Computer or file explorer or whatever and create a new folder someplace named "l1j" (you can name this anything, its just how I do it)

Right click on that folder and choose "Git bash here" and it should open up a console window.

Now you can use git how its meant to be used (imo).

Type git clone https://[email protected]/l1j/en.git - replace 'username' with your github username and hit enter. It should ask for your github password then it should clone the repository and put you on the master branch. You'll end up with an en folder (on my machine I set it up as c:\l1j\en)

type 'cd en' now you're in the en folder where the code is.

From in here you can type 'git pull' to grab the latest changes to the repo, 'git commit -a' to commit changes you've done, 'git push' to push changes you've made to the public repo, 'git branch' to see what branch you're on, 'git checkout branchname' to checkout another branch (like testing/stable), git branch branchname to create a new local branch, etc etc, that should cover the basics.

You'd just edit the code in whatever you normally use, eclipse, notepad++ whatever, and then drop in to git bash when you need to work with git

Also by using git in this way you should be able to follow any guide on github (or git in general) that's usually written for linux users and follow along exactly the same way. I'd ignore the windows guides if you do it like this, every one of them I read spends over half of the time explaining how to work through broken gui programs, just skip to the linux guides and git on the console, its easier, srsly