Recently went on a crazy run, working with the Nuggets for a month, working overtime every day, no days off, to write a nugget book. The title of this booklet is “Git How-to and How-to.” Simply put, this booklet is a small ebook to help those who are always struggling to learn Git really learn Git all at once.

In other words, this is not only a tutorial for getting started with Git, but also a guide to breaking through the bottleneck of Git skills. The more times you have studied Git and failed, and the more times you have been abused by Git, the more likely this booklet will be for you.

For more information, I will steal my own description of gold mining:

↓↓↓↓ The following is taken from my gold nuggets. ↓↓↓↓

Small volume of introduction

“Git is so hard!” Both people who don’t use Git and those who do.

With the popularity of GitHub over the years, Git has become an inescapable technology for programmers, but many have fallen on their way to learning it. In addition, many people who have to use Git for work reasons do not use Git when they can, for fear that the wrong command will destroy the company’s code base 🙈. The few who have a good grasp of Git act like team gods, saving their colleagues when they encounter Git-related problems with various flirtatious actions.

In fact, most people who can’t learn or learn Git well are not unwilling to learn. Many people will try to find Git tutorials on the Internet, consult experts in the community, and consult colleagues in the company, but after a long circle, they still don’t understand it, and may even become more and more confused.

-What does that Git command you just typed mean? – It means XXX. – But you told me it meant YYY? – Yeah, different scenarios. Last time it was YYY. -… All right. By the way, last time you helped me solve this problem, you used another command ZZZ. – Yeah, that will work too, but this command is more appropriate this time, because @#¥%*&. -… – Got it? You can ask me if you don’t know. It’s okay. -…

How hard is it to learn Git?

Git has a very unfriendly learning curve: it’s easy to get started with just a few commands like commit, push, and pull. But taking it a step further and giving yourself the freedom to work with friends or colleagues on team projects is hard.

So what’s so hard about Git?

The key is one thing: concept.

The concept of Git is composed of a complete set of thinking logic. You don’t understand it from multiple perspectives, but you eat it as a whole; At the same time, the “whole” is too complex to swallow. It’s a bit of a paradox.

Many people find Git a bit complicated and confusing after using it for a while:

– Why commit to the central repository instead of push after commit? Why is the reset command so amazing that it is used for so many operations that do not look similar? What exactly does it do? – Can both Revert and Rebase revoke historical submissions? What’s the difference? What, you said reset?

There are many similar problems. Each of these problems may seem difficult, but once you understand the concept of Git, these problems (and many more I haven’t listed here) are all solved.

Learn the concept and you can learn Git, it’s that simple. However, many Git tutorials on the market only focus on the use of Git without mentioning the concept or even mentioning it at all. I guess it’s because the concept is too hard to explain, or because the authors don’t know a lot about Git (this is nonsense, Git tutorial authors please put down your guns).

Why should you choose this brochure?

By reading this little book, you will be able to understand Git thoroughly and use Git thoroughly. Git is hard, but don’t worry, you’ll basically get it right with this little book (though it will take some practice to become familiar with it).

When I write technical articles, I prefer to write about the difficult things: difficult to learn and difficult to explain. I’ve written about RxJava in detail and how Android custom Views work, and the feedback so far has been pretty good. These “learn not learn, speak of the people speak don’t understand” what, write up a lot of pain, but after you’ve written a sense of achievement also pretty big, I will go to brag with wife: “this thing many people speak not understand, I make myself clear, when you see these people to see the message more exciting” (this word only dare to say in the home, go out said afraid of being hit). And as I wrote, I became more and more aware of how to make complex technology simple and clear.

So to summarize: Git is hard to learn because its concepts are hard to understand in their entirety. This booklet will help you learn about Git from a conceptual point of view. It will help you understand the essence of Git’s working model and then learn how to use it. It’s also more persistent, and it’s hard to forget how to use Git after reading this little book.

What will you learn?

  • Basic Git usage
  • Advanced use of Git
  • Git concept and essence
  • How to handle common problems in Git
  • Solutions to advanced requirements in Git

Such as:

“How to fix errors in a history commit,” “What to do when deleting a branch,” “The difference between merge and rebase,” and “the useful uses of reset” are a lot of things to remember, but you don’t need to remember them. When you understand the nature of Git, not only will you be able to answer these questions with ease, but you’ll also be able to handle some rare, complex questions.

What should you already have?

  • Basic programming skills
  • Basic experience with Linux/Unix Terminal or Windows CMD console

What do you need to prepare?

  • An internet-connected computer for reading small books and doing simple exercises

What do you need to do?

  • Read this little book carefully
  • Finish all the exercises as you read

Then, you’ll be comfortable using Git in your work. And pretty soon, you’ll be known as the magic fireman (if you want to) in the eyes of your colleagues.

After reading this little book, Git is really not hard.

↑ : The above is from my Gold nugget booklet

If you are used to my style of writing and need a good grasp of Git, you can try this booklet.

But more importantly, if you’ve read a lot of Chinese and English Git tutorials on the Internet and never really got to know how to use Git, you should definitely check out this little book.

Portal: A detailed guide to Git and how to use it

Nugget user special promo code