Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to I combine two separate Git repositories?
    primarykey
    data
    text
    <p>I have cloned a <a href="http://github.com/kerspoon/emacs-starter-kit" rel="nofollow noreferrer">git repo</a> which has my emacs config files in. I would like to add <a href="http://github.com/tsgates/pylookup" rel="nofollow noreferrer">pylookup</a> in a subdirectory. What is the correct way to do this? </p> <p>Below are the options I can think of.</p> <hr> <ol> <li><p>If I clone it into <code>~/.emacs.d/pylookup/</code> and add that folder to my emacs repo, will that update properly when I do:</p> <pre><code>cd ~/.emacs.d/pylookup/ git pull cd ~/.emacs.d git commit -a -m "updates to pylookup" git push </code></pre> <p>i.e. when I pull those changes on my other machines will I have the new version of pylookup?</p></li> <li><p>Do I simply get my emacs repo to ignore <code>pylookup/*</code> and update it on every machine whenever pylookup is updated. This would get annoying if there was a few repo's and a few machines but I can live with it.</p></li> <li><p>Is there some smart tricks with <code>git submodule</code>. If so could you provide an explanation I didn't really understand the <a href="http://git.or.cz/gitwiki/GitSubmoduleTutorial" rel="nofollow noreferrer">documentation</a>. How would I pull changes for emacs and for pylookup. </p></li> <li><p>Do I go with answer 2 but make a script to update all sub-repos. If I did that I could run that once on each machine every time pylookup changed. </p></li> </ol> <hr> <p>Couple of possible related posts. </p> <ul> <li><a href="https://stackoverflow.com/questions/277029/combining-multiple-git-repositories">Combining multiple git repositories</a></li> <li><a href="https://stackoverflow.com/questions/1404232/create-a-git-repository-that-contains-another-git-repository">Create a git repository that contains another git repository</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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