Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Created November 16, 2011 19:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbernar1/1371129 to your computer and use it in GitHub Desktop.
Save dbernar1/1371129 to your computer and use it in GitHub Desktop.
Checking out WordPress 3.2.1 as a git submodule
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-black
Copy link

[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

@dbernar1
Copy link
Author

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