Git is a tool and a science, and it depends on you how you want to learn and how you use it.
What I'm talking about here is the basic requirements that we can get started using git and actually realize the benefits of git.
First, download the installation
Very simple, can see Baidu tutorial git download installation g
DefinitionGit is a software this allows you to keep track of changes made to a project over time. Git works by recording the changes do to a project, storing those changes, then allowing you to reference them as NE Eded.Git project can be thought of as has three parts:
A working Directory: where you'll be doing all the work:creating, editing, deleting and organizing files
A Stagingarea: where you ' ll list changes your make to the working
Environment:1. UNIX-like systems2.git1.6.6+ perl5.8.8+ openssh5.0+3. Warehouse users, self-add user git4.ssh no key-free usergit-server:192.168.50.108git-client:192.168.50.112Deployment:Git-server:1. Use the GIT user's environment operation, or modify the git user's shell switch post deploymentSudo-u gitgit clone https://github.com/sitaramc/gitolite.gitmkdir $HOME/bin./gitolite/install-to/home/
1. Git commit–amendIf you just want to modify the commit you just submitted (the last commit), you can use to git commit --amend modify the last commit. Use this command to pop up a dialog box (under Windows) or the Vim editing interface (under Linux). In the pop-up interface to make changes, save can be submitted with the new submission information. This command can only modify the submission memo informat
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, it is not recommended that you toss. However, there is a man has the simulation environment and GIT are packaged, this is msysgit, only need to download a separate EXE installer, and nothing else to install, absolutely easy t
A. What is Git? Git is currently the world's most advanced distributed version control systemtwo. Basic KnowledgeCentral SCM (software Configuration Management)
Server: Single Database
Client: working directory, status
No-center SCM
Anyone can be a server
Working directory is also a warehouse
No network connection required for operation
three. What are the similaritie
Just using git push error
"$ git pushWarning:push.default has not been set, its default value in Git 2.0 has been from ' matching 'Change to ' simple '. To no longer display this information and maintain the traditional habits, make the following settings:git config--global push.default matchingTo no longer display this information and start using new habits from
Sort notes-common Git commands, notes-common git commands
In Windows, configure SSH to connect to GitHub/GitLab ==> when you need it, follow the search criteria Baidu.
Echo "content"> file name ==> string output.
1. Global Configuration:
Git config -- global user. name "user name"
Git config -- global user. email "ema
Git-Introduction to mobile recorder and reflog, git-recorder reflog
Reflog is really a Caring little cotton jacket
Preface
In the previous article, data is deleted. The topic of this article is data recovery. After learning these two skills, you can be more confident and bold.What is reflog?
Reflog, which can be divided into two words: Reference log and Reference log. When the reference in the Local wareh
Git learning path (3)-Submit a file to three zones, the path to gitToo many rows too many rowsIntroduction
It's almost a year later. Start learning! Git (continuous update)
Git has three work areas:
◆ Working Directory)
◆ Stage)
◆ Version Library (Repository)
Working Directory)
Simply put, you need to make a version of a folder, such as the 2048 folder in the p
Check out commands
This command overrides the workspace
The essence of the command is to modify the direction of the head itself without affecting the branch cursor. When this command is executed, the head header pointer is changed, from pointing to a reference (branch) to a commit ID, and the point of the Branch (master) is unchanged, still pointing to the original commit ID
"Split head pointer" state: Refers to a head pointer pointing to a specific commit ID
Usage one:
Version Control-git (2), version control-git
The last article introduced some basic knowledge of Git (http://www.cnblogs.com/jerehedu/p/4582398.html), and introduced the use of git init to initialize the version library, use git add to add files to the version library, use
The previous article described some of the uses of Git remote repositories, but there are some things that need to be added, so there's this sequel.. gitignoreIn the previous article, we introduced the Git patch feature, and when we generated the patch, "Git status" would show that the patch file was "untracked files". Of course, there is no need for us to track
When using a git command that can has a large amount of output (like git log , git diff or git blame ), Git opens the command outpu T in our terminal "pager"; On most modern unix-based systems, the default pager would be ' less '. Learning a few less commands would help us
Git details, gitGit details
Git emerged from android as a version management tool. Many people start using svn and perform simple check in check out operations, which makes it difficult to understand and adapt to git management through command line operations.
Therefore, many people continue to use the graphical git
Git operations-branch management (2), git operation branch managementResolve Conflicts
Scenario: Create a new branch feature1 and then add it to the readme.txt file.4 create a branch named feature1And then submit it on the feature1 branch. After submission, switch to the master branch, and then change the last rowcreate a new branch named feature1And submit again. Now, both the master branch and feature1 Br
[Git] Error prompt caused by Git not initialized
Business scenario: Use gitto submit the readme.txt file. The following message is displayed:
[pms@yhd-jqhadoop39 /home/pms/workspace/ouyangyewei/learngit]$git commit -m 'add readme.txt'*** Please tell me who you are.Run git config --global user.email "you@example.com"
One of the GIT series: Version Control Concept, distributed, git introduction and workflow
Note:
Git is powerful, flexible, and easy to use.
But it is also the flexibility of git. How to execute a unified process becomes a problem during the implementation of the company. I spent a lot of time developing a solutio
This article has documented common directives in Git bash.1 git operationsgit clone XXXXX: Cloning a GitHub project XXXXX to a localgit remote–v: Viewing remote connection Informationgit checkout xx: Enter XX branchGit checkout–b xx: Create and enter XX branchGit checkout–b zz yy/xx: Pull XX Branch from YY remote connection to local ZZ branchGit branch: View all current local branches and which branch is cu
First make sure that the machine is installed on Git, and then confirm that you can access the Gitlab server properly.Environment:Git:centos 7.x 192.168.126.138gitlab:centos7.x 192.168.126.1371: Fill in GITLABN warehouse informationLogin to Gitlab server address, new warehouseAfter a successful creation, it will automatically jump to the page of the warehouse:Above the red box, which is the warehouse address, we try to clone the warehouse to the local
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.