So I made a Github account, and I have to say, git is incredible!
Github is great, too, but it has its problems. Like its code editor and its commit editor. No thanks, I'd much rather do that in vim.
So this post will be two parts. The first is a useful tip, and the second is a plug.
Part 1: How to set up git and ssh access for a streamlined git workflow
Assuming you're using linux with a bash shell:
1. Enter the following commands:
$ git config --global user.name "your github username"
$ git config --global user.email "your email"
$ ssh-keygen
and hit enter three times
2. log into github, and go to settings>ssh keys
3. Title the key with something that adequately describes the machine you're on (e.g. The Dell, laptop, gaming-rig)
4. Copy the contents ot ~/.ssh/id_rsa.pub into the next field
5. Save it, and enter your password to make it official
6. Back to the terminal:
$ ssh git@github.com
You should see a message confirming that you've been added
7. Now clone a repo via ssh:
$ git clone git@github.com:user/repo.git
8. And pushing is as easy as
$ git push
or, if you want to push to a specific branch:
$ git push origin branch
And just like that, no longer is there a need for a username and password
Part 2: Plug
I've open-sourced my Link Saver app, and now all versions are available. All the way back to the very first version.
You could contribute code, or you could download one and put it on your site, making it more ubiquitous.
See it here
MakeGamesHappen
Word on the street is Git is better at managing large binary files than Hg.
Though I find GitHub harder to use with the ssh keys and puttygen.
It's slightly beyond me.
I usually get the message that "git did not exit cleanly whenever I push to it.
Been pushing to dropbox, skydrive(oneDrive), and googleDrive instead.
B1KMusic (Updated )
Well, I've used git on both Linux and Windows, and I find it a lot easier to use on a native linux shell.
In fact, a lot of his stuff, ssh included, seems to be easier in Linux.
There is a program called "git bash", though, that emulates a limited set of linux functionality in Windows. Including git itself, and some basic bash command-line, including the amazing vim text editor.
There's also Github for Windows, which is meant to handle all the things git does with a simple GUI front-end.
In the end, though, git definitely works best on Linux. After all, Git was made by Linus Torvalds--the same guy who made Linux.