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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:42:18+00:00 2026-05-18T10:42:18+00:00

I use git for a few months now. I have a bare repository on

  • 0

I use git for a few months now.

I have a bare repository on a server, and I work with it from 2 locations.

I’ve noticed that when I do some local commits on one of the computers, push them on the server, and pull and merge them on the second location, I only get one new commit in the history.

If I’ve understood correctly, this is the way merge works, and if I want the same histories between the two computers, I should use rebase, am I correct?

But the first question I wondered is: even if I don’t have all the commits history on both computers, does the bare repository have it at least?

If yes, is it possible to consult the log on the remote server?

Thanks in advance

Mike

  • 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-18T10:42:18+00:00Added an answer on May 18, 2026 at 10:42 am

    No history was lost.

    The merge commits have 2 parent commits, the preceding local commit (which is what git log is showing you), and the remote commit that it was merged with. You can use gitk to visualize this.

    Both systems, and the server, share identical history.

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

Sidebar

Related Questions

I have a Git repository and I'd like to see how some files looked
I have a git repository that I am using and I've screwed up. I
For personal projects I use Git for SCM, but at work we use TFS.
I want to use git as a local repository against a remote SVN repository.
I want to use git to allow me to work on several features in
I've been using Git for the past few months and love it. I looked
I have a simple blog application written in Python, using Django. I use Git
How often should you use git-gc? The manual page simply says: Users are encouraged
I frequently use git stash and git stash pop to save and restore changes
I'd like to use git to record all the changes to a file. Is

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.