Git learn------> write 7 tips for git beginners _git Learning

Source: Internet
Author: User
Tags git workflow git client using git version control system

PS: This article is reproduced in (http://blog.jobbole.com/50603/), this article by Bole Online-Wu Pengyu translation. English origin: (http://sixrevisions.com/web-development/git-tips/)


When I first started using Git's version control, I was not sure if I paid that much time would be rewarded. Branch, Stage, Stash, these git nouns are very strange to me.

And today I can't imagine what life would be like without git. Git not only provides the version control features I need very much, but also makes me a better programmer.

Here are a series of tips to help you make git a very important part of your development effort.

First: Take the time to learn about Git's basic operations

Learning Git's basics doesn't require you to read through the entire GIT document (but if that's your way, I won't disagree).

Git has too much educational content, I'm sure there must be the best way to learn about your appetite.

7 Tips for Git beginners _git Learning ">

Take a look at the following Git learning resources: How to get started using git quickly try git–15 minutes git interactive tutorial tips and tricks (ry git teachings) is the common git feature of the Practice tutorial git simple guide git Ready is a collection with many simple and brief git hints of the web site git cheat code git Tower learning area is a list of git learning resources on my website git official tutorial training:git Basics (Video) is a YouTube video listing Pro git a book that gives you a deeper understanding of Git's online books Article two: Start with a simple git workflow

Less is more.

Often, git is associated with a complex workflow. But I can say this: you don't need to be a git master for the benefit of git for the time being.

Git's workflows can be very simple-and in many cases what you need is as simple as that. You can certainly use multiple remote repositories, issue pull request, rebase changes and so on, but you do not want to use these words completely can not.

Starting with a simple work flow can also make it easy to add complexity or use git advanced functionality later. When you need to use these features, Git is ready.

Here are some examples of the different git workflows you can get from their ideas to inspire the designer's git workflow Markus Prinz git workflow Yehuda Katz's general git workflow Agile Team git workflow

Overall: Don't be so stressed out that git has to learn anything, you can start using git from today.

Rule number three: Don't be afraid to make mistakes.

One of the best things about git is that it's almost 100% easy to manipulate.

Remember that the following points will make you sleep better at night: git basically does not delete data. Even those that appear to be deleting data are actually trying to get you to undo the deletion faster, adding data to the system. Git can basically undo all operations. I encourage you to experiment more and explore your ideas, as this is one of the main benefits of using a version control system. Each member of your team has a separate copy of his/her computer. In essence, it's more like a redundant backup of the entire version control project (including the entire history), and you're Lou Zi and you're not able to undo this situation is extremely rare. Fourth: Understanding Branching concepts

In Git, the concept of branching is the most useful thing you can learn at first. Branching allows you to isolate and develop your project, and it's a critical point to be an efficient git user.

It doesn't sound like a big deal at first, but once you fully understand the branching concept, you start to wonder how you're going to live without it.

While other version control systems use branching concepts, Git is the first system to implement it and make it work.

7 Tips for Git beginners _git Learning ">

Here are some resources to help you understand the concept of git branching: learngitbranching! is a git branch of an interactive tutorial git basic branch and merge branching is a git branch and a short introduction to the merge Git branch is a lot of drawing git tutorial "a successful Git Branching model "

Fifth: Learning Registers

Versioning can be very useful when your submission contains only a few related changes [b], which ensures that your submission can be rolled back without any side effects, and that the habit of submitting regularly can also give your co-workers a better understanding of your progress.

Git has a function called registers to make it all possible.

Learn to use registers and love it, because this is the most important and independent module in Git. Why is registers so useful with registers's benefits--a discussion topic about git registers. The time to learn git--a short tutorial on registers in a blog post git

Sixth: Using Git graphical interface

Although using a graphical interface is definitely not a requirement, I highly recommend it.

Using a graphical interface makes most operations simple, allowing you to take advantage of the project at the beginning.

In any case, using git should not just memorize commands and parameters, but rather improve your programming workflow. If the graphical interface can do this, there's no reason to make simple things difficult.

7 Tips for Git beginners _git Learning ">

Take a look at these git interfaces: Tortoise git–windows platform open source git gui Gitx (L) – Mac OS x open source git client sourcetree–windows and Mac free git or mecurial interface g it-cola– an open source Git interface tower– our company for Mac users out of the Git interface

Using a graphical interface does not ease the burden of learning the basics of git, but once you're happy to conquer git, using these tools will make your life easier.

Seventh: Promise to yourself that you will use Git

Using a new tool can be very frustrating at first, and there's only one way to get through this learning curve: keep going.

Make a full commitment not to look back. Introducing git into your normal workflow will soon prove to be the biggest and most meaningful decision you've made in the near future.

Avoid this: "I will use Git in this project, but other projects will be added." "At least not at first."

A full commitment to this mindset will give you more opportunities to practice and make things easier because you know you are using a version control system for this project. And more importantly, let Git be your programming habit.

In the future, you'll see that there's only so many things you don't need to use to Git,

Make a 100% commitment to yourself as the beginning of the path of Git conquest.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.