Git is a simple getting started tutorial. It is a simple tutorial for students who have never dared to use Git.
It has been almost half a year since I started to work in February 12, 2014. I still remember the surprise when I first came into contact with the centralized version control tool SVN. This is for me who have
Reprint please specify the source: Alvin Lee's Blog: Http://blog.csdn.net/lihaoweiV
The git rebase command is powerful, and in the Git Authority Guide, change the order of submission, which teaches a very complicated method, using git reset ... git cherry-pick ... Wait for the order.
But if you use
A few important conceptsFirst, define several concepts:
WorkPlace: Work Area
Index: Staging Area
Repository: Local Warehouse/Repository
Remote: Repository
When cloning a project locally on a remote (such as GitHub) (assuming the project is named Gittest), you will see a directory named Gittest on the local directory with the Project code and a directory named . Git. What is a workspace, except for the .
modified content. In this case, Git does not know what line of content is needed, so you have to decide what you want.Once the resolution is complete, it can be submitted normally.
Common git commands
View File diffgit diff # Compare current file and staging area file diff git diffgit diff # Compare the differences be
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:
Concise git tutorial (single-user version) and git tutorial
Recently, I started to write a relatively large project, so I need to use git. I have been using SVN built with Kingsoft kubernetes and turtles. Recently I want to try git
This tutorial was posted on the community web site and is now transferred to your blog:
Http://oss.lzu.edu.cn/artical.php?id=16
Description: All pictures of this tutorial are from "Pro git". All of the following operations, unless specifically stated, are based on Linux terminals. If you find that this article has errors, or other questions, please contact me: we
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
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
. First, if you want to use git well, you must really understand its principles and concepts. For those who are familiar with CVS, it is especially important to change the concept of pure centralized source code management, which may also make you feel a little difficult. You may feel a little difficult at the beginning of using git, but you will definitely like it when you get to know it. It must be, just
The advantage of git is not to say more. The only problem that prevents the novice from experiencing it is that the threshold is too high and the script looks like a heavenly book,This article focuses on how to use Git for versioning in Android studio, as well as a very simple operation like TFS.A few months to use down, what I do every day is to start work, ALT + DOWN ARROW keys, pull the data from the ser
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 ad
ORIGIN:REFS/TAGS/WU
Configure aliases
It's everyone's nature to be lazy, and I like to be lazy.If we were to tap git st to replace git status, we would like to be able to do that, but how do we do that? This requires us to configure it to complete.Use the following command: Git config--global alias.st status. Other commands
. When branch is merge, not only will the code be merge together, but the check in history will be retained, which is very important.6 .... Too manyOf course, git will also bring us some difficulties. First, if you want to use git well, you must really understand its principles and concepts. For those who are familiar with CVS, it is especially important to change the concept of pure centralized source code
, such as intermediate files generated at the time of program compilation, and so on.GIT provides a document-ignoring mechanism for writing document information in the working directory that you do not want to accept in git management in the. gitignore file in the same directory. For example: in the working directory there is an zh directory, if you do not want to add it to git management, then execute:echo
Git: Configure identity and query, create a code repository, view files in the repository, and share commands. git Repository
1. Configure identity and query
Git config -- glocal user. name "me" git config -- glocal user. email "A@me.c"
2. Create a code repository
Cd aa
Common git commands, git
Git statusGit add puts the workspace in the hold ZoneGit commit puts the hold zone into the version ZoneGit add submits all modified files to the hold ZoneGit commit-m "Remarks written when submitting" no referenceGit commit-a-m "Write remarks upon submission" directly submit the workspace to t
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.