3 ms·
Or the longer way, if you're on a version of git without the -b option: git init ./repo cd ./repo git remote add origin $uri git fetch origin $
by junon 4y ago
Or the longer way, if you're on a version of git without the -b option:
git init ./repo
cd ./repo
git remote add origin $uri
git fetch origin $tag
git checkout FETCH_HEAD
- lillecarl 4y agoOr what you would probably do using libgit(2?) :)