When I first started using Git version control, I wasn't sure if I'd pay that much time. Branch, Stage, Stash, these git nouns are very unfamiliar to me.
And today I can't imagine what it would be like to live without git. Git not only provides the version control I really need, but also makes me a better programmer.
Here are a number of tips to help you make git a very important part of your development effort.
First: Take the time to learn basic git operations
The basic thing about learning Git is not asking you to read the entire Git document from start to finish (but if that's your way, I wouldn't oppose it).
There's too much education in git, and I'm sure there must be the best way to learn about your appetite.
Check out these git learning resources below:
How to get started with git quickly
Try a Git-15 minute git interactive tutorial
Tips and Tricks (ry's git teachings) are a practical tutorial on common git features
Git Simple Guide
Git ready is a site that has many simple and short git hints.
Git cheat Code
The Git tower learning area is a list of git learning resources on my Site
Git official Tutorials
Training:git Basics (VIDEO) is a list of videos on YouTube
Pro git is an online book that gives you a deep understanding of git
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 have to be a git guru for a while for the benefits of Git.
Git workflows can be very simple-and in many cases you need to be so simple. You can certainly use multiple remote repositories, issue pull request, rebase changes and so on, but you don't want to use these words completely.
Getting from a simple workflow to a hand also makes it easy to add complexity later or use Git advanced features. When you need to use these features, Git is ready.
Here are some examples of different git workflows that you can get inspired by their ideas
The designer's Git workflow
Markus Prinz git workflow
Yehuda Katz's Common git workflow
A git workflow for Agile teams
Overall: Don't get stressed out because you think git is going to learn everything, you can start using git today.
Article three: Don't be afraid to make mistakes again
One of the best things about git is that it's almost 100% easy to get started.
Keep in mind that the following points will make you sleep more soundly at night:
1.Git basically does not delete data. Even those actions that appear to be deleting data are actually intended to allow you to undo the deletion faster and to add data to the system.
2.Git basically can 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 system.
3. Each member of your team has his or her own copy of the computer. Essentially it's more like a redundant backup of the entire version control project (including the entire history), you poke big Lou Zi and there's no way to restore the situation is extremely rare.
Fourth: Understanding Branching concepts
In Git, the concept of branching is the most useful thing you can learn from the beginning. Branching allows you to isolate the development of your project, and it is critical 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'll start thinking about how you're going to survive without it.
While other version control systems use branching concepts, Git is the first system to implement it and make it useful.
Here are some resources to help you understand the git branching concept:
Learngitbranching! is an interactive tutorial for a git branch
GIT Basic Branch and merge
Branching is a short introduction to git branching and merging
Git branch is a git tutorial with a lot of drawings
"A successful Git branching model"
Fifth: Learning Staging Area
Versioning can be very useful when your submission contains only a few related changes [b], which ensures that your submissions are rolled back without any side effects, and that the habit of submitting often allows your coworkers to better understand your progress.
Git has a feature called staging area that makes it all possible.
Learn to use staging area and fall in love with it because this is the most important and independent module in Git.
1. Why staging area is so useful
2. What are the benefits of using staging area--a discussion topic about git staging area
3. Ah ha! The time to learn git--a blog post
A short tutorial on staging area on 4.Git
Sixth: Using the 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, giving you the edge at the start of your project.
In any case, using git should not just remember a variety of commands and parameters, but rather improve your programming workflow. If the graphical interface can do this, there is no reason to make the simple work difficult.
Check out these git interfaces:
Open source Git graphical interface under Tortoise Git-windows platform
GITX (L)-Open source git client under Mac OS x
Free git or mecurial interface under Sourcetree-windows and Mac
Git-cola-an open source Git interface
Tower-Our company's Git interface for Mac users
Using a graphical interface does not relieve you of the burden of learning git basics, but once you have conquered git happily, using these tools will make your life easier.
Seventh: Promise yourself you'll use Git
Using a new tool starts with a headache, and there's only one way to get through this learning curve: keep going.
Make a full commitment, don't look back. Introducing git into your normal workflow will soon prove to be the biggest, most meaningful decision you've made in the near future.
Avoid this: "I'm going to use Git in this project, but the other items are going to be the same." "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 that you now have a version control system in the project. And more importantly, let Git be your programming habit.
In the near future, you'll see that there are only a few situations where you don't need git,
Make a 100% commitment to yourself as the beginning of the path to git conquest.
7 Tips for Git Beginners