Git is a free and open source distributed version control system for software development and several other version control tasks. It is designed to cope with everything from small to very large projects, based on speed, efficiency and data integrity.Linux users manage git primarily from the command line, but some graphical user interface (GUI)
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
our own development projects, Git is a friendly and powerful tool. Now, more and more famous projects use Git to manage project development, for example: wine, hiphop-php, etc.Git, as an open source free fundamentalism project, does not have any permission restrictions on repository browsing and modification, but can also achieve limited permissions control through other tools, such as Gitosis, Codebeamer
One. Package Manager mode installationIt is easiest to install git with the Linux distribution Package Manager, and it will automatically configure the command completion function. However, the installed git may not be the latest version.
Ubuntu 10.10 or newer version , Debian (squeeze) or newer version:
sudo aptitude install gitsudo aptitude Install Git
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
1. Background Git manages remote repositories. This document uses GitHub as an example. 2. Manage remote warehouses 1. For local SSH authentication, create a repo on GitHub called ospaf-getwordfre 2. Add a remote repository, which can be implemented using the GIT Remote Command. O is the repository name and can be viewed using git remote-v.
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
Common git commands and git commandsCommon Git commands
View, add, submit, delete, retrieve, and reset the modified File
Git help
Git show # display the submitted content git show $ id
Git
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
Git learning Summary (1): git learning Summary. List of common Git commands
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
$
@github.comError message: Permission denied (PublicKey). Because the newly generated key cannot join SSH, it will cause the connection to be GitHub.
The solution is as follows:
1, enter $ ssh-agent First, then enter $ ssh-add ~/.ssh/id_key, so that's OK.
2, if still not, enter Ssh-add ~/.ssh/id_key command after the error could not open a connection to your agent. Solution is key with git GUI ssh tool Gener
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
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
clone 自己的仓库地址2. 实验代码拷过去以后用3. git add -A .4. git commit -am "your comment"5. git push origin master以后再用就clone自己的代码仓库就okThree. SummaryIn this lesson we master the following points:
About Wxpython
Familiarity with the environment, especially git
Can run out of Wxpython window
Understand the differenc
ago Python Graphics Development Kit WxPython
WxPython is an excellent GUI graphics library in the Python language, allowing Python programmers to easily create a full, full-featured GUI user interface. WxPython is provided to the user as an excellent cross-platform GUI library wxWidgets python encapsulation and Python modules. Just like Python and wx
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 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="
Original URL: http://my.oschina.net/amstrong/blog/159114Catalogue [-]
tortoisegit-the coolest Interface to Git Version Control
Ii. Sou Rcetree-a free Git Mercurial Client for Windows or Mac
Iii. smartgit- Get your commit done
IV, Qgit-qgit is a git GUI viewer built on qt/c++
Gitx-gitx
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.