— Clone repository with submodules automatically:
git clone --recursive [email protected]:name/repo.git
— Initialize submodules after regular cloning:
#!/usr/bin/env python | |
# This code was written by Krzysztof Kowalczyk (http://blog.kowalczyk.info) | |
# and is placed in public domain. | |
def v2fhelper(v, suff, version, weight): | |
parts = v.split(suff) | |
if 2 != len(parts): | |
return v | |
version[4] = weight |
— Clone repository with submodules automatically:
git clone --recursive [email protected]:name/repo.git
— Initialize submodules after regular cloning:
This gist has been converted to an article: https://steinbaugh.com/posts/git-private-fork.html
# I'm no longer using this approach. | |
# | |
# Instead, I encourage you to check out my transformer package. | |
# https://steinbaugh.com/transformer/ | |
# https://github.com/steinbaugh/transformer/ | |
# | |
# - M | |