What is Git?
Git Git Git Git Git Git Git Git Git Git Git Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
Git is a free and open source distributed version control system designed to handle version management quickly and efficiently for all projects from small to large.
Git is very easy to learn, low to implant, and high performance. With its lightweight local branches, easy-to-use staging area, and multi-workflow features, it surpasses other SCM tools like Subversion, CVS, Perforce, and ClearCase.
In short, Git is a distributed version control system.
Why learn Git?
There is no such thing as learning for nothing, because you need to use, so you need to understand and learn.
Git is by far the most popular version management tool out there, and even if your company doesn’t use Git, if you use Github, you’ll definitely use Git. If you’re not using GitHub, use it. You’re missing out on a lot of great open source projects. Github, the most popular open source community, is based on Git version control system, so it is very important to master Git skills.
Because Git is so popular, many ides now integrate Git and provide graphical operations. There are also many excellent Git GUI tools designed to simplify Git CA operations, such as SourceTree,Tortoise, etc.
But I want to say that the command line is king of Git!
The reason is that the tool base of Git Gui is also used to encapsulate Git commands, so direct Git command is the most flexible operation, after learning, you almost, omnipotent. (Here imagine Mary Sue’s tone of voice). It is also not recommended to start with the GUI, as it is not very helpful to understand Git’s inner workings. To be honest, when I first got to know Git, I started with GUI. Android Studio integrated Git graphical page, which is quite easy to use for dumbfounded purposes, but I didn’t dare to add Git to my resume until I started command line this year.
The command line is easy to learn and very, very cool to use.
Git installation and environment configuration
The first step is to use any git command to see if you have Git installed on your computer
Mac: Terminal or iTerm2 Windows :(Windows+R) CMD
Such as:
Git is downloaded by default on Mac systems, but not on Windows systems, so Windows users need to download it from the git official website
Step 2 Configure the environment
Windows users:
1. Install git.exe from the official website and go to Next. 2. Right-click “This computer” -> “Properties” -> “Advanced System Settings” -> “Environment Variables” -> find “Path” under “User Variables” -> select “path” and choose “Edit”, add the full path of the bin file in the git installation directory -> Save 3. Repeat step 1 to verify that the configuration is successful
Mac users:
That’s when you can go get a glass of water, because the system has done everything for you.
Preparation before learning Git
First, you need to have a GitHub account. Seriously. Sign up for GitHub here
Many people (including me) have this question in their minds when they first start out: What is the relationship between Git and GitHub and what is the difference between them? Git is a version control system, so it’s worth talking about Github.
To be precise, GitHub is a company based in San Francisco that was launched in April 2008. The company then officially launched GitHub on April 10, 2008. How People Build Software · GitHub is a git-based version hosting service. Since its launch, GitHub has grown so quickly that it is now the largest open source community in the world.
GitHub code repository, only support Git to do version management, only through Git can upload code to GitHub.
That’s the relationship between Git and GitHub.
And the rest of the blog uses GitHub as our repository.
Proper noun interpretation
- SCM Software Configuration Management (SCM) Software configuration management
Software configuration management (SCM) is the practice of implementing version control, change control procedures, and the use of appropriate configuration management software to ensure the integrity and traceability of all configuration items. Configuration management is an effective protection of work products.
- IDE (Integrated Development Environment
An IDE is an application that provides a program development environment and typically includes tools such as a code editor, compiler, debugger, and graphical user interface. Integrated code writing function, analysis function, compilation function, debugging function and other integrated development software service set. Any software or suite of software that has this feature can be called an integrated development environment (IDE).
- Graphical User Interface (GUI
Graphical User Interface (GUI) is a Graphical User Interface used for computer operations.