Git View Submit History
After a few updates have been submitted with git, or if a project is cloned, and you want to review the submission history, we can view it using the git log command.For our previous chapter, use the git log command to list the history submission records as follows:
$
First step: Install GitStep two: After the installation is complete, start playing git, initializeGit init file initializes the current directory as a Git repository and generates a. Git repository fileGit add file joins Git's staging area with a commit command to commit to the repositoryadd to Repository staging area Stage,commit to master Main
Yes will see: You ' ve successfully authenticated, but GitHub does not provide shell access. This means that you have successfully connected to GitHub.The next thing we need to do is upload the local repository to GitHub, and then we'll have to set up username and email, because GitHub will record them each time it commits.
12
$ git config--global user"your name"$ git config--global us
version control system.Git is free software distributed under the GPL.Sure enough, I domain back again.Git's version fallback is very fast because git has a pointer to the current version inside, and HEAD when you roll back the version, git just points to the head append GPL :Instead, point to add distributed :And then by the way, the workspace files are updated. So you HEAD can point to which version numb
Git workspaces, registers, and version libraries
Basic concepts
Let's understand the Git workspace, registers, and version library concepts first.
Workspace: is the directory you can see on your computer.Registers: English is called stage, or index. Typically stored in the index file (. git/index) under Git director
Although has been using Git to do version management, has also used the GIT project deployment, but did not adhere to this habit, recently decided to learn, the following article is mainly about PHP implementation of the method of Git deployment tutorial, the article through the sample code introduced in very detailed,
Although has been using Git to do version management, has also used the GIT project deployment, but did not adhere to this habit, recently decided to learn, the following article is mainly about PHP implementation of the method of Git deployment tutorial, the article through the sample code introduced in very detailed,
"Description: The git commit command, followed by the -m instructions for this submission, is a description of the content of the submission of the changes, which makes it easy to find the content of the version update soon.git commitOnce the command executes successfully, it will tell you that 1 files were changed and 1 lines of content were inserted (Read.txt has 1 lines of content).Why does git need to a
Tags: site queue detail Initialize San add to exit a PHP codeHttps://mp.weixin.qq.com/s/WH_JXah47BhQyviuuPAunw Background In small sites, it's quite handy to deploy PHP directly with git, and your remote site and local repository have a version control, and it's easy to track down problems or rollback. Because in the small company to work, the original system is still using the traditional FTP upload deployment, deployment is too cumbersome, and not c
Preparatory work:1, Git-1.8.1.2-preview20130201.exe:Https://code.google.com/p/msysgit/downloads/list2, Copssh_4.1.0_installer.exe:http://download.csdn.net/download/zzjzmdx/46362273, Tortoisegit-1.8.5.0-64bit.msi:https://code.google.com/p/tortoisegit/wiki/Download?tm=2Server System: Windows Server 2003 SP2Client system: Windows 7 SP1Server-side installation and deployment1. Install gitChoose a default installation hereChoose the third one here, not to
1. Introduction to GitGit is a version control tool for Linux kernel development that uses a distributed repository approach that does not require server-side software to operate version control, making it extremely convenient to publish and communicate source code. The Git basic interaction flowchart is as follows:There are two ways to use Git for versioning, one is to use the msysgit command line, and th
GitIt is a free and open-source distributed version control system for agile and efficient processing of any small or large projects.
GitHub can host various git libraries and provide a web interface, but unlike other services such as SourceForge or Google code, gitHub's unique selling point is the simplicity of branch from another project. Contributing code to a project is very simple: first click the "f
put a index.html into this folder.In the Git GUIClick: 1. Rescan2. Cache changes3. Submit4. UploadAfter clicking Upload, fill in the project address, such asIn the popup dialog box, enter your Git-osc username in the first step, enter your password in the second step, and the file will be uploaded to the GIT project after verification.Attached access address (on
Looking at the use of osc@git friends often win, and feel very tall, so have been suffering from phpdesigner use git tutorial.
After my 20-minute painstaking research in the morning, I finally got it done!
This I can also use Osc@git, daughter-in-law no longer worry about my code!
Ha ha!
The following text begins:
needed.
Emmmmmmm, half written, du Niang a moment, found that a write is good, I will not duplicate the wheel, then directly reference
80273534
Let's just talk about something different.
The GIT platform I use is a domestic code cloud. GitHub companies are vulnerable to various attacks and often cannot connect to the Internet.
If you use git init to create a local project
During initialization, remem
(database path) and assign the seventh step to create a good file directory.3. Locate the Server.httpport, set the port number of the HTTP protocol4. Locate the Server.httpbindinterface and set the IP address of the server. Set up your server IP here.5. Locate server.httpsbindinterface, set as localhost6. Save and close the file.nineth Step: Run the gitblit.cmd batch file.
Locate the Gitblit.cmd file in the Bitblit directory, and double-click it.
2. The running result is as follow
can be obtained via the Copy button on the rightOperation:5. Hosting a project to GitHub via GitThe first thing to do is git add:Then commitFill in the submission informationLast pushEnter your GitHub account password6. Oh yesProjects that need to be hosted are uploaded to GitHub, and people all over the world can read2, Android Studio also integrates the GitHub plugin, you can directly use the Gitbub:1. Configure GitHub to fill in the GitHub account
Tutorial on using sourcetree to operate git in Mac, sourcetreegit
SourceTree is a free Git and Hg client under Windows and Mac OS X, and is also a tool for Mercurial and Subversion version control systems. Supports creation, cloning, submission, push, pull, and merge operations. SourceTree has a simple interface that greatly simplifies the
Tutorial from: git tutorial (Liaoche's official website)Main command:--pretty=--hard head^ #回退到上一版本 3628164 #回退到版本3628164$ git reflog #查看提交过的命令5. Version fallback5.1 Repo will record each submitted version, and the user can return to any version at any time. For example, the following three versions of Readme.txtVersio
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.