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
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 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
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
/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
Reprint please specify the source: Alvin Lee's Blog: Http://blog.csdn.net/lihaoweiV
The git rebase command is powerful, and in the Git Authority Guide, change the order of submission, which teaches a very complicated method, using git reset ... git cherry-pick ... Wait for the order.
But if you use
A few important conceptsFirst, define several concepts:
WorkPlace: Work Area
Index: Staging Area
Repository: Local Warehouse/Repository
Remote: Repository
When cloning a project locally on a remote (such as GitHub) (assuming the project is named Gittest), you will see a directory named Gittest on the local directory with the Project code and a directory named . Git. What is a workspace, except for the .
modified content. In this case, Git does not know what line of content is needed, so you have to decide what you want.Once the resolution is complete, it can be submitted normally.
Common git commands
View File diffgit diff # Compare current file and staging area file diff git diffgit diff # Compare the differences be
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.