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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:13:56+00:00 2026-05-27T05:13:56+00:00

I tried git integrated with xcode 4, but got problem on merge a branch

  • 0

I tried git integrated with xcode 4, but got problem on merge a branch back to master. When I develop new feature I create a new branch and add many new lib and files, the problem came when I want to merge this branch back to master. From my understanding I have to switch back to master and then merge feature-branch back to master, but when I tried to switch to master branch I got a lot of warning messages something like

The file for the document that was at /Users/…../file_name.m has
disappeared. Do you want to re-save the document or close it?
(three options, re-save, cancel, save-as)

What should I do so I can merge with no warning, do I need to add .gitignore to resolve 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-05-27T05:13:57+00:00Added an answer on May 27, 2026 at 5:13 am

    Two options:

    • either XCode4 consider the opened file problematic, since master branch doesn’t contain that file yet (you haven’t done the merge), so it (XCode4) proposes to close that file, or to re-create it in the new working directory (the one for master branch).

    • or you didn’t committed that file yet, and Git, through XCode4, warns you about a file which might be lost when switching to master.
      Check your git status before switching branch: it should be clean.

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

Sidebar

Related Questions

I've tried git branch -r , but that only lists remote branches that I've
My boss gave me a path: xxx@yyy:git/zzzz.git I tried git checkout xxx@yyy:git/zzzz.git, but got
I am newbie with git. It tried this tutorial, but after the command, i
As far as I see, git pull someRemote master tries to merge the remote
I used git reset --hard dc082bc... to revert to the branch back to a
I was used to doing git diff | mate but my new machine does
My local tree has diverged from the master: $ git status # On branch
Sorry for the bad title, but... I tried git flow on a project I
I tried: git branch MyProj/bin/ ignored and received: fatal: 'MyProj/bin/ ignored' is not a
I tried git checkout OTHER_BRANCH -- /path/to/folder the problem is with files that exist

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.