Skip to content

diff basic use #4

@prafaelo

Description

@prafaelo

diff basic use:

git diff

  • Compare changes in not staged files and highlight them.

git diff HEAD

  • Compare changes in not staged files and staged files and highlight them.

git diff HEAD README.md

  • Compare a specific file.

git diff origin/main main

  • Compare changes between two branches last commit.
  • Only committed changes.

git diff origin/main main --name-status

  • Show only names and the nature of change, but not actual diff output.

References:
1
2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions