Skip to content

Instantly share code, notes, and snippets.

@davemo
Created September 21, 2012 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davemo/3762725 to your computer and use it in GitHub Desktop.
Save davemo/3762725 to your computer and use it in GitHub Desktop.
Git on Windows 7
My Dev Workflow from OS X on Windows 7
1. Install Console 2 and configure as per http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx
You can skip the steps on Tabs and Powershell, but I do like his fancy icons :)
2. Install Git for windows http://git-scm.com/download/win
Now comes the fun part, after you have configured Console2 and installed the Windows git binary you'll want to link the Console2 tab that opens such that it is in the context of the git-bash cmd, how do we do this? Easy:
3. Open Console2 > Edit > Settings > Tabs
4. Name the default tab what you want, I've named mine "Git Bash"
5. In the "Shell" section point it to the git command with
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
6. I was confused about copy/pasting and selections in Console 2, by default you have to hold shift+left mouse to select. Scott Hanselmans instructions make it so that once you have selected something it immediately copies and deselects. You can tweak this as desired.
7. Launch Console 2 and create your ~/.ssh directory "cd ~; mkdir .ssh"
8. Follow Githubs instructions for generating an SSH key so you don't have to login each time. https://help.github.com/articles/generating-ssh-keys#platform-windows
9. (Optional) Port over your .gitconfig and .gitignore files, here's what mine looks like: https://gist.github.com/3762576
Now whenever you Console 2 it will look (and function) pretty much like your Mac OSX Terminal! Yay! :)
Hope this helps you out!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment