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 7750653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:20:47+00:00 2026-06-01T11:20:47+00:00

I am doing an assignment in a university course and I am using Git

  • 0

I am doing an assignment in a university course and I am using Git as version control for this assignment. The game I have been working on is complete. However, along with the hand in I would like to submit the Git log, effectively showing my progress during the time I have been working on it.

I have tried this:

git log --stat > log.log

But it more or less just gives me very unreadable stuff. What is a command so that I can get a nice formatting on 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-01T11:20:48+00:00Added an answer on June 1, 2026 at 11:20 am

    I would recommend using a different format than the default. My usual choice is a summary with the graph, but a one-line summary alone usually does the trick.

    Option 1: One-line summary with a graph

    git log --pretty=format:'%h : %s' --graph > log.log
    

    Results in:

    * 2d3acf9 : ignore errors from SIGCHLD on trap
    *   5e3ee11 : Merge branch 'master' of git://github.com/dustin/grit
    |\
    | * 420eac9 : Added a method for getting the current branch.
    * | 30e367c : timeout code and tests
    * | 5a09431 : add timeout protection to grit
    * | e1193f8 : support for heads with slashes in them
    |/
    * d6016bc : require time for xmlschema
    

    Option 2: One-line summary without a graph

    git log --pretty=format:'%h was %an, %ar, message: %s' > log.log
    

    Results in:

    a6b444f was Scott Chacon, 5 days ago, message: dammit, this is the second time this has re
    49d77f7 was Scott Chacon, 8 days ago, message: modified index to create refs/heads if it i
    9764edd was Hans Engel, 11 days ago, message: Add diff-lcs dependency
    e1ba1e3 was Hans Engel, 11 days ago, message: Add dependency for Open4
    0f87b4d was Scott Chacon, 12 days ago, message: merged recent changes
    

    You can find more formatting options in the documentation here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so we're doing this assignment at Uni and i have a serious craving to
I am doing an assignment and stuck at this point: I have a class
I'm working on a university assignment to improve a game engine. The code we've
I am doing this assignment, make a program that solves sudoku. I have a
Okay so this is for a school assignment. I have had no problems doing
I am doing a assignment about this. For Eaxmple: I have a message (String),
I've been spending some time doing JavaCC parser generation for assignments at University and
I'm doing a homework assignment for my course in C (first programming course). Part
I'm doing a basic homework assignment which looks like this: While input <> -1
I am doing an assignment with pyGame, a very simple one, we have to

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.