Sirat Binte Siddique
Sirat Binte Siddique

Reputation: 453

bit-bucket - download file for specific commit

I can get the project through git clone command, but is there any way where i get my file for my previous-specific commit or can pull my file for previous-specific commit. please , suggest me !

Upvotes: 1

Views: 1477

Answers (1)

VonC
VonC

Reputation: 1324653

The documentation mentions

https://bitbucket.org/api/1.0/repositories/{accountname}/{repo_slug}/raw/{revision}/{path}

For instance (jespern/django-piston/raw/tip/piston/utils.py):

curl https://api.bitbucket.org/1.0/repositories/jespern/django-piston/raw/tip/piston/utils.py

If you want a different {revision}, like

Upvotes: 2

Related Questions