How to clone a branch in git

Just write this in th cmd

git clone --branch <branchname> <remote-repo-url>

Let’s make an example with the game editor of Crystal of Time

If I want to clone the branch cotb2…

git clone --branch cotb2 https://github.com/formazione/timecrystals.git

You will find the latest version of the editor there, by the way.

clone a branch in git

Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.