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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:36:16+00:00 2026-06-13T00:36:16+00:00

I can create a repo and use GitHub / BitBucket fine for my own

  • 0

I can create a repo and use GitHub / BitBucket fine for my own projects. I have had problems when collaborating with other developers or trying to fork a project on GitHub.

I am aware of other answers like Best practices for git repositories on open source projects but there are OSX / Xcode specific problems I want to know how to solve.

  1. .DS_Store files can be a pain. You can use .gitignore to prevent, but what happens if they have already been included, or another developer adds them back in through a clumsy git command?

  2. The .xcodeproj will have changes to the directory names and developer profiles for the other person. What’s the best way to do merges or to avoid conflicts?

  3. If I have forked or pulled from a github project, how can I clean up these issues and also minimise merge conflicts for the maintainer?

If people have an example .gitignore created for Xcode, or scripts they use to initialise their repos then that would be great!

  • 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-13T00:36:17+00:00Added an answer on June 13, 2026 at 12:36 am

    I’ll try one by one:

    I. You need to use git filter-branch only if you need to remove the files from your history completely. If those files do not contain any credit card information, then i think the following should be enough:

    git rm --cached .DS_Store
    git commit -m "{Your message}" 
    

    then add this file to .gitignore and commit it.

    This will commit the removal of the file from the repository but will keep the file in working directory. If you push it though and then somebody else will pull this commit, they might have their file removed, so you MUST communicate this.
    By committing .gitignore you will prevent other developers from adding this file again.
    If you’re not a maintainer, then i don’t think you should do anything, but address this issue to the maintainer.

    II. I’m a strong believer that hidden files of any nature are most of the time not supposed to be put into the repository exactly for that reason. Therefore i think that you should do the same thing with .xcodeproj as with .DS_Store and put it into .gitignore and commit it. .gitignore is the exception for the rule above.

    III. If those files are properly ignored , then there will be no issues in future with them. If they are already in the repo and somebody wants do such cleanup it should be done by maintainer and communicated inside the team.

    Hope that helps!

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

Sidebar

Related Questions

Use Case: I have some repo on GitHub, someone forked it and added new
I can create and use dynamic two dimensional array in Fortran (in 77 standard).
I'am using git as scm of choice but have to use a svn-repo. I
Imagine situation like this: You have a working repo in bitbucket - you were
I have a repo on GitHub. Recently I have discovered GitHub's pages and I
I understand that I can use 'git push -u [repo] [br]' to make [repo]
I'm cloning this repo: https://github.com/freeformz/sinatra-jruby-heroku.git to try and use JRuby/Sinatra on Heroku's Cedar stack.
Let's say I have a repo called stuff. git@github.com:mine/stuff.git when I do a git
I have Jenkins setup using git and use a github hook for continuous integration.
i have an Android open source application published here https://github.com/evilsocket/dsploit ... as you can

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.