git How to use the Miscellaneous notes

Source: Internet
Author: User

A. Git looks up a file to modify a record at a time

1. First switch to the directory where you want to view the files: For example: I want to see a default_workspace.xml of this file, which is located in ~/android/android4.2/dev/trunk/android/ android4.2/kernel/drivers/video/rockchip/vga$ in this directory.

CD ~/android/backup/jw42temp/dev/trunk/android/android4.2/device/rockchip/rk30sdk/overlay/packages/apps/ launcher2/res/xml-sw720dp$

2. The git log--pretty=oneline file name shows all the prompt records for this file, and--pretty=oneline indicates that the commit information is displayed in one line.


3. Git show hash value. If I want to see the prompt for "launcher Modify: 1. Screen pages changed to 3 screen 2. The default second screen is home 3. Add the changes to the desktop common icons 4.Hotseat modify.

Git show Dae876432cfbc27765df3bbf947769bb2a79d9ba



git How to use the Miscellaneous notes

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.