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

  • Home
  • SEARCH
  • 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 6763425
In Process

The Archive Base Latest Questions

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

So we finally have git set up but I’m really confused how to handle

  • 0

So we finally have git set up but I’m really confused how to handle multiple people merging.

I have a branch, test, that I merged a feature in to earlier today. The other developer has now merged his new feature into test, and in the process – since his new feature was branched off before I merged mine in – it deleted the files that mine added.

1) How do we get around this?

2) How can I force git to not remove or overwrite files without asking?

Edit: Corollary: When should we pull, and I guess when we pull (I’m guessing before a merge?) we should merge the pulled copy into the branched feature?

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

    There’s something very very wrong there. Files do not just get deleted from a branch, Git will always tell you if there are conflicts and that happens by default. If they were committed correctly they will still be recoverable.

    You need to make sure the other developer knows what he’s doing when he’s performing a merge. If things are exactly like you describe, it sounds like he put considerable effort into merging his feature at the cost of not having to deal with a merge correctly, meaning he chose to remove your earlier changes.

    When you pull Git merges automatically and warns of any merge conflicts. If you want to avoid merging automatically, perform a git fetch and then rebase your branch.

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

Sidebar

Related Questions

After thinking that I finally figured git out, I'm now finding myself super-confused about
I finally have a hardware guy that is insterested in controlling the firmware. This
I have finally started messing around with creating some apps that work with RESTful
I finally have this working now but would like to know how I can
I have finally finished reading Pro ASP.NET MVC 2 Framework Chapter 3: Pre-requisites but
I've never created a custom route before, but I finally have a need for
This is the very first time I have set up a git server, as
I have (finally) convinced my manager to allow us to set up version control,
I recently decided to try jQuery 1.4, excited that I would finally have support
I recently set up dev/staging/production environment on OSX Lion. I have a git repo

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.