. Use-a to specify the label name and-M to specify the description text: git tag-A v0.1-M "version 0.1 released" 3628164
5 use the PGP signature label: git tag-S
6. Push a local Tag: git push origin
7. Push all unpushed local tags: git push Origin -- tags
8. delete a local Tag: g
clone Basic Snapshot Add status diff commit reset rm, MV Branch and merge branch Checkout merge log tag share and update item Fetch, pull push remote check and compare log diff One, get and create Project
You have to have a Git repository before you can manipulate it. The repository is where Git stores the data for the snapshots you want to save.
There are two w
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
commits$ git diff [first-branch] ...[Second-branch]# Show metadata and content changes for a commit$ git show [commit]# shows a file where a commit has changed$ git show--name-only [commit]# shows the last few commits of the current branch$ git reflogEight, remote synchronization# Download all changes to the remote re
commits of the current branch $ git reflog Eight, remote synchronization# Download all changes to the remote repository $ git fetch [remote]# Show all remote warehouses $ git remote-v# Show information for a remote repository $ git remote show [remote]add [shortname] [
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 source code.Git Common operation commands:1) re
versionsGit reflog to view recent operationsGit reset -- hard version id back to previous version
Synchronize to remote RepositoryGit remote view remote repository nameGit remote-v: view the address of the remote RepositoryGit push origin (repository name) master (branch name) synchronized to gitgub remote Repository
Update local (resolve multi-user conflicts)Git fetch pulls files from a remote RepositoryG
log information. if you exit the operation, the submitted log information is submitted directly, or the "revert" Command also has the option of not editing the submitted log information. HEAD: indicates the latest commit. (Latest version) MERGE_HEAD: if it is a commit generated by merge, it indicates another parent branch except the HEAD. FETCH_HEAD: the object and ref information obtained using git-fetch
I often write essays. It is very convenient to participate in version control. Sometimes, due to various reasons (such as network failure), I cannot clone them to the local machine, and I want to write new essays, there will be a lot of submission history in the write process. When I merge it into the casual folder, I also want to submit the history.
Now we can simulate this scenario:
1. Create the essays folder and add essay1.md; 2. Create the TMP folder, add the essays2.md folder, add the
Although git has been used for a long time, only a few limited commands have been used. Recently, I spent two days sorting out the GIT commands that may be used in my work and put them here for future reference:
The GIT tool mainly includes the following commands:
Version configadd // staging (cache) is currently modified to index (cache) Am // apply + commit, a
This is a bit long and messy, but like Mark. Twainblaise Pascal's joke says: I don't have time to make it shorter. There's a lot of discussion about this article in the GIT mailing list, and I'll try to put the relevant ideas down here. One of the most common experiences I've talked about with Git is:
do not use git pull,
keep the above options unchanged and click the Green button to complete the creation. After successful fetch to GIT library address https://github.com/mycwq/test.git
clone repository to localis to get all the contents of a Git shared library, make sure the system has the GIT command tool installed, and no reference
git add -AStages all
git add .Stages new and modified, without deleted
git add -uStages modified and deleted, without new
git initecho Change me > change-meecho Delete me > delete-megit add change-me delete-megit commit -m initialecho OK >> change-merm delete-meecho Add me > add-megit status# Changed but not updated
git rmGit RM removes the entry from the cache. This is different from the git reset HEAD to de-cache the entries. "De-caching" means restoring the buffer to the way it was before we made the change.By default, thegit rm file removes files from the cache and your hard drive (working directory).If you want to keep the file in your working directory, you can use git
temporary git reset HEAD some_file # Return to the last commit git reset HEAD ^ -- soft # Keep HEAD for file modification ^ indicates that the parent of the HEAD submits git reset HEAD ^ -- hard # do not retain File Modification
Remote database
Git remote # view the current remote repository
$ git Remote
Origin
$ git Remote-v
Origin git@github.com:tianqixin/w3cschool.cc.git (fetch)
origin Git@github.com:tianqixin/w3cschool.cc.git (push)
When executed with the-v argument, you can also see the actual link address for each alias.
Extracting remote r
managementOther items if you want to change the generic file you must switch to the branch and then generate and then switch back to add a new DLL (to ensure common project file consistency)
Incorporate projects from your mobile solution into your PC solution and then maintain them with the new branch mobile
Problem 1 has been resolved, when I was inThis problem is encountered when merging mobile solution projects into a PC solution:How does GIT
Git: git branch -- set-upstream
When git creates a new branch locally and pushes it to the remote server, the following prompt will be reported if it is not processed again:
You asked me to pull without telling me which branch youwant to merge with, and 'branch.production.merge' inyour configuration file does not tell me, either. Pleasespecify which branch you
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.