Skip to content

Instantly share code, notes, and snippets.

@kyzh
Created April 24, 2013 14:22
Show Gist options
  • Save kyzh/5452491 to your computer and use it in GitHub Desktop.
Save kyzh/5452491 to your computer and use it in GitHub Desktop.
anthracite git clone with edited submodule (swapped git for https)
[flo@WKS tmp]$ cd anthracite/
[flo@WKS anthracite]$ find . -name .gitmodules
./assets/bootstrap-datetimepicker/.gitmodules
./.gitmodules
[flo@WKS anthracite]$ cat .gitmodules
[submodule "assets/timeserieswidget"]
path = assets/timeserieswidget
url = https://github.com/Dieterbe/timeserieswidget.git
[flo@WKS anthracite]$ find . -name .gitmodules|xargs cat
[submodule "bootstrap"]
path = bootstrap
url = git://github.com/twitter/bootstrap.git
[submodule "assets/timeserieswidget"]
path = assets/timeserieswidget
url = https://github.com/Dieterbe/timeserieswidget.git
[flo@WKS anthracite]$ find . -name .gitmodules |xargs sed -i 's/git:\/\//https:\/\//g'
[flo@WKS anthracite]$ git submodule update --init
Submodule 'assets/timeserieswidget' (https://github.com/Dieterbe/timeserieswidget.git) registered for path 'assets/timeserieswidget'
Cloning into 'assets/timeserieswidget'...
remote: Counting objects: 496, done.
remote: Compressing objects: 100% (182/182), done.
remote: Total 496 (delta 323), reused 485 (delta 314)
Receiving objects: 100% (496/496), 1005.97 KiB | 561 KiB/s, done.
Resolving deltas: 100% (323/323), done.
Submodule path 'assets/timeserieswidget': checked out '637b02a5bd69b1905d951b2b224b5183df917a71'
[flo@WKS anthracite]$ cd assets/timeserieswidget
[flo@WKS timeserieswidget]$ find . -name .gitmodules |xargs cat
[submodule "rickshaw"]
path = rickshaw
url = git://github.com/shutterstock/rickshaw.git
[submodule "flot"]
path = flot
url = git://github.com/flot/flot.git
[submodule "timezone-js"]
path = timezone-js
url = git://github.com/mde/timezone-js.git
[flo@WKS timeserieswidget]$ find . -name .gitmodules |xargs sed -i 's/git:\/\//https:\/\//g'
[flo@WKS timeserieswidget]$ git submodule update --init
Submodule 'flot' (https://github.com/flot/flot.git) registered for path 'flot'
Submodule 'rickshaw' (https://github.com/shutterstock/rickshaw.git) registered for path 'rickshaw'
Submodule 'timezone-js' (https://github.com/mde/timezone-js.git) registered for path 'timezone-js'
Cloning into 'flot'...
remote: Counting objects: 3017, done.
remote: Compressing objects: 100% (1291/1291), done.
remote: Total 3017 (delta 1828), reused 2759 (delta 1606)
Receiving objects: 100% (3017/3017), 1.58 MiB | 1.19 MiB/s, done.
Resolving deltas: 100% (1828/1828), done.
Submodule path 'flot': checked out '13c71fa03c972a69388c0f734d984705300fb59f'
Cloning into 'rickshaw'...
remote: Counting objects: 1589, done.
remote: Compressing objects: 100% (972/972), done.
remote: Total 1589 (delta 825), reused 1337 (delta 602)
Receiving objects: 100% (1589/1589), 1.43 MiB | 590 KiB/s, done.
Resolving deltas: 100% (825/825), done.
Submodule path 'rickshaw': checked out 'b37a52f67c937f55a18fb6a521dc0ae49003bd13'
Cloning into 'timezone-js'...
remote: Counting objects: 611, done.
remote: Compressing objects: 100% (308/308), done.
remote: Total 611 (delta 308), reused 577 (delta 291)
Receiving objects: 100% (611/611), 120.40 KiB | 186 KiB/s, done.
Resolving deltas: 100% (308/308), done.
Submodule path 'timezone-js': checked out '915b3f3603cb66e8a3cfa0a96665b966105287a7'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment