Git notes sorting and git sorting
1. Install Git
1. Install git. Click Git Bash to go to the command line window.2. Configuration:$ Git config -- global user. name "Your Name"$ Git conf
Git command for obtaining and creating projects, git command for obtaining Projects
Obtain and create project commands
Git init
Use git init to create a Git repository in the directory. You can do this at any time and in any directory, and it is completely localized.
Execute
Tag: git1. Background
Today I learned how to tag a project, modify the tag version number for this project, and then directly push the version number to the server, which is much easier and easier to manage the project.
2. Tag 1. query existing tags. You can use the GIT tag command to query a specific version. You can use git tag-l 'v *'
git tag2. Create a tag fo
were very embarrassing... The open-source ASP. net mvc program bonobo git server was used to build a git server for Dudu. Well, you can use it now. this open-source solution is now V1.1 and has added Chinese resource files.
I use a Windows Server 2003, IIS 6 + WebDAV + ASP. NET MVC 3. Basically, as long as you follow the step-by-step mode for deploying ASP. ne
The error is because the default system account in WIN8 does not have Super Administrator privilegesHow to get administrator permissions in Win8 steps:Press Win+r, enter gpedit.msc in the Run dialog box, turn on Group Policy, and then step through the "Computer Configuration"-"Windows Settings"-"Security Settings"-"security options" and find the "User Account Control: Run all administrators in Admin Approval Mode" button on the right. You will see that the entry is enabled by default and it is s
First, see who wrote the line of code, and in which commit:git blame file_namegit blame-l 58,100 Keyboardactivity.javaIts display format is:Commit ID | Code Submission Author | Submission Time | Number of lines in the file that the code is in | Actual codeThis is similar to the following:650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8C/24/wKioL1hjeVeyc1XSAAIDgRtPpIE882.png "style=" width : 600px;height:476px; "title=" Qq20161228163503.png "width=" "height=" 476 "border=" 0 "hspace="
Git temporary modification-git stash, git temporary-gitstash
Temporary modifications to track files (excluding untrack files, newly added files are still visible after stash, but newly added files cannot be restored through stash pop after being modified again after stash -- becauseThis command does not save files that have not been tracked)
Start
This chapter describes the knowledge before using git. We will first understand the historical background of some version control tools, and then try to let git run on your system until the final configuration is complete, you can start development normally. After reading this chapter, you will understand why git is so popular and why you should start using
Error message:[Email protected]/k/cocos2d/yc (master)$ Git push-u Origin Masterto [email protected]:yangchao0718/cocos2d.git! [Rejected] master, master (Non-fast-forward)Error:failed to push some refs to ' [email protected]:yangchao0718/cocos2d.gitHint:updates were rejected because the tip of your current branch is BehinHint:its remote counterpart. Integrate the remote changes (e.g.Hint: ' git pull ... ') b
summarize, the advantages and disadvantages of SVN are as follows:
Advantage:
Code consistency is high.
Supports the submission of things.
Diff feature.
Branch,tag, convenient version management.
Easy to get started.
Disadvantage
It must be networked in order to read some data.
is not a distributed code base.
The disaster of the SVN server crash is huge.
GitWith the popularity of the Open source movement (Li
(a) write the local git library and some common git commands, the infrequently used git will not write
(ii) The use of GitHub repositories will be written laterSecret: I have a great git video tutorial Oh, private, I remember the top one.
Preface: Git
2.1 git basics-get git repository
Description Source: https://git-scm.com/book/zh/v2/git-base-Get-git-Warehouse
If you can only read a chapter to learn Git, this chapter is your choice. This chapter covers all the basic command
Git three, git in the third
1. Status Command and diff command
Before we have successfully added and submitted a Readme.txt file, modify the Readme.txt as follows:
echo "Git is a distributed version control system." > Readme.txtecho "git was free software." >> Readme.txt
Run the
Git version control tool (2) ---- common operations on local version libraries, git ----
[Statement]
Reprinted, but keep the original source of the article → _ →
Life One: http://www.cnblogs.com/smyhvae/
Source: http://www.cnblogs.com/smyhvae/p/3994704.html
Contact: smyhvae@163.com
[Body]
In the previous chapter, we learned the most basic usage of Git, including
A: What is git?Git is currently the most advanced Distributed version control system in the world.Two: What is the main difference between SVN and git?SVN is a centralized version control system, the repository is centrally placed in the central server, and work, with their own computers, so the first to get from the central server where the latest version, and t
installation of Git under WindowsOn the GIT home page http://git-scm.com/about can download the latest version of Git for your operating system, such as the one I'm currently using Git-1.9.4-preview20140929.exe.GIT installation process, all the way to the default. Until this
Introduction
Git is currently the world's most advanced distributed version control system, is the management of Linux source version control system, is currently used to manage the Android source code version control system. one, the installation of Git 1, installed under the Linux platform
First, we can enter gitto check if Git is already installed, and if it
Git 3 and git 3. Details are as follows: echoGitisadistributed git 3 and git 3
1. status and diff commands
Previously, we successfully submitted a readme.txt file and modified readme.txt as follows:
echo "Git is a distributed version control system. " > readme.txtecho "
The previous article introduced Git's local basic operations, if you don't need to collaborate with others, such as writing a book yourself, writing a small program yourself, writing a website, and so on, it's almost enough. but sharing and collaboration is the theme of the free world, and Git is born for it, so try to be a student who loves to share and collaborate. ^_^The Git repository concept can be und
The file status in the GIT working directory. All files in the working directory are in either of the following statuses: tracked or not tracked. Tracked files are files that have been incorporated into version control management. They are recorded in the previous snapshot. After a period of time, their statuses may not be updated, modified or placed in the temporary storage area. All other files are not tracked. They neither have snapshots of the las
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.