Created
November 16, 2011 19:48
-
-
Save dbernar1/1371129 to your computer and use it in GitHub Desktop.
Checking out WordPress 3.2.1 as a git submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule add git://github.com/markjaquith/WordPress.git core | |
cd core | |
git checkout 3.2.1 | |
cd .. | |
git add . -A | |
git commit -m 'Checked out core at 3.2.1' |
Cbreak was not happy about this setup even when I described what it will be used for specifically. His comments were:
cbreak | yes. Beware of detached heads
cbreak | beware of submodule merge conflicts
+jast | dabaR: automatic message the 'gitglossary' manpage can be found at http://jk.gs/gitglossary
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[20:34] dabaR: cbreak: you're 100% sure?
[20:34] cbreak: dabaR: yes... just look at the documentation of tree objects
[20:35] cbreak: dabaR: submodules are always bound to an exact commit
[20:35] cbreak: you can of course check out a branch or tag, but once you try to record the commit in the submodule in the parent, all it will record is the commit