Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:47:10+00:00 2026-06-14T09:47:10+00:00

git show –pretty=format: –name-only This shows me the list of files changed in HEAD,

  • 0
git show --pretty="format:" --name-only

This shows me the list of files changed in HEAD, say:

pkg.file1.java
pkg.file2.java
pkg.file3.java

What I want is to retain whether the file was added, modified, or deleted:

M pkg.file1.java
D pkg.file2.java
A pkg.file3.java

Is there a simple way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:47:11+00:00Added an answer on June 14, 2026 at 9:47 am

    found it:

    git show --pretty="format:" --name-status
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The command git show --pretty=format: --name-status bd61ad98 will show a list of all the
What is the svn equivalent of this command, basically? git show -s --pretty=format:%an 85c3e0
When I say git status I get a list of changed files. I'd like
When using this command: $ git show -s --pretty=format:%H --all it prints this: 41b253549d86db3432743c1c8a9f75511779073c
Is it possible to have git status only show the modified files due, in
A riff on git: show all changed files between two commits : I want
After doing a simple merge (one without conflicts), git show usually only shows something
The following git command... git show -s --pretty=format:%T master ...will emit the SHA1 of
I have the following alias: unpushed== !GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH
git show --stat --pretty=format: 50c2ebc0e Outputs: .git.ignore | 2 +- .../WebServiceRequests/WebService.cs | 78 ++++++++++----------

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.