How to show the files that need to be commited?

Asked

Viewed 483 times

5

How to show files that need to be "commited"?

Or, there’s some program, for Linux-based distro, that behaves like the Eclipse Git module, that shows me the files that need to be added and "commits"?

2 answers

8


The command git status provides various information about the current status of the repository. This includes which changes are in the staging area (and will be included in the next commit), which files have modifications in the current directory but outside the staging area and which are the "unknown" ones present in the directory but ignored by git.

For example:

~/D/web (master) $ git status
# 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:   Main.hs
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   Routes.hs
no changes added to commit (use "git add" and/or "git commit -a")

1

If you want a way to do this using a GUI, the Git Force is a program that works on Linux. Stack Overflow in English also has an answer that discloses several alternatives for user on linux here. (the first answer)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.