Hacker News new | past | comments | ask | show | jobs | submit login

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



Or what you would probably do using libgit(2?) :)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: