Git as a preferred version of the Open source project management software, it is inevitable that its advantages should not be underestimated, the following summary of the initial release of the use of some of the skills
1. Basic command Introduction
-A lists all current branches of Git branch good_proj Create branch good_projgit checkout good_proj switch The local head to Good_projgit pull good _proj -D good_proj Delete branch good_projgit log view git commit log
git diff 19ebb30fff306edfe087a75e746166868e94a47a comparing file differences between the current version and the 19*** version
2. Introduction to the application scenario
[A] Perform version rollback on a git server
The A.1 submission record is as follows:
$ git logcommit e0c70ac309174666b92162f5fb2535d1a00f740cAuthor:yulin.hu <[email protected]>date:thu Apr 16 14 : 19 : 40 2015 + 0800 language translation Change commit 19ebb30fff306edfe087a75e746166868e94a47aauthor:yulin.hu <[ Email protected]>date:tue Apr 14 18 : 07 : 16 2015 + 0800 modify Bug:domain user to display the volume created by admin and display user as null
A.2 For example to fallback to 19ebb30fff306edfe087a75e746166868e94a47a executable
git revert e0c70ac309174666b92162f5fb2535d1a00f740c
A.3 at this time the local git repository has performed revert operations, the next step is to execute push, commit revert to the GIT server
git push
git user manual