Documentation/GitHub
From SF Data Wiki
| Home > Documentation > GitHub |
Contents |
Git on Windows
Based on http://github.com/guides/using-git-and-github-for-the-windows-for-newbies
- Installed Git-1.6.3.2-preview20090608.exe from http://code.google.com/p/msysgit/downloads/list
- Mostly default settings, but I choose "Run Git from the Windows Command prompt" instead of "Bash only"
- Start Git Bash (ex. by right-click on the "Start" button)
- Create private key:
ssh-keygen -C "myemail@gmail.com" -t rsa- I just hit Enter on all questions
- Got my key fingerprint
- Set user info:
git config --global user.name "My Name"git config --global user.email myemail@gmail.com- Note: This if Git configuration, makes "user.name = My Name" and "user.email = myemail@gmail.com"
- Total time: about 2 min
Step by step setup Screenshots
GitHub
Getting code from GitHub
- Right click on a folder, select Git Bash
git clone git@github.com:csoma/CivicDB-prototype-1.git
it created a folder called CivicDB-prototype-1 and downloaded the content of the repository- Also it can be downloaded or browsed on the web: http://github.com/csoma/CivicDB-prototype-1
Note: my first attempt to send files failed - it seams that the outgoing connections to port 22 are blocked.
Error message: ssh: connect to host github.com port 22: Bad file number
The solution is http tunnel: Your own tunneling over http or better yet the github http tunnel (article 2)
Links
- Quick Git guide: http://github.com/guides/home
- Git Book
- GitHub in the Government
