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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:29:58+00:00 2026-05-28T14:29:58+00:00

I am editing a project with git on multiple computers. How do I check

  • 0

I am editing a project with git on multiple computers. How do I check the current version I am running on a computer?

For example, each time I commit, I use a version number and include it in the commit message. Is there a way for me to retrieve the current commit message for the working copy I am using?

  • 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-05-28T14:29:59+00:00Added an answer on May 28, 2026 at 2:29 pm

    Git does not have a concept of a “Revision Number”. It has a commit hash. You won’t know your commit hash until you’ve actually commited, so you cannot get the “current hash”.

    If you want the commit hash of the previous commit, use git log -1. If you need the output to be just the hash, then xpapad’s answer is what you are looking for.

    If you mean the actual version of Git (your question was a little ambiguous to me), then use git version.

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

Sidebar

Related Questions

I accidentally ran commit on a git project with lots of data files in
I use Git on my 2 Macs, which each have a different executable path
I've started a directory project in C#.NET where I'm editing an xml file and
I'm building a game level editing app as part of a university project. In
I'm editing a piece of code, that is part of a big project, that
I am editing a open source project called Opencv for Delphi which compiles fine
I want to develop a test project for inline editing using jQuery. In this
Google Code Project Hosting recently adapted CodeMirror to allow for quick in-browser editing of
I'm editing a project in GEdit (text editor). When I type TODO it highlights
I'm currently editing a working project with some experience on PHP. I know a

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.