How do I stop XCode 4 from modifying a local Git repository?
I have a Git repository, which for my own reasons I want to manage outside of XCode 4. Really what I want is XCode to just leave my repository alone. However, I've noticed that XCode will add new projects to the repository if they're saved inside the repository.
For example, suppose I start out with a plain ol' repo:
mkdir gittest; cd gittest
git init; touch a; git add a; git commit
I fire up XCode and create a new project. NOTE: I do not have the "Create local git repository for this project" checkbox checked. For the destination dir, I save it to the directory
git status reveals:
# On branch master
# Changes to be committed:
# (use "git reset HEAD ..." to unstage)
# new file: gittest/gittest.xcodeproj/project.pbxproj
# new file: gittest/gittest/en.lproj/InfoPlist.strings
# new file: gittest/gittest/gittest-Info.plist
# new file: gittest/gittest/gittest-Prefix.pch
# new file: gittest/gittest/gittestAppDelegate.h
# new file: gittest/gittest/gittestAppDelegate.m
# new file: gittest/gittest/iPad/en.lproj/MainWindow_iPad.xib
# new file: gittest/gittest/iPad/gittestAppDelegate_iPad.h
# new file: gittest/gittest/iPad/gittestAppDelegate_iPad.m
# new file: gittest/gittest/iPhone/en.lproj/MainWindow_iPhone.xib
# new file: gittest/gittest/iPhone/gittestAppDelegate_iPhone.h
# new file: gittest/gittest/iPhone/gittestAppDelegate_iPhone.m
# new file: gittest/gittest/main.m
# Changed but not updated:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
# modified: gittest/gittest.xcodeproj/project.pbxproj
# Untracked files:
# (use "git add ..." to include in what will be committed)
It's clear that XCode is modifying a git repository that it has not been told to manage.
Has anyone encountered this before? I'm assuming that this is a feature and that there's some preference to disable it, but for the life of me I can't find it.
It should be simple, but i just cant get anything to work. My Mac mini was connected to the office network (Windows server) and the repository is located on a server harddisk. I have a cloned working
I want to create a repository [B] that tracks a remote repository's master [A] in a branch called x_master. Its own master should also be a clone at the initial creation time that others [Devs] can cl
Greg's comment help me understand tortoisegit push successfully, but no new files? How do I create a local bare repository with tortoisegit? I can right click and clone a repository from github and pu
Say my SVN repository looks like: project/ trunk/ README foo/ bar.sh and I have a local, unversioned directory like so: svn/ project/ trunk/ README foo/ hum.sh if my cwd is svn and I svn checkout ht
This question already has an answer here: How to reset my local repository to be just like the remote repository HEAD 9 answers i need to throw away all the changes in my local repository and p
I have existing project and I want to add it in git local repository. How can I do that ?
I'm working on some classes that can be reused in other projects. I will add the first release to github when I'm done. The project does nothing, just the classes are useful. I don't want to commit th
I have just downloaded a code from github and now would like to Fetch the changes on the gitbub into my local repo, how I can do that within xcode 4? Or I have to do it manually by going to command
A simple question: How do I stop tracking an entire repository and delete all the local files safely? I have a remote repository, which, after a few commits, I decide to leave alone. But I also don't
I am trying to code an simple PHP application which will retrieve some information from the remote Git repositories with terminal commands. I do not want to create a local working copy or repository.
I've been developing a java application using git as source code repository. I'd like to share the project with other java developers and hg seems to be most used by them. My question is how do I con
For example, I want to use some framework that's located on Github. Is there a way to clone a repository without the .git structure? That way I can add new a remote url and push to my own repository a
So I'm trying to create a new project and I want to create a local Git repository for it. I'm using Xcode 4; I just downloaded and installed the latest version. When I go to make a new project and get
I have a working copy repository that I've been working in no problem; the origin for this repository is on GitHub. I'd like to make my working copy repository available as the origin for my build ma
I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview. How do I ensure from Applescript that the 3.2.3 version is picked?
I would like to have the following setup to work with git: for a given project I would like to have my origin repository in a directory of my desktop computer at work ($desktop). Then I would like t
After pushing my project to remote and pulling it back to the other machine I get this crash when I try to open it in Xcode 4.3.2: Project package contents: This happens every time for this project.
I know git is distributed, and frankly I like that property about it. The situation is that I have been a sole developer of a piece of software that I have been managing by git since its inception, on
I have heard that it is possible to have a local Git repository on a developer machine, while keeping a master copy of the source code stored in a svn repository. A good use case would be that you hav
I've just migrated a big open source project from subversion to git. I am trying to do a git svn create-ignore, but after about 30 minutes it fails because the svn server connection sometimes fails:
How can I check out a git repository using time notation such as 3 days ago, 12 months ago, etc? Note this related question only concerns the local repo, but I want to inspect the remote repo.
I've got a local branch called deployment. This branch is also on origin. How do I reset the local deployment branch to the state of origin's deployment branch? Something like the following: git fetch
i created backups of my git repository like in Backup a Local Git Repository proposed with git bundle create /tmp/foo-all --all I can see all refs are in there, including a remote ref created by git-
I have a local git repository that I eventually plan on publishing as open source. I recently noticed that one of the files has a password in it. Obviously, I need to strike that password from the ent
I created a project with local git repository using XCode 5 (preview 6), made some changes and tried to commit, and finally got the message The repository 'HelloWorld2' could not be reached, please v
The resources below describe how to remove sensitive data from a git repository. How do I remove sensitive files from git’s history? GitHub Help: Removing sensitive data Afterward, how do I double-c
I'm new to Git and I'm a little confused how to use git fetch I have a central repository that I access using SSH, I have created a repository using git clone, just like this: $ cd /my/local/repotes
I accidentally added, committed and pushed a huge binary file with my very latest commit to a Git repository. How can I make Git remove the object(s) that was/were created for that commit so my .git d
I'm using Github pages with Jekyll, and I'm using a plug-in to generate a search index. The plug-in doesn't run on Github, but it does run on the local instances for those of us using Macs and as a da
When I set up a new project in Xcode 4, and select Create local git repository for this project, all seems well enough. I'm able to commit files from the Organizer (it would appear.) However, in the
This question took me part of the way, but I'm still missing something. I have a single-user repository (so no problems with rewriting history vs push/pull) where I have developed product code and sup
I have a git repository that was created on Microsoft Windows. Microsoft Windows has a case insensitive file system. The people checking into this repository have not been careful about the case of th
I am working with a SVN repository. I already have a local copy (i did a checkout). Now I edited some files in that repository and saved them. How do I transfer them to the server. Is it like GIT wher
I need last commit date. This means the latest update date in my program. I used command : $ git log -1 But this command will give me date from local repository. Rather than I need date from remote re
I happened to change a name of a directory within my local repository and then proceeded to push this change up to my github repository. In effect, it caused this repository to turn into a git submodu
This is to be able to use Tortoise Git on existing files on Dropbox. (So Tortoise Git should be able to recognize the repository) (The repository has to be one file - therefore bundled)
In the past with XCode 4 I have been creating my new projects from existing repositories using the option provided on the XCode 4 welcome screen Connect to a Repository. I want to know how to do thi
I have a bit of a predicament. Basically I have a local master git repository. Every few hours, I 'git push' my changes to a server from which I then pull to my client machines. Well, being the geni
I have a repo on github and I need to complete reset it , i.e start uploading from scratch. How exactly do I remove all files and directories in the repository using git?
I've cloned a git hub repository successfully. The folder structure of that repository is as following: root-repository-folder->iOS So I've moved my Xcode 4 project folder into the above folder so
I have a bare git repository, but need to access and browse its contents over ssh (in a file manager like user experience). I assume I could clone it: git clone -l <path_to_bare_repo> <new_no
This is an organizational question for iOS and OSX developers. When you are using the automatically generated git repository for an Xcode project, how do you add/commit your non-project files such as
I am using bitbucket repository as a version controlling for my sales force project. I configured the push and pull(Fetch) of the code from the local repository to Remote repository using GIT in ecli
I'm attempting to construct a “heatmap” from a multi-year history stored in a git repository where the unit of granularity is individual functions. Functions should grow hotter as they change more tim
I'm using lion and xcode 4.2. I installed openmpi using macports. It all installed successfully. I cannot, however find a guide to tell me how/which libraries to include to compile an example (see bel
I have a git repository that is just a directory tree (/myprogram/src/com/mycompany/test) with some source files. I wish to create an eclipse project around this repository. Both orders of create proj
I have been working on this for a few days without much luck. I have a Git TFS Repository in Azure with multiple branches. Example: ProjectFoo -Development -Master -Release 1.0 All branches have hist
I use the m2eclipse plugin, and I commute on a ferry with wifi service provided by Boigo. When I try to access anything via http on the ferry, if I haven't already logged in any request gets redirecte
Some how .orig files are checked in my git repository during merge, which are now displayed in modified and un-tracked sector. But I don't want this files anymore in my repository. How to do that. mo
Git-1.7.11-preview20120710.exe used by me. I create a git repository cd GIT scm/ git init --bare shahed.git cd shahed.git git update-server-info Then I start git daemon by following command git dae