00:00
00:00
B1KMusic
Hi. I make games and software. I'm not on NG much, but feel free to peruse my youtube and gitlab for interesting stuff.

Braden @B1KMusic

Age 29, Male

Programmer/Musician/

fish

Earth, Milky Way

Joined on 6/19/11

Level:
10
Exp Points:
948 / 1,110
Exp Rank:
69,221
Vote Power:
5.20 votes
Rank:
Police Sergeant
Global Rank:
8,619
Blams:
42
Saves:
1,040
B/P Bonus:
12%
Whistle:
Normal
Medals:
799

I made a Github

Posted by B1KMusic - March 22nd, 2014


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


Comments

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.

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.