git user manual

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.