git add [file name ] Add a file to git indexgit commit-v when you use the-v parameter you can see the difference in commit git commit-m "This is the message describing the commit" to add a commit message Git commit-a-A is on behalf of Add, add all the changes to Git index a
modify someone else's code, we want to see who wrote the particular line of the file, and we can use blame (blame, to hold it accountable).
git blame file
After you execute the above command, each row will show who submitted the specific, and you can flip the page with the paging key.
git command alias settings
Do you think it's a bit troublesome to knock on
Common git commands and git commandsCommon Git commands
View, add, submit, delete, retrieve, and reset the modified File
Git help
Git show # display the submitted content
file Cat Id_rsa.pub 2,
Add Warehouse
Copy warehouse address, for download to local if you want to delete the warehouse, it is also very simple eight,
Build Oschina Remote Warehouse
1.
Create a warehouse
Register a Oschina account: Https://git.oschina.net Warehouse Address
Add Project group members
Then you need to set up Git's mailbox and user name at the terminal, or you won't have access to the repository.2.
Delete Warehouse
Source Control--
GitHub for Windows usageArticleIt is good to take us to get started with GitHub and a gitshell. This tool can run all the commands of GitHub to do more things, for example, how to merge git is a task we want to complete today?CodeCode from the library to your own library.
Windows powershellCopyright (c) 2012 Microsoft Corporation. All rights reserved.
C: \ Users \ geffzhang \ Documents \ GitHub \ shar
Git commands can be sorted in Chinese and git commands in Chinese.
Git command quick query table Chinese Version
Create
Copy A created warehouse:
$ git clone ssh://user@domain.com/repo.git
Create a new local repository:
Common Git commands and git commands
Since work, the source code management tool has used SVN, TFS, Git, and finally exclusive Git
This blog summarizes the Git
Five steps to master the basic development and usage commands of Git, and five steps to master git commandsStep 1: set global variables:
git config --global user.name "gang.li"git config --global user.email "ligang@ptthink.com"Step 2: Initialize the repository and push it to
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 "use
Common git operation commands and git operation commands
Record the common Git command operations in the work. A project is often developed by multiple people in collaboration. Using git is a required skill for developers. Below a
checkout--check out, is our common command. Often used to switch branches, here is another use of git checkout.
2, Git checkout. Title
Action: Cancels all previous uncommitted modifications under the current directory. That is, we can use this command to cancel the previous modification before we change the code, but without a commit.
3, Git checkout a/abc
Expla
Common Git commands and common Git commands
Mkdir:XX (create an empty directory XX refers to the directory name)
Pwd:Shows the path of the current directory.
Git initChange the current directory to a manageable git repository and
Common Git commands and git commands
This article is in the study of the summary, welcome to reprint but please note the Source: http://blog.csdn.net/pistolove/article/details/47315569
Recently, I have been studying common git commands
Git configuration and Common commands, git configuration Common commands
1. Configuration
1) download the git software online. I'm git-1.9.5-preview20150319.exe and TortoiseGit-1.8.14.0-64bit.msi.
After installation, click
Common git commands and git commands
1. Create a branch that is identical to the remote dev branch and switch
Git checkout-B zhaojigangDev origin/dev
2. Create a branch identical to the remote dev branch, track the remote dev branch, and finally switch
Git is a great solution-2. Detailed explanation of Git local operation commandsGit is a great solution-2. Detailed explanation of Git local operation commands
Tag: Git
Introduction
The previous section explains some concepts about Git
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:
Getting started with gitIf you have no access to git at all, you can now simply understand the syntax of git (typing some commands) to upload the code to a remote repository or download to a local repository (server), we should have two warehouses at this time, that is, two places to put code, one is local, and the other is remote ( such as GitHub). The enterpris
/learngit.gitSecond, git common commands"Basic Command"
mkdir creating a File cd file entry
Git init turns this directory into a repository that git can manage, generating. git files
git add readme.txt Adding files to the
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.