Changing remote repository for a git submodule
I've created a git repository with a submodule in it. I'm able to tell the submodule itself to change its remote repository path, but I'm not sure how to tell the parent repository how to change the remote repository path for the submodule.
I wouldn't be surprised if I'm somewhat out of luck and have to do things manually, as even deleting submodules isn't easy.
Edit: I ended up getting rid of submodules and just had a working copy within another working copy, so I'm asking out of curiosity now.
The instructions given below seem to work in some circumstances, but apparently not in others.
Gosh, there are so many answered questions but i'm not sure about any of them. Prerequisites: My project has main repository on github. My project has repository on sourceforge as well Expected resu
I have a remote Git repository, and I need to roll back the last n commits into cold oblivion.
We have a git superproject that has one submodule. The submodule is under gerrit review. Our problem is that while changes are being reviewed in the submodule, (even if the submodule link to the commi
Is there some easy way to rename a git submodule directory (other than going through the entire motion of deleting it and re-adding it with a new destination name). And while we are at it, why is it
I have a web application that explores other web applications in a particular way. It contains some web demos in a demos folder and one of the demo should now have it's own repository. I would like to
If I modify a submodule, can I push the commit back to the submodule origin, or would that require a clone? If clone, can I store a clone inside another repository?
I have the following .gitmodules file: [submodule web/blog] path = web/blog url = git://amygdala.servebeer.com:lucky_blog.git [submodule web/old] path = web/old url = git://amygdala.servebeer.com:
I followed How do I remove a git submodule to delete a particular submodule. However, if I try to add a submodule with a different remote at the same path, git ends up checking out the submodule with
I was wondering if it is, at all, possible to check if a git repository is using github.com as remote repository, and get the url for it via bash? Any help will be appreciated.
I have a website I am working on with git as version control. However, it is becoming annoying to have to manually update the web server with changes to our code as well as the git repository every ti
I have transferred my repository, I am still allowed to push, how I'm getting the following error when I do: fatal: repository 'https://email@example.com/me/optinisations.git/' not found
I accidentally added a cloned git repository to a working copy clone of my repository, and pushed the changes to my remote. I did not use git submodule to do that, but rather did something like git a
I am using an intermediate Git repository to mirror a remote SVN repository, from which people can clone and work on. The intermediate repository has it's master branch rebased nightly from the upstre
I have created a remote git repository on a remote server in this place: /home/mysite/public_html/git/mysite.git and set /home/mysite/public_html as a remote working directory specified. On my local
I'd like to reference a git repository that's is not on the same server as Tuleap instance. Let's say I have SERVER_TULEAP where tuleap is installed and SERVER_GIT storing my git repository. I have se
I have an issue: while git pushing I've got an error: Fetching remote heads... refs/ refs/tags/ refs/heads/ updating 'refs/heads/master' from 5c797ac9a561aef9c1955ba7d3f566e9474454a7 to f57849e2e68454
I have an existing Git repository, with working copy, connected to a GitHub remote repository (my local repository is on Windows). I would now like to allow another developer to clone my local reposit
When I try to add and commit a git repository into another git repository, git helpfully makes it into a submodule. What if I want to track and commit changes to that nested repository in the outer re
I'd like to fetch changesets (to display them somewhere) from a git repository w/o cloning it on my local machine, just like svn does (svn log http://...). Is it something you can do using git? I've l
I've done something like following: (1) clone a remote git repository to local host local# git clone http://www.foo.com foo (2) add another project on a ssh host(bar) as the second remote repository l
The .gitmodule file only specifies the module repository url. How does git submodule know which version to download? It seems to be always checking out the latest version. Then, how does developers en
What I did I made a new Single Page App project in my application called parent. I made a new Static library project called child and I've Added it as a git submodule in my parent project folder.
I have a git repository on a remote server that I can SSH to. The remote repository is non-bare. I cloned the remote repository to my local machine. How can I tell the remote server to pull changes fr
How can I push and automatically update working copy of my non-bare remote git repository? Before git people will say that this is unsafe, please let me explain why in my case this would work. I ha
I'm using a local Git project repository, and have created a remote repository followed by pushing the contents of my local repository to the remote repository using the git push origin master command
How do you link a single file from another git repository to your own repository? I don't want the full repository, just a single file. Using git submodule seems like the right route to go, but it wan
I'm using a git submodule (let's call it SubmoduleRepo) so that I can include my module in couple of projects. I can commit to SubmoduleRepo from any project that uses it. I can update, commit and pu
I use a private remote repository for two main reasons, backup my work in progress when I travel from the office to home or synchronise code between two development machines. I have recently started p
I'd like to change repository description of the project I'm working on but Edit button does not appear in GitHub web site. I use GitHub for Windows and provided shell. Although description is prese
So, i decided to try git as my first vcs. There's actually no serious need(i'm a single developer of the project), just for self-education. I can't find out, how do you properly keep remote up-to-date
I have a remote Git bare repository hosted on Ubuntu Linux virtual machine with Apache on it and accessible over http in local network. When I configured my server I used this manual: http://blog.bobb
git branch -a shows me all the branches PROVIDED I already have cloned the branch. For example if I have a remote branch that I have cloned, executing this from the base dir gives me this * master rem
I have a git repository (which I'll refer to as ml) located at ssh://ml-fey/usr/projects/data/nuclear/mc/type1 This repository has a submodule. The .gitmodules file looks like this [submodule Append
I am getting the following error while trying to push the changes to remote repository. Command git push heroku Error fatal: You are pushing to remote 'heroku', which is not the upstream of your curre
When simply doing git push to a remote repository, its master branch gets updated. This is undesirable in the case of non-bare repositories, and the warning message displayed by recent Git versions ma
We are using two remote repositories on Bitbucket for the same project- where one is the one with most developments taking place at this moment and more people having access to it. The other is just f
Is it possible that mine .gitattributes file affects submodule? I'm interested in specifying filter and smudge/clean, so it would be applied during checkouts in submodule.
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
While developing some patches on projects with an upstream Git repository I'm currently doing the following. superproject/submodules/actualproject ^ parent repo ^ Git submodule actualproject has two
I am not very familiar with the terminology or practices and procedures of version control. Here is what I want to do : I want to download a folder from a git repository from the Internet. Is cloning
I have a Git repository on a server and on the same server I have a script which needs to do a git archive of the repository. Here's my sample git archive command which works well for remote Git repos
Assume we have two people which are working on one repository: $ git config --global user.name john $ git config --global user.email firstname.lastname@example.org His login to remote repository: john. $ git con
How can I delete file from remote git repository? I have a file that is just deleted from working copy local repository, and I want delete it from corrispettive remote repository
If I understand correctly, Git has two sorts of repositories: one called local, another called remote. My questions are extremely naive ones about the two types of repositories. Is that correct to say
I'm having problems adding a remote repository to my local one. I first tried using Tower where I manged to add my local repo, but when it came to adding a remote repo it just said add the URL. It doe
I have one Git repository that contains a git submodule. In Xcode 4.2.1 I edit a file in the main repository and a file in the submodule, then I press alt-cmd c to perform a commit. In the commit di
This is remote Git repository on server [aaa@web48 proj.git]$ git ls-remote . dfca707432eb53678b37026b160a4bdc7f1ac6c3 HEAD dfca707432eb53678b37026b160a4bdc7f1ac6c3 refs/heads/master 1e09c37443ee75864
When using the maven-release-plugin with Git, mvn release:prepare happily tags the release in the local repository. I'd expect mvn release:perform to push the tags to the remote repository, but this d
This morning I went to do a git fetch and got the following error: fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. T
I have a git project that contains a git submodule that I cloned from a public read-only repository (i.e. I cannot push to that repository). Is it possible to commit to that submodule? Here's how I tr