Note that there are some explanatory texts on larger screens.

plurals
  1. POGit add Folder with Existing Git Repository
    text
    copied!<p>I am making a git repository for my MacVim installation. Some of the plugins in my repository have their own .git folders and repo. The problem is... when I try to add one of these folders to my main repository, it does nothing. </p> <p>My guess:</p> <p>I can't add the folder because it is a git repo on it's own. I must add as a submodule or remove the .git folder.</p> <p>How do I add my sub repos as a submodule?</p> <pre><code>bryan-mini:.vim bsaltzman$ git status # On branch master # Changes not staged for commit: # (use "git add &lt;file&gt;..." to update what will be committed) # (use "git checkout -- &lt;file&gt;..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: bundle/YouCompleteMe (modified content) # modified: bundle/nerdtree (modified content) # modified: bundle/ultisnips (modified content) # no changes added to commit (use "git add" and/or "git commit -a") // This bryan-mini:.vim bsaltzman$ git add bundle/YouCompleteMe/ // OR THIS bryan-mini:.vim bsaltzman$ git submodule add bundle/YouCompleteMe/ repo URL: 'bundle/YouCompleteMe/' must be absolute or begin with ./|../ bryan-mini:.vim bsaltzman$ git status # On branch master # Changes not staged for commit: # (use "git add &lt;file&gt;..." to update what will be committed) # (use "git checkout -- &lt;file&gt;..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: bundle/YouCompleteMe (modified content) # modified: bundle/nerdtree (modified content) # modified: bundle/ultisnips (modified content) # no changes added to commit (use "git add" and/or "git commit -a") </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload