Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git clone specific tag
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
@stratigos

This comment has been minimized.

Copy link

@stratigos stratigos commented Jun 10, 2014

simple, thanks

@nivance

This comment has been minimized.

Copy link

@nivance nivance commented Jun 17, 2015

git checkout -b branch_name tag_name

@owen-rpx

This comment has been minimized.

Copy link

@owen-rpx owen-rpx commented Aug 2, 2017

thanks ,very helpful.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Aug 22, 2017

Thanks brother!

@dhajoshi

This comment has been minimized.

Copy link

@dhajoshi dhajoshi commented Dec 22, 2017

git clone -b tag

@kishorpawar

This comment has been minimized.

Copy link

@kishorpawar kishorpawar commented Jul 15, 2019

Can I something similar like git fetch <remote> branch:branch with clone?

like git clone <repo> -b Release-3.5.7:Release-3.5.7 <dir> which will clone from tag and create a branch with same name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment