...
The output of git status
will look something like this:
Code Block |
---|
$ git status diff --git a/file2.py b/file2.py index b9a7216..6b6dcff 100644 --- a/file2.py +++ b/file2.py @@ -1,2 +1,3 @@ #!/usr/bin/env python print ("This is file2.py") +print ("New line On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: file2.py no changes added to commit (use "git add" and/or "git commit -a") |
The files listed as "changed but not updated" are files that you have modified but not yet added to the repository. "Untracked files" are files that have not previously been added to the repository.
...
Code Block |
---|
$ git diff diff --git a/file2.py b/file2.py index 68bc8e4b9a7216..6b6dcff 100644 --- a/file2.py +++ b/file2.py @@ -1,2 +1,3 @@ -#!/usr/bin/env pythonprint ("This is file2.py") +#!/usr/bin/env python + print ("This is file2.py") +print ("New line ") |
You can also use git diff to see the changes between arbitrary revisions of your project:
...