The current development of new projects using version control tools are basically git, old projects or SVN, online git resources are many, many and miscellaneous. I have compiled a study of git, hoping to help students who are learning about git.First, Git commands to recogn
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
Introduction: git is a very good distributed version management system. I want to be a developer who is familiar with git, I also like git and GitHub for collaborative development ). Git commands are the GIT
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.
Here is a simple summary of the main commands git, easy to remember, the summary of the bad, please tolerate, thank you! Want to see detailed explanation, recommend Liao Xuefeng great God's tutorial, the address is as follows: Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/The following references to thereadme.txt均为提交的文件1: Tell
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
Android advanced intermediate tutorial-1.1 Local Git Usage DetailsAndroid advanced intermediate tutorial-1.1 Local Git Usage Details
Tags (separated by spaces): Android advanced
1. Introduction
In the previous basic Android series, we have explained the simple use of Git. In
Git learning, git learning tutorial
Git command line configuration1 install Github2. Install msysgit3. Configure the user name and Fuel TankGit config -- global user. name My command is: git config -- global user. name mchdbaghGit config -- global user. email My command is:
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
much information is displayed, we can use the command git The Log–pretty=oneline demo is as follows:Now I want to use the version fallback operation, I want to fallback the current version to the previous version, what command to use? You can use the following 2 kinds of commands, the first is: git reset--hard head^ then if you want to fall back to the first ver
1. Git commit–amendIf you just want to modify the commit you just submitted (the last commit), you can use to git commit --amend modify the last commit. Use this command to pop up a dialog box (under Windows) or the Vim editing interface (under Linux). In the pop-up interface to make changes, save can be submitted with the new submission information. This command can only modify the submission memo informat
. 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
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.