Using Git to publish Android system version 1

Source: Internet
Author: User
Tags clear screen diff using git

1. Clear Clear Screen

2. cp–r src des copy folder

3. Du–sh Xxx_folder View the size of the folder such as Du–sh pizza results display 11G

Git view the git status of a file

http://phplaber.iteye.com/blog/1699926

[untracked files]---> Git Add. ---> [changes to be committed] add staging area, ready to store in history

[Changes to be committed]---> Git rm--cached README. TXT---> [untracked files] removed from staging area

Changes not staged for commit status, indicating that the file has been modified but not yet placed in the staging area

1. This file already has a copy in Git history.

2. The file is now modified in the workspace, but it has not yet been submitted to the staging, only to be submitted to staging area, before it can be submitted to the history record.

The local file has been modified, but now you want to modify it, you can use the following command:

1. See the differences first

Work area and staging area

Git diff readme.txt

Workspaces and historical records

git diff HEAD Readme.txt

Staging area and historical records

Git diff–-cached readme.txt

2. Undo Changes

git Checkout all modifications

Git checkout–readme.txt the specified file

Using Git to publish Android system version 1

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.