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
Git remote repository details
Outline:
I. Preface
Ii. Git server Construction
3. Add remote warehouses
4. clone a repository from a remote location
V. Summary
Note: CentOS 5.5 x86_64, Git server version: git version 1.8.2.1, and Client version: git
Environment:
Git Sserver
IP: 192.168.40.128
Git Client
IP: 192.168.40.134
-----------------------------------------
Recommended reading:
Fedora downloads Git through Http Proxy
Install Git on Ubuntu Server
Create a Git repository on the server
I first published and summed up the things I learned, there are bad places please point out
one, git upload item (install git)
There are two ways git uploads a project: An HTTPS method, an SSH method
HTTPS method:
1, first login github.com
Example of Git repository server SSH Authentication
Git provides three solutions for user management and management:
If everyone in the team needs to have the write permission on the repository and cannot create an account for everyone on the server,
Git common commands in a detailedGit is a very powerful distributed version control system. It is not only suitable for managing the source code of large open source software, but also has many advantages in managing private documents and source
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.