Posts tagged “git”

TIL you can clone a specific branch with git.

April 5, 2022

TIL you can clone a specific branch with git.

git clone -b my-branch --single-branch git@github.com:user/myproject.git



TIL you can switch back to the previous branch by running git switch -.

November 29, 2021

TIL you can switch back to the previous branch by running git switch -.