How do I see changes after last commit?

You can see all added and untracked files after the last commit using “git status” command.

In this example, we consider the initial setup to have five commits.

~/repoone$ git log --oneline
4632c0d (HEAD -> main, origin/maincopy) Adding empty directory
908d6ac (origin/main, origin/HEAD) Third commit in main
42296d0 Second commit in main
453424e This is first commit
2673111 Initial commit

We will create new files or make changes in two files – fileseven and fileeight. Now, you can issue “git status” to see that it lists down all untracked changes after the last commit.

~/repoone$ git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)