When using git, the general usage is CD to the repository directory for related operations, such as there is such a repository, D: \ pygit2 (through git clone https://github.com/libgit2/pygit2.git)The general practice is cd d: \ pygit2, and then execute Git-related commands, such as
Document directory
Git is distributed, and SVN is not:
Git stores the content in metadata mode, while SVN stores the content by file:
Git branch and SVN branch are different:
Git does not have a global version number, while SVN does:
The content integrity of git is be
1. Git add is an easy-to-query command. The SVN add action in Subversion is to add a file to version control, and git add has a completely different meaning.At the same time, Git diff--cached is the difference between the files in the stage and a non-intuitive command.GitHub's 2008 blog, also mentioned, is prone to confusion:https://github.com/blog/196-gittogethe
git resolves local conflicts
The process is very simple, mainly using the git stash command for processing, divided into the following steps to deal with.
1. Store local Modifications first
$ git stashThis allows all local modifications to be temporarily stored. is to use Git stash list to see the saved information:
free software projects. For example, it has recently been migrated to git, and many freedesktop projects have also been migrated to git.
Save point: the GIT save point can track files in the source code and get the status of the entire project at a certain point in time. You can merge the source code submitted by multiple users at this save point, it can also b
Tag: git1. Background: git is a popular version management software. It has been used only by SVN and git. Although git has been used for a long time, it has not been studied in depth. This week, I plan to read progit and have an in-depth summary of git, in addition, summarize some of the main
system's default editor, which is usually either VI or vim. If you want to use a different text editor, such as Emacs, you can do the following: $ git config--global core.editor emacs2.3 Your comparison tools (Your Diff tool)Another useful option that you might want to configure is the default comparison tool, which is used to resolve conflicts when merging. For example, you want to use Vimdiff:$
Learn more about Mac-connected git operations for MacFirst on the service sideFirst: Create a new warehouse1, Cd/users/username/projectsUse the Linux command to enter a folder that you want to create to share with others.2,sudo git--bare initBuild a git repository.The "git init–bare" method creates a so-called bare rep
Easily use git commands to create code repositories and git command code repositories
We can easily use the git command to upload code modifications. In this article, we will learn how to use git to create a repository.Five-step command for creating repository:
Git init
Git conflicts occur with multi-user collaboration, and in some cases git can automatically merge intelligently, but sometimes users need to merge manually.
(This article links: http://blog.csdn.net/u012150179/article/details/14047183) one. Git Smart Auto Merge1. Multi-member modification of different files this is in accordance with the "non-fast-forward push" de
The basic principles of git are described in the previous two-disk article, which is theoretical knowledge. In this article we go back to practice and look at the use of Git branching (branch).In the Code versioning tool, there is a branch concept. When we started building the repository, we had only one main branch (Master Branch), and it was not possible to put the concept of daily new functionality devel
The purpose of writing this article is simply to have a place to collect the commands I often use. (Old, bad memory, good memories as bad pen)
The text screenshots and the introduction of the project address may not be consistent, because most of the address has been modified, the omission may not be modified, screenshots more trouble, will not be a screenshot: 1. Apply for Gitlab account, get the SSH address of the project
Apply for the company's git
image to install it.
If you want to use package management similar to Homebrew or macports for installation, it is also very simple.
Homebrew
$SudoBrewInstall Git
Macports
$SudoPort selfupdate $SudoPortInstallGit-core
(SUDO is a command that has the root user permission to run; it is usually required to install software. If sudo is used, the command line requires the user password .)
If you want to experience
Git is a free, open source, distributed version control system that was first created by Linus Torvalds to manage the development of Linux Kernels. version control System ( VSS)/ source code Manager (SCM)/ revision control system (RCS): refers to a different version of the tool that can manage and track software code and other similar content. There are two ways to build the underlying technology of the Git
Git is a distributed version control system, and the version control tools we use most often have SVN. Here we have to distinguish what is distributed version control system, what is centralized version control system.Centralized version control systemCentralized versioning system (centralized version control systems, abbreviation CVCS). Such systems, such as cvs,subversion and Perforce, have a single, cent
reset HEAD --hard is similar to, but only affects, specific files.SummarizeYou have now mastered all the tools for undoing changes in the Git repository. git reset, git checkout and git revert commands are easy to confuse, but when you think of their different effects on th
can say without modesty;)Why can git work so well on Linux?Torvalds: Well, obviously it's designed for our workflow, so he's a part of Linux. I have mentioned the full "distributed" section many times, but it is worth mentioning again and again. It was designed to be efficient in the face of large projects like Linux, and it was designed to accomplish tasks that were considered "difficult" before it-because I do it every day.Just one example: the con
1. Mysysgit+gitblit installation process1.1 ResourcesNeed to download the good resources (the company's 1.6,1.7+ please match the corresponding mysysgit+gitblit):jdk1.6Git-1.8.4-preview20130916.exeGitblit-1.2.1.rar1.2 Installation1.2.1 Git Bash installation1) Double click on the pop-up installation page2) Click on 2 times Next, enter the path selection, add a custom path;3) Click Next to enter the selection component,4) Click the next step 2 times, se
To configure git in eclipse:One, because I am using the new version of Eclipse Java EE 4.4 Default integration git, so do not manually install the Git pluginSecond, eclipse configures the underlying information. Windows->preferences->team->git such as:preferences->team->git-
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.