View git status under Linux __linux

Source: Internet
Author: User

We modify the Readme.txt file, such as:

Git is a distributed version control system.
Git is free software.


To understand the current state of the warehouse, use git status , such as:

$ git Status
# on branch Master
# Changes don't staged for commit:
#   [use ' git add <file>. ' To Updat e what'll be committed)
#   (use "Git checkout-<file> ..." to discard changes in working directory)
#< c10/>#    Modified:   readme.txt
#
No changes added to commit (use "git add" and/or "Git Commit-a")


To view the modified content, use the git diff command, such as:

$ git diff readme.txt 
diff--git A/readme.txt b/readme.txt
index 46D49BF. 9247DB6 100644
---a/readme.txt
+++ b/readme.txt @@ -1,2
+1,2 @@ -1,2 is
a version of control System.
 +git is a distributed version control system.
 Git is free software.

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.