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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:45:37+00:00 2026-06-15T03:45:37+00:00

Currently we commit binary files into source control and these will be changed by

  • 0

Currently we commit binary files into source control and these will be changed by different people and then re-committed. However this can produce merge-conflicts.

Realistically as these files contain things like images it doesn’t make sense to merge them.

I’m wondering if there is a git command that allows a possible merge conflict between binary files.

IE: There is are two repositories and a bare remote repo which they use to share. There is a file image.png that the users the two repositories make seperate changes to and commit. They then pull the changes made and then push their changes to the remote repo. Obviously this generates a merge conflict for one of the users. But this doesn’t make sense for image files, is it possible that the newest commit can be the most recent and the older commit can just be added to the history of the branch?

I’m well aware this isn’t exactly how things are supposed to be done, but this is the situation I’m in so I’m wondering if anyone has a solution.

  • 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-15T03:45:39+00:00Added an answer on June 15, 2026 at 3:45 am

    Yep. git reset just the conflicting paths to the versions you want to supersede (git resetthecommitwiththesupersededfiles--paths), commit that, then add (or reset to) the replacement (i.e. correct) versions and commit the result. If you don’t like having artificial and known-to-be-inconsistent commits on your mainline you could also make an orphan commit of only the superseded files (with a commit message saying what’s up with them) and add that as a merge parent of the commit with the selected versions on your main branch. Read up on git mktree and git commit-tree to see how to do that, it’s actually pretty darn easy.

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

Sidebar

Related Questions

I currently commit files to my SVN server (which is located on my web
I'm currently starting to use git for my version control system, however I do
I currently keep an SQL Dump of my db with each commit. However, the
I am currently using TortoiseHg (Mercurial) and accidentally committed an incorrect commit message. How
We have some people with long names in our git commit logs. Currently, my
Currently, when I run git svn dcommit git creates a separate commit in SVN
Currently I am using HTML files for parts of my user interface. I display
Currently I have 2 ways of displaying images in a cell, which way will
Currently working with converting SQLException error messages into messages that are more useful for
Currently all my team members connect to a CENTRAL SVN server and they commit

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.