Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

git list tracked files - how can I make git show a list of the files that are being tracked?

Asked by Ankit Chauhan Jul 12, 2021 11.3K views 3 answers
Share

About this question

Using command-line git, how can I make git show a list of the files that are being tracked in the repository?

Your answer

3 Answers

Geraldinebond Latest answer

Answered on Apr 24, 2025

To display a list of files that are being tracked in a Git repository, you can use the following command:

  git ls-files

This command will list all the files Geometry Vibes Unblocked that Git is tracking in the current repository.

Was this helpful?

Ranjana Admin JanBask Expert

Answered on May 22, 2024

To list the files that are currently being tracked by Git in your repository, you can use the following commands:Basic Command

git ls-files: This command lists all the files that are being tracked by Git, including files in the staging area and the working directory.

  git ls-files

Detailed Options

The git ls-files command has several options that you can use to customize the output:

Show modified files only:

git ls-files -m

his lists only the files that have been modified.

Show deleted files only:

  git ls-files -d

This lists only the files that have been deleted but are still tracked by Git.

Show others (untracked files):

git ls-files --others




Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.