Concise git tutorial (single-user version) and git tutorial
Recently, I started to write a relatively large project, so I need to use git. I have been using SVN built with Kingsoft kubernetes and turtles. Recently I want to try git.
1. Install
Ubuntu:
1 sudo apt-get install git
Summary: When you use GIT for project development, you need to communicate with the remote server. One of the most frequently used places is getting stored objects from a remote repository. We know that git pull equals the result of git fetch and git merge. So where is the object that
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:
Original:Http://gitbook.liuhui998.com/4_2.htmlfirst, the basicgit rebase is used to merge changes from one branch into the current branch. Suppose you now create a branch called "MyWork" based on the remote branch "origin". $ git Checkout-b mywork originAssumeremote Branch "origin"There have been 2 commits,Now let's make some changes in this branch and then generate two commits (commit).$ VI file.txt$ git c
ArticleDirectory
Version Branch
Start work
Preface
Do not use this article as a technical article for programmers. Even if you do not know anything about programming, you can follow the instructions in this article to learn how to do it. More importantly, this article will show you how to make git your job log, your backup tool, and your project management software. That's right. Git makes
Install and use Git (1). install and use git
I had nothing to do with writing a demo. I wanted to upload it to GitHub and found that I had to use git for upload. So I had to know about git first.
1. What is git?
Distributed version controller
2. Differences between svn and g
To improve the efficiency of git usage, more git graphical tools are used to operate git. (In special cases, git command lines are used to operate git.) If the graphical tool interface provided by git is not friendly enough, you c
CVS > SVN > GIT version Control History GIT: A free, open source distributed version control system . A. Create a git repository 1 . First register your account on the https://github.com platform 2 . Create a project; After successful landing, there is a "+" symbol next to the user name, click to create a new project; Enter the project name, here I enter
First, create a GitHub repository (warehouse)1. Login to GitHubTo create a github repository, you first need to login to the Github,github URL: https://github.com. If you don't have a GitHub account, you'll need to sign up for a GitHub account, not here to show you how to sign up for GitHub.2. Create Repository (warehouse)There are two ways of creating a repository warehouse.2.1. Use the downward inverted triangle in the upper right corner to create it, as shown in:2.2. Create using the new Repo
Why use Git
Confucius once said, the name is a word shun shun the matter into.
Before we learn a new technology, figuring out why it's important to learn it, and why we want to learn about git, I use a if-else statement to tell you why:
if (you believe me) { I recommend you to study;} else if (admittedly, I am not a bull, you can not believe me, but you should believe in most people's choice)
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
Recordsusing the Gitblit tool to create a git warehouse service under LinuxHow to install the Gitblit tool on your Linux server or PC. First, let's look at what Git is, its functionality, and the steps to install Gitblit. Git is a distributed version control system that emphasizes speed, data consistency, and supports distributed, non-linear workflows. It was or
Before reading this blog post, please follow my detailed instructions on the git diff command, only in order to have a detailed understanding of the git reset command;Let's see what git reset is.An important task of a version control system is to provide the ability to undo and redo a stage of work.The Git-reset comman
Git work structure, git StructureCreate a version Library
First select a directory (make sure that the directory name does not contain Chinese characters), and thengit bash, And then under this directory$ git initChange this directory to a git-managed repository (repository)
In this way,
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
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
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
This article briefly introduces how to connect to git @ osc through the git client under xp. 1. download the latest git client from google code. Start git bash after installation. 2. Switch the cd directory to the custom path. I will create a git directory on drive F. 3. log
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.