Features:
1. You can quickly switch between project branches.
2. roll back the version of a branch.
3. You do not need to modify the configuration file (defined for projects) for each branch switch)
4. You do not need to create/switch virtual directories/domain names because they are all in the same directory.
5. Are these attractive to you? If you like it, join in.
What is git?
Git is
Related articles:For a way to verify that an SSH configuration exists and generate an SSH key, refer to the article: Git usage manual: Generate SSH key for SSH key usage and public key in GitHub, Gitlab configuration, please refer to article: Git usage manual: Use SSH key and configure SSH Key public key on the concepts and relationships of Git workspaces, regist
Git's first use Git common command query Git push Git pull before introducing installation and simple use, let's take a look at The introduction in Baidu Encyclopedia: ---------------------------------- Git --- The stupid content tracker, dummies content tracker. In Linux, we will introduce
Original URL: http://blog.jobbole.com/25775/Original: "Pro Git"StartThis chapter describes the knowledge before you start using Git. We'll start with the historical background of some version control tools, and then try to get Git to run on your system until it's finally configured to work properly. After reading this
StartThis chapter describes the knowledge before you start using Git. We'll start with the historical background of some version control tools, and then try to get Git to run on your system until it's finally configured to work properly. After reading this chapter, you'll see why Git is so popular and why you should st
objects:20, done.Compressing objects:100% (12/12), done.Writing objects:100% (18/18)The card is not moving, and the change is not in the push .... Can't get in ... Not going to ... To...I thought it was the wrong way to open, various retries, retry, retry, change posture, try again ... The result, Google Bar (by the way despise Baidu, Mao also can't search out), turn over the internet finally wait until you ~ Fortunately I did not give up.Windows git
Start
This chapter describes the knowledge before using git. We will first understand the historical background of some version control tools, and then try to let git run on your system until the final configuration is complete, you can start development normally. After reading this chapter, you will understand why git
fix, and a specialized new function, merge merge after stabilization
Git branch bug_fix # create branch named bug_fix
Git checkout bug_fix # Switch to bug_fix
Git checkout master # Switch to the primary Repo
Git merge bug_fix # merge the bug_fix branch with the current Branch
# If you have a remote branch, y
You're free to collect some git commands from the Web, sort it out.1. Common git commands
Command
Brief Description
Special Notes
git add
Add to Staging Area
Git add–interactive
Interactive add
Overview
When using Git for source code maintenance, it is often possible to view the differences before each code version, such as Git diff before committing the change to see the source file code relative to the corresponding version or remote repository changes. If there is a conflict, you need to merge the changed code into the specified version (for example, the remote branch).
start –beyond Compare fr
.
Branch merging is possible on a single machine.
Cattle + plugin Plus. Git flow, a plugin provided by Vincent Driessen Branch model.
[Email protected]A Successful Git branching modelHow to use Git
Installation
$ Brew Install git
Create a warehouse
$
development refers to CVS, which should be a very basic mode of cooperation. However, you can only perform this step. All the instructions in this tutorial are verified by yourself. At least it can meet the company's basic cooperative development requirements. After completing the tutorial, Xie Xin said that he could share it with you on his blog. I think it's a good idea. On the one hand, I think this document should help git beginners, and on the o
may also use other commands frequently, so don't hesitate to create aliases.This technique can be useful when creating commands that you think should exist. For example, to resolve the ease-of-use problem of canceling a staging file, you can add your own cancellation staging alias to Git:$ git config--global alias.unstage ' reset HEAD--'This causes the following two commands to be equivalent:$
" Downloads ", select" Command line Tools "and click" Install "to complete the installation. 3. Installation under Window platform
When you want to use a lot of Linux/unix tools under Windows, you need to cygwin such a simulation environment, GIT is the same. Cygwin installation and configuration are more complex, I also have a wooden configuration. The use of c
that all file modifications to be submitted are stored in the temporary storage area, and all modifications to the temporary storage area are submitted at one time. Once submitted, if you have not made any changes to the workspace, the workspace will be "clean. That is: nothing to commit (working directory clean ).
Note: run the "git diff HEAD -- filename" command to view the differences between the latest version in the workspace and the temporary s
, that's definitely a conflict.
Each time a new version is submitted, Git will actually automatically string them into a timeline. If you use visual tools to view git history, you can see the timeline for submitting history more clearly:
OK, now we start the time shuttle, ready to Readme.txt back to the previous version, which is the "Add distributed" version,
Today, the company trained git, and then went home from work to search for it and reviewed it again to help increase the impression. This article is of great help to new users who are just working on the project. Let you know whenCommit, when to use-Pull, when to push, and some precautions!
1. OverviewFor software version management tools, cool news decided to abandon CVs and turn to git.Why
Introduction to GIF Basics
So, simply put, what kind of a system is Git? Please note that the next thing is very important, if you understand the idea of Git and the basic principle of work, you will know the reason why, with ease. When you start to learn Git, don't try to match concepts to other version control systems (such as Subversion and Perforce, etc.), o
We've been switching from SVN to git for years, and now almost all of the projects are managed using GitHub, and this article tells you why Git is used and how it's used correctly in your team. Advantages of Git
There are many advantages to git, but here are just a few points that I think are very prominent. Because it
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.