that developers can submit locally under distributed Each developer machine has a server database backup file record history back to the past multi-share003. Git workflowWorkspaces: code written at work staging area: Staging, helping us save the code as a transition layer to avoid misoperation protect workspace and version area Branch processing version area: Manage version, code action in repository generates version004. Some basic Linux
similar to SVN's rm, Del
git commit: commits the changes to the current workspace, similar to the SVN commit command, such as ' Git commit-m story #3, ' Add user Model ', must be submitted with-m to enter a commit message, which is similar to SVN's commit
git push: updates the local commit code to the remote repository, such as '
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.
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
Easily use git commands to create code repositories and git command code repositories
We can easily use the git command to upload code modifications. In this article, we will learn how to use git to create a repository.Five-step command for creating repository:
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 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
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
branch and switch it over
Git co-B # create a new new_branch Based on Branch
Git Co $ ID # checkout a historical commit record, but there is no branch information, switch to another branch will be automatically deleted
Git Co $ id-B # checkout a historical commit record and create a branch
Git Br-D # delete a
Getting started with gitIf you have no access to git at all, you can now simply understand the syntax of git (typing some commands) to upload the code to a remote repository or download to a local repository (server), we should have two warehouses at this time, that is, two places to put code, one is local, and the other is remote ( such as GitHub). The enterpris
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
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
Mod
NanyiI 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
1. Create a code library
# Create a git code library in the current directory
$ Git init
# Create a directory and initialize it as a git code library
$ Git init [project-name]
# Download a project and its entire code history
$ Git clone [url]
Ii. Configuration
The
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"
Git: basic operations of Common commands and git operations
I have been using cvs, svn, or the little turtle client for development. I have never heard that Git is powerful and useless, git is also used by the company. At this time, I need to know exactly how to use
The above command is equivalent to git branch newbranch and git checkout newbranch
2. Run the GIT branch command to view the current branch.
3. merge a branch to the current branch: git merge name
4. Delete branch: git branch-D name
5 disable fast forward: Add-no-FF to me
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
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.