Git is a powerful distributed versioning tool that applies not only to the source code for managing large open source software (such as Linux kernel), but also to managing private documents and sources (such as: Wsi-lgame-pro)
For more information about git, please refer to my previous blog: Git version management tool
First,
Git is used every day, but a lot of commands can't remember.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special nouns are translated as f
Original address: http://blog.csdn.net/ithomer/article/details/7529022
-------------------------------
First , Git commands to recognize
Before formally introducing GIT commands, let's introduce Git's basic commands and actions, and have a general understanding of
Thanks to Liaoche, the great God shared git lessons
Master the following commands, basically daily enough local warehouse common operation to create a repository
Git init Add file to buffer
Git add file to warehouse
Git commit-m "Commint describtion" undo Modify or clear buf
Summary of COMMON commands
One, fallback to a node, by the following command:
Git Reset–hard HASH returns to a node without preserving modifications such as:
Git Reset–hard HASH returns to a node, preserving the modification.
Second, all the local changes. No commits are returned to the original state.
Git Checkout.
Strong push, which uses your local code to replace content in your git repository with a strong overlayGit push-fgit fetch--prune #这样就可在本地删除在远程不存在的branchMans Git-fetch--pruneAfter fetching, remove any remote tracking branches which no longer exist on the remote.-T,--tagsThe most of the tags is fetched automatically as branch heads is downloaded, but tags it does notPoint at objects reachable from the branch
Git compile installation and common commands =========================================: compiling installation and setting 1.1: Introduction GitHub website address (download source package): https://github.com/git/ Git.git git downloads on systems such as Windows Mac: Https://git
NanyiDate: December 9, 2015I use Git every day, but I can't remember many commands.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special nouns are translated as follows.
git commands, like a Linux command, are easy and quick to operate with commands. In general, the daily use just remember the following figure 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.
Here's a summary of common Git
all files of staging area, canceling all local modifications, is a dangerous operation Git cleanDelete Local redundant directories and files Git clean-nd, which shows what to delete, but is pre-deleted Git clean-fd, forcing the removal of redundant files and directories git rmThe RM command deletes files that have bee
List of common Git commandsHere's a list of common Git commands I've compiled. Several special nouns are translated as follows.
Workspace: Work Area
Index/stage: Staging Area
Repository: Warehouse area (or local warehouse)
Remote: Repository
First, create a new code base
# 在当前目录新建一个
Guide
Git is a free, open source distributed version control system for agile and efficient processing of any or small or large project. In general, you can use Git as long as you remember 6 commands. But skilled use, I am afraid to remember 60~100 a command.
Here's a list of common Git
. Git is free software.5
HEADThe point is the current version, so git allows us to navigate between versions of history, using commands git reset --hard commit_id .
Before you travel, git log you can view the commit history to determine which version to fallback
Source: Nanyi's Blog
Website: http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html
I use Git every day, but I can't remember many commands.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git
GIT's general operationsRegular operation is also a few of my own usual commands, learned from pro git this bookgit configuration file
Git's configuration file locationFor all users:/etc/gitconfigFor current User: ~/.gitconfig
To view the configuration methodgit config --list
Ways to modify Configurationsgit config --global user.name "wangyubin" (修改的是~/.gitconfig)
Guide
Git is a free, open source distributed version control system for agile and efficient processing of any or small or large project. In general, you can use Git as long as you remember 6 commands. But skilled use, I am afraid to remember 60~100 a command.
Here's a list of common Git
. Use-a to specify the label name and-M to specify the description text: git tag-A v0.1-M "version 0.1 released" 3628164
5 use the PGP signature label: git tag-S
6. Push a local Tag: git push origin
7. Push all unpushed local tags: git push Origin -- tags
8. delete a local Tag: g
How to Use Git commands on Linux Terminals
Speaking of Git, developers are not familiar with it. before using it, we need to understand several issues:
What is Git?
If you are a software developer, you must be familiar with Git. Git
current trail list and delete all files
Git RM readme.txt
Only deleted in the temporary storage area. The files are retained in the current directory and will not be tracked.
Git Rm-cached readme.txt
Rename a file
Git MV reademe.txt readme
View submitted history
Git log
Modify the comments submitted last time using th
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.