Document directory
Git is distributed, and SVN is not:
Git stores the content in metadata mode, while SVN stores the content by file:
Git branch and SVN branch are different:
Git does not have a global version number, while SVN does:
The content integrity of git is be
Tag: git1. Background: git is a popular version management software. It has been used only by SVN and git. Although git has been used for a long time, it has not been studied in depth. This week, I plan to read progit and have an in-depth summary of git, in addition, summarize some of the main
Global configuration
git config--global user.name "account name"
git config--global use r.email ' account mailbox '
to generate SSH, command: ssh-keygen-t RSA
However, the SSH command is not available on the window terminal, only open git-bash.exe operation under the GIT installation directory,
The first question: how can I pull my local warehouse code to the GitHub site?Git push Origin masterwarning:permanently added ' github.com,192.30.255.112 ' (RSA) to the list of known hosts.To Github.com:lanshanxiao/yunweather.git! [Rejected] Master--master (fetch first)Error:failed to push some refs to ' [email protected]:lanshanxiao/yunweather.git 'Hint:updates were rejected because the remote contains work theHint:not has locally. This was usually c
Sometimes its nice-to-clean up commits before merging them into your main code repo; In this lesson, we go through using git rebase to squash commits together and then rename the Condensed commit message. We also talk about potential issues with rebasing and where to be careful.// First , you can fetch the remote branch git fetch // Then can see the logs between remote branch and local branchgit log origin/
Windows version git (1.9.2) Download: Click to downloadWhen you're done, click Double-click Install:I installed the default directory: All the way Next, the final installation is complete, the intermediate steps are also installed under the UNIX option;My installation directory is in: C:\Program Files (x86) \git (default)Then configure environment variables (WIN7): Right-click Computer--Properties--Advanced
Git correct rollback code method, git rollback code
How does git correctly roll back the Code:
Method: delete remote branch and submit againFirst, ensure that the current workspace is clean and consistent with the remote branch code; back up the current Branch (if necessary); restore to the specified commit hash;
This command is used to obtain all the commit
Using the YII2 framework, used to install plug-ins with composer, installed after the Discovery Plugin directory is considered a git sub-project, the knife block submitted to the project git inside, just an empty directory.
There are a few minor problems;1, everyone on the online project git is ignoring vendor? This feeling whether the collaboration is inconven
One, git all configuration filesModifying the configuration file will have an impact on all users.Use git config--system to configure the file~ Represents the home directory of the current userUse git config--global to configure the fileIn the repository. Git directoryConfigure the file with
Original link: http://zires.info/tag/git-merge/git merge is used to merge two branches.# merge the B branches into the current branchgit merge Bgit cherry-pick can choose one or several commits (s) in one branch to operate. For example, suppose we have a stable version of the branch, called V2.0, there is a development version of the Branch v3.0, we can not directly merge two branches, which will lead to st
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:
Git init
Read the Liaoche to write tutorials, down to the end, took three days to learn, do a study note itAbout GitLinus created Linux to facilitate the management of Linux code, the use of C wrote this distributed version control system. The GitHub site was launched in 2008, providing free git storage for open source projects.Centralized vs Distributed:Centralized version control system, version inventory on the central server, everyone with their own comput
Git is a free, open source, distributed version control system that was first created by Linus Torvalds to manage the development of Linux Kernels. version control System ( VSS)/ source code Manager (SCM)/ revision control system (RCS): refers to a different version of the tool that can manage and track software code and other similar content. There are two ways to build the underlying technology of the Git
Transfer from: http://milkythinking.com/blog/2011/04/17/install_git_and_manual/Git introductionGit is a distributed version control system that corresponds to a centralized version control system such as SVN and CVS.Although it was a long time ago to know and install git, I didn't use it much, and I used SVN. The benefits of git that you see in Pro
Git is a powerful distributed versioning tool that applies not only to the source code for managing large open source software (such as Linux kernel), but also to managing private documents and sources (such as: Wsi-lgame-pro)
For more information about git, please refer to my previous blog: Git version management tool
First,
$ git init//Initialize a git repository$ git status//view the status of the warehouse
$ git Add. Add all modifications to staging area
$ git add *//Ant style Additions modified
$ git Add *controller//Add all modifications of files
Git tips: how to remove the right-click menu ?, Git tips
If you are following http://www.cnblogs.com/dunitian/p/5034624.html
So you don't have so many egg menus (and vice versa: vs will help you install them)
Solution:
1. Win + R input cmd
2. If you use a 64-bit system, enter the command: (the expansion contains instructions and 32-bit system solutions)
3. Results ~
Extended: are 32-bit comra
Git Hangs while unpacking objects (Windows)OCT 2014I ' m not sure if it is because we ' re behind a proxy, the network have issues or my work laptop isn ' t great, but for some R Eason the Git clones very often hang during the unpacking of objects.done.remote: Total 21 (delta 0), reused 0 (delta 0)Unpacking objects: 100% (21/21), done.There is a-a-recover this, if-to Ctrl+C -exit the
[Abstract: [email protected] as a Chinese version of GitHub, significantly has his own upper hand, such as fast speed, Chinese expression. Sourcetree can also be said to be an error-free GIT client that may support Windows warfare Mac OS. This article will unite for the two to govern the project][email protected] as a Chinese version of GitHub, obviously has his own advantages, such as fast speed, Chinese display. Sourcetree can also be called a good
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.