Reading git diff output

I am just starting to learn how to use git and have run git diff on the files below – Im a bit confused about how you read the output –

From what I understand so far the below is saying there is a difference between the working directory and the index in relation to file01 and then file02. Could someboby explain in english how you read this part of the output –> @@ -1,4 +1 @@

  • highlight changed lines and changed bytes in each changed line
  • Looking for more info from my Git diff command
  • git tells me that my files are changed, but I can't see any difference
  • Git difftool in Windows to see list of all changed files in addition to file diffs (a la Kaleidoscope)?
  • Who gets credit for a hand-edited patch file?
  • Git how to find out which single commits that done on one branch and not another
  • Thanks for your help

    diff --git a/file01 b/file01
    index cc17fa4..d0a432b 100644
    --- a/file01
    +++ b/file01
    @@ -1,4 +1 @@
    +This is a change
    diff --git a/file02 b/file02
    index e69de29..552c22e 100644
    --- a/file02
    +++ b/file02
    @@ -0,0 +1 @@
    +and this is another change

  • Best Practice: How to handle code differences for iOS App when creating free and paid version?
  • How to get git-status of a single subfolder?
  • How to make an existing branch track a remote branch?
  • Git: 'Master cannot be resolved to branch' after merge
  • How to git merge changes from main branch to orphan branch without adding to orphan's history?
  • Push to heroku through Proxy server
  • One Solution collect form web for “Reading git diff output”

    The @@ -1,4 +1 @@ means:

    -1,4: here are 4 lines from the original starting from line 1.

    +1 and here is 1 line from the new version.

    Git Baby is a git and github fan, let's start git clone.