A piece of old article moved here 1. Partial configuration of Git #Global Submit user name and mailboxgit config--global user.name"Simon"git config--global user.email [email protected]gmail.com#Chinese encoding SupportEcho"Export Lesscharset=utf-8">$HOME/. profile#The following configuration allows you to preview locally modified but cached comments in the GUI interface.git config--global gui.encoding utf-8
The personal development operating system is the CentOS 6.5,git management tool that is installed by default.If no installation is found, you can install the latest version with Yum-install git, and by the way, it is recommended to install the matching graphical git toolThe "GITK" interface is a bit simpler, but it's also handy when viewing historical information
Common git commands-continuous updating
Start to use git. Some commands are not used, such as creating branches and creating tags.
Continuous learning and updates
1. git init -- bare // create a git Project
2.
diff7f8fd44d9404859608515c7d0f389890bcc4a52932f74cd586788caf66aC1ae15281aedfb23d71db will appear, the content submitted by bug1001 will be displayed correctly, and the parts submitted by bug1002 will be displayed in a reverse manner. That is, if the code is bug1002 added, this will be shown as "-", and for bug1002 deleted code, it will show "+". It looks pretty weird ...! Git version number is not very friendly, messy group, but basically does not af
1. The first thing to do after installing Git is to set your user name and e-mail address. This is important because each git commit uses that information. It's been embedded in your submission forever .git config--global user.name "jasonpinet" git config--global user.email [emailprotected] check your settings (Checkin
Git commands are not here to say, beginners click http://www.cnblogs.com/Vdiao/p/5267250.htmlGit is a distributed version control system, and the same git repository can be distributed across different machines. This is often the case, find a computer to act as a server role, 24 hours a day to power on, everyone else from the "server" to clone a copy to their own
Commands for opening PDF files and HTML files from the command line under Linux
[Date: 2012-06-18]
Source: Linux Community Author: hipercomer
[Font: big medium Small]
If you often work at a Linux terminal and need to look at some documents at some point (such as PDFs or HTML documents), it is often necessary to switch to the file system to open the files. In fact, you just nee
to the current latest comment, We modified the comments and then put the comments back to the original place, thinking in time, and then we use Git commit–amend to modify, as before, and then we use the following command to restore the order of comments.
Git rebase–continueSo we can change the order of the comments, using Git log to see that the comments hav
How to solve various SSL certificate problem problems when running Git commands
For example, if I use git clone gitURL in Windows
The SSL certificate problem: self signed certificate prompt is displayed.
This problem occurs frequently in windows. I guess git is mainly developed based on linux. On windows, it is easy
repositories on this machine will use this configuration, and of course you can specify a different user name and mailbox for a warehouse. Four. 1To create a version libraryWhat is a repository? Repository also known as the Warehouse, English name repository, you can easily understand a directory, all the files in this directory can be managed by git, each file modification, deletion, git can track, so tha
remote server repository)At this point, if there is a hint of conflict, we need to execute the git fetch and git merge command, and then push again after the conflict is done.If you are submitting code to a remote repository for the first time, you need to execute the following command:First go to the project's folder, and thengit init (the role is to create a local repository, plus will create a .
version number:Git reflogIgnore fileCreate a. gitignore file (named. gitignore in Windows).In the list of files and directories you don't want Git to track#例外的文件类型*.exe#例外的文件夹testdir/#例外文件 (not backed up)!my.pycBranch Management#新建分支:GIT branch Switch branches (preferably commit changes before, or stashing, or commit amending):git checkout New and switch to bran
A. Some concepts of git:http://guibin.iteye.com/blog/1014369Two. Common commands in GitGit help-view common commandsGit help-a-View a list of commandsgit help [command]-View specific commands1.git init-Create an empty repository2.git Add./-Adds all the files in the current directory to the repository3.git status -Vie
Using GIT commands and GitHub projects under LinuxDescription: Tested OK on August 26, 2017 (metalworking)Build a git environment under Linux1, registered GitHub account, website: https://github.com2, Linux create SSH key:Method one: Ssh-keygen # #一直默认就可以了Method Two: Ssh-keygen-t rsa-c "[email protected]"//Generate key, mailbox ibid.Cat ~/.ssh/id_rsa.pub//Submit
git add filenameGit add-a This is to add all the modified or added files to the Repository (library)git commit-m ' message 'Git checkout-b feature create and switch branchesTo add a remote library:To associate a remote library, use the command git remote add origin [emailprotected]:path/repo-name.git ;Once associated,
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.