How do I download a specific version of source code from android.googlesourcecode.com using Git? -
i want download source code shown in tags android.googlesourcecode
. example, want download calendar code
https://android.googlesource.com/platform/packages/apps/calendar
i want download code of android specific version tag. example,android-4.0.3_r1.1
following link
https://android.googlesource.com/platform/packages/apps/calendar/+/android-4.0.3_r1.1.
when browse code git repositories doesn't show tag's version of code. how do this?
all tags listed in calendar page under all tags. page contains android-4.0.3_r1.1
.
if clone repo , tag, find well. example:
c:\prog\git>git clone https://android.googlesource.com/platform/packages/apps/calendar cloning 'calendar'... remote: counting objects: 80, done remote: finding sources: 100% (80/80) remote: total 30504 (delta 15730), reused 30504 (delta 15730) receiving objects: 100% (30504/30504), 11.16 mib | 4.61 mib/s, done. resolving deltas: 100% (15730/15730), done. c:\prog\git>cd calendar c:\prog\git\calendar>git tag|grep 4.0.3 android-4.0.3_r1 android-4.0.3_r1.1 ...
from there, simple git checkout android-4.0.3_r1.1
allow browse sources specific tag.
Comments
Post a Comment