Skip to content

Instantly share code, notes, and snippets.

@nylen
Created March 7, 2011 05:46
Show Gist options
  • Save nylen/858130 to your computer and use it in GitHub Desktop.
Save nylen/858130 to your computer and use it in GitHub Desktop.
james@debbay:~/.vim$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
nothing to commit (working directory clean)
james@debbay:~/.vim$ mkdir bundle; cd bundle
james@debbay:~/.vim/bundle$ git submodule init git://github.com/tpope/vim-abolish.git
You need to run this command from the toplevel of the working tree.
james@debbay:~/.vim/bundle$ git clone git://github.com/tpope/vim-abolish.git
Cloning into vim-abolish...
remote: Counting objects: 37, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 37 (delta 8), reused 37 (delta 8)
Receiving objects: 100% (37/37), 12.28 KiB, done.
Resolving deltas: 100% (8/8), done.
james@debbay:~/.vim/bundle$ cd ..
james@debbay:~/.vim$ git add bundle
james@debbay:~/.vim$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: bundle/vim-abolish
#
james@debbay:~/.vim$ git commit -m "Add tpope's abolish"
[master 30c96e3] Add tpope's abolish
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 160000 bundle/vim-abolish
james@debbay:~/.vim$
@nylen
Copy link
Author

nylen commented Mar 7, 2011

Questions:

  • Why does git submodule init fail? [I was doing it wrong]
  • What kind of special treatment is the cloned repository getting (it gets committed as a file with mode 160000)?

Follow-up at https://gist.github.com/858131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment