Transferred from: http://www.ibm.com/developerworks/cn/opensource/os-cn-tourofgit/The design idea of the distributed code base and file snapshot, which is advocated by Git, is a challenge and subversion relative to the traditional CVS, SVN and other
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
hint: Look at the way this article, do not understand the first skip, read the length of the following may be understood.
git and GitHub
concept
Git---version control tool (command).
Tool Introduction Official Website: http://git-scm.com
Tool
If not specified, ' $ ' means execution under the Linux terminal command lineOne. Install gitLinux Fedora Series installation command: $ sudo yum install gitLinux Debian Series installation command: $ sudo apt-get install gitTwo. Configure
1. Any branch can be created locally. If you do not push it to the server git, the contents of the server will not be affected.
2. Use git push as follows:
Git push file: // home/hebo/work/testgit/Master
In this way, only the master branch is pushed
-------git installation-------1.linux Installing Gitsudo apt-get install git older: sudo apt-get install Git-core 2.maxOS Installing GitBrew Install Git 3.windows Installing GitMsysgit is a Windows version of Git, downloaded from
How to use Git on Windows.First step: Register your GitHub account.Sign up for your GitHub account and create a resource warehouse core.Step two: Install Git.To install git, I'm using the git version of Git-1.9.5-preview20150319.exe,git after
OverviewBefore we describe what git is, we need to make a basic overview of versioning (version control), which, in general, is managed and maintained on two dimensions of time and space, and the code itselfAnd the project files of the organization
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.