Post

Git cookbook

Git cookbook

Git clone remote repo at specific branch

1
git clone --branch <branch_name> <remote_address> <local_path>

Examples ↓

1
2
3
4
git clone \
    --branch "3.10" \
    https://github.com/python/cpython.git \
    ~/sources/external/python/cpython
This post is licensed under CC BY 4.0 by the author.