About this question
By deploying the command-line git, how to make git display files that are recorded in the repository?
By deploying the command-line git, how to make git display files that are recorded in the repository?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Data Science Expert
Answered on Jul 31, 2023
In case you want to list the files, git display tracked files being tracked under the master branch by the below-mentioned code:
Git Is-tree -r maser – name - onlyThe command will list the files currently tracked.
The following command can be used ti list files that were present previously
Git log – pretty=format: –name-only –diff-filter=A| sort-| sed ‘/$/d’ The command lists the erased files also.
You can use the command below to display the tracked files that are committed on the present branch.
Git Is-tree ==full-tree –name-only -r HEADHere full-tree allows the command to run as if you are in the root directory of the repository.
-r breaks into subdirectories. When mixed with –full tree, it offers the committed files.
HEAD denotes the branch you wish the list of tracked files for.The Data Science Certification Training offered at JanBask Training provides courses similar to offline sessions, helping students attain a broad idea on the basic and advanced concepts related to Data Science. The students also get to know the ways to manage structured and unstructured data applying the intelligence to figure out substantial conclusions. JanBask Training makes you industry-ready to face the job market scenario, examining the provided data and creating proper insights from them.
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step Data Science guides from industry experts
Common Data Science interview questions, answered
Guides, tips and career advice on Data Science from JanBask experts.
Data Science The Best Data Science Projects (Beginner To Advanced)
Discover 15 data science project ideas from beginner to advanced levels. Includes tech stacks, time estimates, & real-use cases.…
Data Science Data Science vs Software Engineering - What you should know?
Compare Data Science vs. Software Engineering - explore skills, tools, roles, salaries, and career scope. Discover which tech…
Data Science Top 15 Deep Learning Algorithms You Must Know in 2025
Discover the top 15 deep learning algorithms powering AI in 2025. Learn how deep learning models, DL models, and deep machine…
Data Science Deep Learning Tutorial Guide for Beginners
Deep Learning, Machine Learning & Artificial Intelligence have become trending words of the IT sector today.