Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

About 8 years ago, I blogged a very brief guide to using git for a solo developer. A lot of people seemed to like it.

A couple times since then, I've noticed there was something I was using that wasn't in it, but that could be added without making it significantly longer or more complicated. So there were a couple of updates.

I did another one today, and had the thought that since this guide now includes the benefit of 8 years of practical experience in actually using it, while still essentially being "Git In Two Minutes", it might be worth posting to HN. So here it is.

It doesn't say anything about github. It really is for a solo developer who wants to start using git in a very painless way. With the additional goal that you can profitably use git for years without going beyond the described features.

https://www.garyrobinson.net/2014/10/git-in-two-minutes-for-...



Hey, just a heads up (won't be a problem for most people Goolging git) but on mobile (Firefox) the code blocks are almost unreadable because they're so small.


A couple notes:

* Since it's an introduction maybe consider "--oneline" instead of "--pretty=oneline" for memorability

* Undoing a bad commit - since it mentions a commit message typo, maybe instead redo it with "git commit --amend"


thank you very much. I'm always reluctant to read/watch any git tutorial, I think that will help me a lot!


I hope it does!


Thank you for this!


Without switch and restore, it is not modern git!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: