Git rename directory with submodules
Given a git repository, with a directory in which I've checked out a submodule, how can I rename the top level directory?
$ git init
Initialized empty Git repository in /home/work/asdasd/.git/
$ mkdir asd
$ touch asd/.keepme
$ git add asd/.keepme
$ git commit -a -m "asd"
[master (root-commit) 932f011] asd
0 files changes
create mode 100644 asd/.keep
$ git submodule add email@example.com:test/test.git asd/subdir
Cloning into 'asd/subdir'...
remote: Counting objects: 800, done.
remote: Compressing objects: 100% (281/281), done.
remote: Total 800 (delta 523), reused 786 (delta 509)
Receiving objects: 100% (800/800), 109.46 KiB, done.
Resolving deltas: 100% (523/523), done.
$ git commit -a -m "submodule"
[master e0fe8e7] submodule
2 files changed, 4 insertions(+)
create mode 100644 .gitmodules
create mode 160000 asd/subdir
Now, if i try to rename the
asd directory, I'm getting an error:
$ git mv asd foo
fatal: source directory is empty, source=asd/subdir, destination=foo/subdir
How can I rename it?
I would like to know if there is a way to determine which sub-folders under a specified directory are git projects. After which, check which of those git projects need updating via 'git fetch' or othe
How can I create a directory link that will survive git submodule update? Given the following example directory structure: proj |-- lib3 | `-- submod | `-- lib `-- lib I created a soft link from proj
I'm wondering how I can exclude an entire directory from my Git diff. (In this case /spec). I'm creating a diff for our entire software release using the git diff command. However the changes to the s
I would like to rename all directories (recursively) by changing all occurrences of spaces to underscores. E.g. Before change: product images/ 2010 products/ 2011 products/ 2012 products/ misc images/
I'm using WatchService for synchronization data files with the application workbench. When I rename/move the watched directory I don't get any event nor the WatchKey won't become invalid. I still get
It seems a git repo inside a parent repo isn't included in a commit on the parent unless it's setup as a submodule. Is it possible to override this behaviour and treat the nested git repo as any other
We have a very large ancient flat CVS repo with an example format as below. I have imported each subdir as its own git repo with full history. . ├── liba ├── libb ├── libc ├── prog1 ├── prog2 └── prog
We are having a lot of problems recently with our Git repositories. We are users of git submodules for a total of 4 shared repositories between our applications. For example, repository 'website' has
All of a sudden git stopped working on my (private) repo. I'm getting this error screen: I have checked the account on my github client (this is on OSX) and the login is OK. Any suggestions, on how t
How can I add all sub-repositories inside a just-initialized git repository as submodules? I have two repositories I've been tracking separately, now I want to take those into a larger project, but st
I'm using a Git repository for everything related to a website I'm developing. The repository holds all files related to the site, including documentation, mockups, original layered images, etc. as we
My current svn cloned branches (using the -s 'standard layout') option are called: $ git branch -r branch1 branch2 I would like to rename those, such that they are: $ git branch -r svn/branch1 svn/br
So I've run across an interesting problem where I'm missing entire directories when checking out a branch from Git, looking at the branch history shows files from the directory being added and that th
I have a git repository that has several submodules in it. How do I list the names of all the submodules after git submodule init has been run? The git submodule foreach command could echo the names o
How does git submodule add -b work? After adding a submodule with a specific branch, a new cloned repo (after git submodule update --init) will be at a specific commit, not the branch itself (git stat
my project directory structure is like this: my_project/ .git/ a_dir/ another_file.py some_file.py when I run git archive link this: git archive --format=tar.gz -o ../my_project-0.1.0.tar.gz v0.1.0
It's been about 6 months I used submodules for subprojects developed alongside a main project with a dev team. - v-- Repository (developer(s)) --v - Main project (dev team) - Sub project 1 (me) - Sub
I had my project in a 'www' folder. In 'www/vendor', I cloned other projects from GitHub. I just cloned them, never did anything to make them submodules or subtrees. Quite often, I worked on these sub
I've been using Git submodules within my dotfiles repository to track each Emacs package that I use. With a package manager being built-in with Emacs 24, though, I'd like to switch to the more officia
I have a project here that's a large Symfony2 app, I'm looking to introduce git submodules to components we're building here in-house. The issue here is that each component also requires composer pack
So I have a project with multiple libraries attached as submodules - this means I can't commit to them. Each of the libraries already includes an android support library, which obviously leads to an e
With .gitignore: foo/ and a git repository of: ./quux ./quux/foo ./quux/foo/bar ./quux/foo/bar/baz As foo is ignored, git assumes working directory is clean: % git status # On branch master nothing
I was wondering if it is possible to have more than one URL for each git submodule. It would be interested to have more than one source of it if one of them is down or someone is behind a proxy that b
I need some help in renaming some images in a directory located at /images/graphicsLib/. All image names in /graphicsLib/ have naming convention that looks like this: 400-60947.jpg. We call the 400
How can I update non-npm-package git-submodules in my npm package before install? I'm using git and have a node.js module that depends on an external project also hosted in a git repository. I added t
I have a repository on github: firstname.lastname@example.org:daviddoria/InteractiveImageGraphCutSegmentation.git It has several submodules. When I clone it (on linux) and then do 'git submodule update --init --rec
I host a project on github.com. My project have some git submodules. One can clone a project with submodules with git clone --recursive, but since my audience are not developers, but people who never
I'm sorry if this is a duplicate, I've searched google and SO and couldn't find anything similar since it's a fairly generic set of words to search for! What I want is to have the .git directory be ou
I have added a submodule to my Git repository at https://github.com/centic9/JGitFS but now the Cloudbees Buildhive Jenkins in the cloud at https://buildhive.cloudbees.com/job/centic9/job/JGitFS/ won't
I am new to Git, and this is my first project using Git rather than SVN as my source control. I am working in XCode on an iPhone project. I want Git to ignore the build directory, which is in the root
If I understood it correctly, Git directory is the hidden directoy named .git which resides in the working directory. And all the code and history info is stored in the Git directory. So I expected th
I am new to Git and am trying to clone repo from another directory. Lets say I have one repo in C:/folder1 and C:/folder2 I want to clone the work in folder1 into folder2. What would I type into the c
I have a git repo as my master project. It has some sub-modules added to it. It look like: ~/super_project/ <- main git repo ~/super_project/plugins/admin <- sub-module ~/super_project/plugins/e
Currently I am trying to clone this git repo: https://github.com/twilio/OpenVBX into my main repo, as though it was a directory. The issue lies, in it that when I try to commit the main repo with git
I have directories in the form of *Var0.5Def1Min1, *Var0.5Def1Min2, ... , *Var0.5Def10Min100 I only want to rename the part with Var0.5 to Var0.50 Examples: *Var0.5Def1Min1 > *Var0.50Def1Min1 ,
Is it possible to have shallow submodules? I have a superproject with several submodules, each with a long history, so it gets unnecessarily big dragging all that history. All I have found is this una
Task: Directory that will have various .csv files dumped into it. These could be like file1.csv, file2.csv, etc. Problem: Iterate through the files and rename one to a standardized 'newfilename.csv'
Possible Duplicate: git add -A, git commit in one command? If I understand correctly, when new files are added to a directory when using git, I have to call more than one command to make sure that t
I started using github on Ubuntu. I use PHP/MySQL. All my applications are in /var/www directory for development. Now should I create .git directory in each application in /var/www/, such as /var/www/
This question probably is based on my lack of understanding of the role of .gits and git repositories in general but: Can I rsync a dir with content that I created with git init between machines ? I h
Is it possible to get the git difftool command to open a directory compare between the changed files and the staging/checked files? So ideally, if 2 files have changed, they would be the only 2 shown,
I am using git to clone a repo via https thus: git clone https://username:password@alocation/git/repo.git This is fine but it has a large number of subrepos to clone as well so I am using the --recur
I have a repository where I am ignoring a whole directory, however there is an individual directory inside there that I want to be a submodule. So my git ignore file has the line, wp-content/plugins/
I'm using Directory.Move(oldDir, newDir) to rename a directory. Every now and then I get a IOException saying Access to the path oldDir is denied. However if I right click the directory in the exp
Can anyone explain how something like the following system could be brought outside of git, i.e. using version numbers instead of git's context via branches and submodules: Let's say we have some tool
I am currently importing a cvs project into git. After importing, i want to rewrite the history to move an existing directory into a seperate submodule. Suppose i have a structure like this: file1 fi
I recently reorganized my dotfiles to live inside a Git repository at ~/Dropbox/dotfiles and I'm using pathogen to bundle all Vim addons inside ~/Dropbox/dotfiles/home/.vim/bundle. These addons were a
While I found similar question I didn't find an answer to my problem When I try to rename the directory from FOO to foo via git mv FOO foo I get fatal: renaming 'FOO' failed: Invalid argument OK. So
I am really frustated about using git's submodule feature. Either I still don't get it right or it just don't work as I am expecting this. Following project situation is given: Project | .git | projsr
I've read many caveats with using git submodules. In essense, I have my personal repository. And I would like to import another actively-maintained repository that I could add as a framework to the or