How do I reconnect a moved git repository with it's original project in Egit?
I have a number of projects within an Eclipse workspace. One project is connected with a git repository. This is the original directory/project structure:
After reading about the complications that can arise from keeping a git repository within the parent directory of a project in a workspace (here), I decided it would be best to move the repository outside the workspace. Here is the revised structure:
Within the "Git Repositories" view I re-added the repository. I thought it would be simple to reconnect the repository to "Project1" by altering a few file path settings. I found that this was not possible from Project1's properties (right click on project -> properties). I noticed that within the "Share Project" wizard you can connect to an "existing repository". So I disconnected the project from the now non-existent repository and I tried to reconnect it using the "Share Project" wizard. But although the repository is shown in the "Git Repositories" view, I was unable to select it. I clicked the "create" button and tried typing in the file path but this gave me an error stating that the directory is "not empty".
So I have now become stuck as there seems to be no other options available. How can I reconnect this repository? I'm surprised by how complicated this is, I must be doing something really obviously wrong. I really need to get on with some work and messing around with Egit is taking up all of my time.
I'm making changes to the Linux kernel for my particular ARM board. I've cloned this repository: http://arago-project.org/git/projects/?p=linux-am33x.git I want to commit the changes I've made, and pu
I'm doing a Git clone on a project following the instructions. But, do I need to do an init in the directory beforehand ?
I'm using git as the revision control software for a project. My project needs to use a 3rd party code library which uses SVN for its revision control software. (In this case the 3rd party code is a P
UPDATE I set up the two Git repositories following the directions from one of the answers below, but the back-up directory doesn't have copies of the files in the working directory. This is what I see
This seems like it should be simple, but I can't figure it out. I'm happy to use the website or the command line. EDIT: Say there is some repository/user named foo on GitHub, and there is a project na
I have project files (including test files) all of which I want under version control using Git on my local computer. I want to create a public remote repository (on GitHub) that only contains a subse
I want to synchronize changes with a remote Git repository (at GitHub) using the Git Api in Java (Egit and JGit). How can I do this? Is this possible by knowing the HEAD ID between two revisions, or s
I'm cloning a Git repository by copying the .git directory. If I run git checkout in that directory it gets me the contents of HEAD. How do I get the staged changes from the original repository? A
Let's say I have an Eclipse Project which uses versioning control with EGit and is connected with a remote repository firstname.lastname@example.org:git2013. In my project, under the local branch newstuff, I create a
In Eclipse when I try to import a project from a repository (File > Import > Maven > Check out Maven Projects from SCM) I select 'git' (eGit installed), fill in the ssh://... address (all the
I have four kinds of files (source code, databases, docs and executable files) should I put all of them in the Git repo or should i put only the source code in the repo? Is there any standard structur
As a followup to my question about unavailable branches after svn to git migration, I have a different problem: I'm unable to push new branches to my central Git repository. $ git clone ssh://server/o
I have a github-based git repository that represents development up to a certain point, and then a svn repository, not initialized with git svn, that has further development. I want to bring the svn c
I have two versions of one project in one local git repository. I have to commit this repository into 2 remote repositories, one for each version; LOCAL GIT(V1/V2) -> REMOTE GIT(V1), REMOTE GIT(V2)
I have an svn repository where the original structure looked something like: features/ trunk/ branch1/ But then over time moves to the standard svn structure of: trunk/ branches/ tags/ etc. Is there
I have been using Eclipse and Git. Now I want to use EGit. My project has 4 packages. Each package has a Git repo. When I import Git repos into EGit, there is an instruction in the user docs to impor
I use Eclipse EGit plugin to work with git repository. (I even use it for local projects to track changes made by tools.) However I discovered problem that makes usage for team projects not so good: W
How do I enable ident $Id$ on files in a Git repository?
I'm busy migrating a Team Foundation Server 2012 Repository to a Git repository running in TFS 2013. I'm using the recommended process: Clone a Git repository form TFS using git-tf. Create the Git re
I have a Git repo that I'd like to roll back by about a dozen commits using... git reset --hard d3289a7ab82fd76386d99bdd2c5e6496ecc62529 The problem is I've already pushed the commits to the remote.
So I have a project that is a git repo which contains another git repository. So the structure is this: /gitProject /other /stuff /anotherGitProject Currently, I've got anotherGitProject set up as a
This question already has an answer here: Migrate SVN repository with history to a new Git repository 20 answers hello I want to ask something when we create new Xcode project then I forgot to
I moved a .js file from one folder to another manually. Now, although GIT seems to have the complete history log for the file, it still seems to treat the move as a delete/create event. Further, using
I'm using Git as a data storage system, there are multiple users in system and everyone of them has its own git repository. Is it possible to quota disk usage for Git repository (quota should work on
I have cloned a github repository and made no changes locally. Github repository moved forward with commits on the same branch. How do I find a diff between my local repository and the original githu
I have a java project with files with umlaut charachters in their names. How do I have to set-up a git repository in order it can be used with the EGit plugin of Eclipse. I already tried with a simple
After cloning a git repository, How can I get the repository file? for example) After git clone http://email@example.com/asdf/asdf.git I want to know the URL(http://firstname.lastname@example.org/asdf/asdf.git
I would like to change the directory name of a git submodule in my git superproject. Lets suppose I have the following entry in my .gitmodules file: [submodule .emacs.d/vimpulse] path = .emacs.d/vim
I am using Eclipse Helios and EGit. I am new to Git. I have an existing Eclipse project for an Android app I would like to place in Git. Can someone please share some instructions on how to setup a Gi
GitX seems to need an already-set-up repository, so although it seems to be the best GUI for Git, it is incomplete. I still need to create the project repository manually in the console. Whats the fas
I've been working for a while on a project hosted in GitHub. However, I've now desided I want to rewrite my application a different way and so have started from scratch. I've renamed my old local repo
I'm totally new to git and want to create a repository in a directory that has existing .svn folders and compiled folders bin and obj. After running init on a directory, what is the command to ignore
I have already committed my whole Visual Studios project to my Git repository. However, I realized that I didn't include a gitignore file until after I committed my project. I think this is causing pr
Looking some like pull/push from multiple remote locations in egit. When I right click on git repository and try to push(using Push branch...) I can only push to a single remote repository at a time.
I have a View in my Activity. I want to detect when it has moved around the screen due to any actions (user scrolls, relative views resize shifting contents, etc.). This is meant to be in a library, s
I have gone thru the egit tutorial doc here http://wiki.eclipse.org/EGit/User_Guide. I now have a git repository with an eclipse project on my laptop and can push this to a remote git repository on gi
I'm completely new to using Git (and find it a lot harder to use than SVN already), and I noticed that the project I pulled in was dumped right in my C:/Users// directory. I prefer moving it somewhere
I am trying to get to grips with PyDev, Git and egit. But when I import a project to my PyDev is disappears straight away. I followed the excellent video tutorial here about how to connect egit (ecli
I wonder if it's possible to use the maven-release-plugin in a multi module project where each module has its own git repository? Something like this: parent/ .git/ pom.xml module1/ .git/ pom.xml I s
there. I am using EGit to import a project into Eclipse under Ubuntu 10.10. But at the end of the import, Eclipse complains as follows: Git repository clone failed. Missing unknown f499261f24471928b91
I have cloned a git repository and I would like to switch to a particular branch from the following list (e.g. branch1, branch2, branch3) Should I have to say git fetch origin branch2? How do I know t
This issue is not the same as git - how to mirror file from other repo or GIT: How do I update my bare repo? Since a repository cloned with --mirror is a bare repository, can I make a repository clone
I am trying to clone a TFS repository using git-tfs. It works great with TFS projects that don´t have a space in the name, such as: git tfs clone http://tfs:8080/ $/TeamProject/folder But I also have
I have a git repository cloned from github. Then I go to my local copy of that repository. There are sub-module projects in the repository. Now, I would like to create a new Android project. So, in Ec
I'm working on an Android project with Eclipse and I use a git repository with EGit. I have data (in my case two strings, OAuth key and secret) that I need in my project, but I don't want it to be pus
So I have a git repository that i pulled at one point and that repository resides on a server. I don't have access to the original repository that I pulled it from. How do i get the code from the exis
Basically I'm using Eclipse with Egit on Windows. I was having issues with a file not pushing correctly so I just started a new repository since it was a small project. So I deleted the repository fro
Context: I'm learning how to use git with Eclipse and am using it for a small project with only a local repository. Problem: I just noticed that a commit I made earlier has an incorrect description a