Here'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
# 在当前目录新建一个Git代码库$ git ini
ArticleDirectory
1. Concept
2. Git Configuration
3. View commands
3. Local Database Operations
4. Remote database operations
5. View File modifications (diff)
6. Reset and revert)
7. Create a tag)
8, Miscellaneous
Because git (GitHub) is used in the project, and git
Original address: http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html 阮一峰日期: 2015年12月 9日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
remote add [shortname] [url]
# Retrieve remote repository changes and merge them with local branches
$ Git pull [remote] [branch]
# Upload a specified local branch to a remote Repository
$ Git push [remote] [branch]
# Forcibly push the current Branch to a remote warehouse, even if there is a conflict
$ Git push [remote]-Force
# Push all branches to a remote Repo
The following are common commands used by git, which roughly summarize the following. Many Commands are used for Version Control Using git, but the common commands are also within the scope of the brain, share your summary with you.
1. Create a
Three basic concepts
The workspace (Workspace) is the root directory of the items in your computer
Registers (Index) like a cache area, temporarily save your changes
The version library (Repository) is divided into local warehouses (locals) and remote warehouses (sqlremote)
Almost all of the commonly used commands are based on these concepts, a picture of victory, the following is a relatively simple diagram, including the most basic command
Github website introduction, and use git commands to manage github (detailed description), githubgit
Learn this chapter:
1)Familiar with github website
2)Remotely manage github using git commands,
3)You do not need to enter the account and password to use the ssh key for git
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.
Workspace: Work Area
Index/stage: Staging Area
Repository: Warehouse area (or local warehouse)
Remote: Repository
A
As is known to all, Git is now a leader in distributed versioning, creating a complete ecosystem around git. Learning Git is, of course, the basic workflow of learning git. Compared to traditional version control systems like SVN, Git is a powerful tool for distributed versi
Common commands: HTTP://HI.BAIDU.COM/SUNBOY_2050/ITEM/FFAB7396672895D11A49DFCCStreamlined Tutorial: http://lugir.com/git-basic.html
Common Git CommandsGit 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 so
Git is the most commonly used version control tool in our daily routine. Compared to Svn,git has the following advantages: (1) Git is distributed management, does not need a separate server storage code, each machine in the team can be a server, are independent of each other. The biggest advantage is that, in the case of network disconnection,
As we all know, Git is already a leader in the field of distributed version control. it forms a complete ecosystem around Git. as we all know, Git is already a leader in the field of distributed version control, a complete ecosystem is formed around Git. To learn about Git,
Prior to using GIT, SVN version management was used, and the biggest difference with SVN is that git has two warehouses, one is a local repository, one is a shared repository on a server, and a local repository is unique to every developer, even if commit commits to the local repository only. This is just one of the advantages of Git's popularity, and the version management tools developed by Linux authors
configuration file that holds the password.
There is no need to write from scratch. gitignore file, GitHub has prepared a variety of configuration files for us, just a combination to use. All profiles can be viewed directly online: Https://github.com/github/gitignore
Six GitHub
Ways to pull items from GitHub git clone https://XXXXXXXXX.git
Seven person configurationThe previous user's
a branch named "testing"$ git Branch TestingSwitch to "testing" Branch ( default to Master Branch )$ git checkout TestingNew and switch to this branch$ git checkout-b iss53This command is equivalent to performing the following two commands$ git Branch iss53$
In front of that, this article is followed by Colombia's GitHub series of tutorials, Colombia public number: GoogdevFog 艹 ..... have been on a business trip (excuse) ... Looked for two months did not write the blog, is really too TM terrible!!! Hurry up and press yajinggitNote: Before using any of the GIT commands, switch to the GIT project directory
sha1 is generally used), create a tag
Git tag-l list current tag
Git tag-d [tag_name] Delete tag
With the tag, you can use git checkout [tag_name]-B [branch_name] to check the code of the corresponding tag moment. You can also use the tag name to implement diff and other functions.
10. Patch usage
Git diff filename1
Git official documentationGraphical tool gitk
1. Git Basic settings
$ git config --global user.name "Your Name"
$ git config --global user.email "[emailprotected]"
$ Git config -- List View configuration records
You can also enter the working root directory and ru
12 advanced Git commands you need to know
As we all know, Git is already a leader in the field of distributed version control and forms a complete ecosystem around Git. To learn about Git, you must first learn the basic workflow of Git
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.