Live data from Hacker News

Git cheat sheet [pdf]

wizardzines.com

91–100 of 146 posts

Re: Git cheat sheet [pdf]

#91

this is a better one: https://medium.com/@lordmoma/so-you-think-you-know-git-673f9...

Unfortunately, this requires creating a Medium account and signing in. Maybe it also requires payment later on.

This is the message I see.

> The author made this story available to Medium members only.

> If you’re new to Medium, create a new account to read this story on us.

Re: Git cheat sheet [pdf]

#92

I always find it interesting how knowledge makes it hard to comprehend the difficulties other people have. I used to barely understand git, but after a couple of years working at a company that relies on a rebase workflow, I'd like to think I largely understand how it works. Its nice to recognise pretty much every operation on this cheatsheet. Is it common that developers still have issues with git after using it pro…

I can confirm the part about rebase workflow, it really forces you to understand the git model. I sincerely recommend every dev to try it at least once. It also got me into custom power tools for git, like incremental rebase, dual blame, etc.

Re: Git cheat sheet [pdf]

#94

Are there git alternatives that aren't a PITA to master before one can use them in production?

git is now so ubiquitous in software development, that it's hard to justify learning another version control system. You're probably better off learning the core concepts and using the most common git commands through some GUI.

Re: Git cheat sheet [pdf]

#95
post #5
post #2

Is there a historical reason why git is needlessly complex? Seeing this cheat sheet really brings it to life.

It's not needlessly complex. The workflow it was created to support is inordinately complex, and the target market for that is highly technical, so its complexity was not the issue. Kernel developers needed to communicate to other kernel developers in a decentralized manner, and needed to work on top of each other. How do you work on a project where there are 15,000 people writing code? Git was created for this purpo…

WCan you give at least a few examples of complex operations that only arise at the scale of thousands of people?

Re: Git cheat sheet [pdf]

#96
post #2

Is there a historical reason why git is needlessly complex? Seeing this cheat sheet really brings it to life.

Because good UI design requires a different skill and takes extra effort to achieve, so it's most often just ignored

Re: Git cheat sheet [pdf]

#97
post #16

Earlier quoted context omitted.

100% agree. The fact there are 5 different ways to do the same thing is BAD, not good. Have one well defined, documented clear way to solve a problem.

There are 3 different ways I could get to the store, I could walk or drive or bicycle. There are also 3 different paths I can take. I could go down road A, sidestreet B, or alleyway C. I know you'd rather one big button to press that just says "do it" on it, but in order to perform complex actions on complex objects, there are going to be multiple ways to accomplish the same thing.

But what if one of the ways to the store is dangerous once in a while but usually safe and always just as fast as the other 2 ways to the store.. Laziness has nothing to with the posters question. There is nothing wrong with Git , I just don't agree with the comparison.

Re: Git cheat sheet [pdf]

#98

I always find it interesting how knowledge makes it hard to comprehend the difficulties other people have. I used to barely understand git, but after a couple of years working at a company that relies on a rebase workflow, I'd like to think I largely understand how it works. Its nice to recognise pretty much every operation on this cheatsheet. Is it common that developers still have issues with git after using it pro…

I understand the commonly used core concepts of git pretty well, and using that knowledge, I can do exactly what I want using Git GUIs (IntelliJ these days). With CLI I can do pulls and commits at most.

IntelliJ has become pretty powerful with Git these days.

Squashing, dropping commits, rebasing. Even interactive rebase can be done in a few clicks.

I sometimes pop up IDEA to do some non-trivial cleanup in a repo. Even if relatively fluent with the command line, it saves me a lot of time.

Re: Git cheat sheet [pdf]

#99
post #14
post #2

Is there a historical reason why git is needlessly complex? Seeing this cheat sheet really brings it to life.

Yes. Because git was created by Linus Torvalds specifically to enable and advance Linux kernel development. The fact it has become so widly adopted is a "happy accident" (or misery). Github I think has been widely credited with making git so common place ("free git hosting") but I don't think git is the "ideal" revision control system for many projects. Because it was made for Linus for Linus/Linux, this is why the t…

It might also help understanding, when talking about the history of git, to keep in mind that it came to be out of the urgent need for a tool to replace (then still proprietary) BitKeeper. I wouldn't say that bk is as hard to grok as git, but it's certainly complex as well. I wonder if some of git's idiosyncrasies are a result of intentionally avoiding a look&feel equivalent to bk lest that would alienate Mr. McVoy.

Re: Git cheat sheet [pdf]

#100

I liked the way I learned git. I started with sourcetree, a third party git gui. Super simple to use and understand. Then I moved to git gui, this step could be skipped. Then I got tired of pulling up my UIs and learned the terminal commands. Highly suggest this for anyone new, but just my (n=1) experience.

I had kind of the same path but with GitKraken and Sublime Merge but I kept Sublime Merge around as it ease complex interactions too.

I have only praise for Sublime Merge.

Post reply on HN