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
Git command for obtaining and creating projects, git command for obtaining Projects
Obtain and create project commands
Git init
Use git init to create a Git repository in the directory.
Use of GIT command line, use of GIT command line
If you know something wrong, give me some advice.
First, I want to know what GIT is. GIT is an open-source distributed version control tool. Among all the distributed version contro
also get your tags.Check out labelsYou can't really check out a tag in Git because they don't move back and forth like branches. If you want the working directory to be exactly the same as the specific label version in the Repository, you can use Git checkout-b [branchname] [tagname] to create a new branch on a specific label:$ git checkout-b version2 v2.0.0Swit
host, with the same name as the version library of the remote host. If you want to specify different directory names, you can use the directory name as the second parameter of the GIT clone command.
$ Git clone
Git clone supports multiple protocols. In addition to HTTP (s), it also supports SSH,
git command practice, git commands
One, the order
git checkout-b branch name//Create branch and switch to that branch
Git checkout branch name//switch to this branch
Git merge branch name//merge branch into current branch
Git command practice, git command
I. Commands
Git checkout-B branch name // create a branch and switch to the Branch
Git checkout branch name // switch to this branch
Git merge branch n
Git command usage experience and git usage experience
I recently learned about git commands to operate on the database and found that although there are not many git commands (of course not few), they are very powerful in combination, more importantly, many commands have di
the same value in the/etc/gitconfig.
In Windows systems, Git looks for a. gitconfig file in the $home directory (for most people, under C:documents and Settings$user). It also looks for/etc/gitconfig, although it is relative to the Msys root directory. This could be anywhere you decide to install git when you run Setup in Windows.
Two. Your logo (Your identity)
2.1 The first thing to do when you install
remote library
git remote -vShow more detailed information
Common modification Directives
git add readme.txtAdd, but do not commit
git commit -m "提交描述"Submit, only add after the submission is valid . "Change file->add file, and so on", the second modification is invalid, will not be submitted, will only successfully commit the first modific
Readme| 1 + 1 file changed, 1 insertion (+) Create mode100644Readme$ git log --graph--pretty=oneline--abbrev-commit* 5a036ee test ff * 30a974d Merge branch ' xxx 'into master|\ ...Focus on two points:1. the first place to be yellow, in the TEST-FF version checkout-b, found that git two branch completely no difference.The git checkout-b dev
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
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
of each other. When we create a warehouse, we create a master branch by default, and we can do it on other branches
To be developed and then merged into one branch after completion.
First we can create a branch feature git checkout-b feature
And then we'll cut back to the main branch git checkout Master
Then remove the new branch from Git branch-d feature
(7) Up
, contrasting, and merging project updates, it's easy to understand the situation and do things right.
Directory get and create a project Git pre-use configuration settings git Local project development Library default path configuration local user and Mailbox init clone Basic Snapshot Add status diff commit reset rm, MV Branch and merge branch Checkout merge log tag share and update item Fetch, pull push r
Linux git clone error: git-upload-pack: command not found problem with git clone get code on the server [plain] [root @ localhost code] $ git clone root@192.168.57.61: /root/code. git www.2cto.com reports The following error: bash
Create a Git repository under the Windows git Bash command line and update it to github, gitgithub
When I was in my sophomore year, I heard the teacher say that there was a version management tool called git. At that time, I only listened to the teacher and didn't use it because I used svn, I feel that I don't have mu
Tags:-o bin ons output content img git web ocaJust starting with Jenkins, the unit has a project that both Windows and Macs need to compile.Equipped with a Jenkins Master, two agent node, a Windows environment, a MAC environment, all Java Web start start.Download code from git under Windows Well, the Mac has an error:git: ' Credential-osxkeychain ' is not a git c
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.