Download specific version from github






















Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to get certain commit from GitHub project Ask Question. Asked 10 years, 1 month ago. Active 1 year, 3 months ago. Viewed k times. Can someone please tell me how to do this? BTW, im on a mac. Don't know if that makes any difference. Add a comment. Active Oldest Votes.

First, clone the repository using git, e. Next, change into the newly cloned repository: cd facebook-ios-sdk Mark Longair Mark Longair k 68 68 gold badges silver badges bronze badges.

At this point you can also git export if you just want the files. When I do git checkout bbcaf3ee94a0b5, this gives an error: fatal: reference is not a tree: bbcaf3ee94a0b5 — ttb. Xeoncross "git: 'export' is not a git command. It downloads the history of active branches.

It's a very subtle difference in git. I hope it helps you guys. Sivan Sivan 2, 1 1 gold badge 15 15 silver badges 28 28 bronze badges. This is the only way to recover "lost commits" which are commits that github does have a history of, but were erased from the "official" git timeline.

Using this, you can get a zip snapshot of a commit that was rebased into oblivion, push that commit to a new branch, fetch that branch into an existing repo, and cherry-pick it back into existence. Zeki 4, 1 1 gold badge 16 16 silver badges 27 27 bronze badges. ChocoDeveloper ChocoDeveloper This doesn't need to be tagged with php or composer-php, does it? Add a comment. Active Oldest Votes. Here's more info on that: Having trouble downloading Git archive tarballs from Private Repo. Zeki Zeki 4, 1 1 gold badge 16 16 silver badges 27 27 bronze badges.

Wasn't expecting that cool way of doing it. Was expecting git commands ; — HenchHacker. Check this link as well - Might be looking for this instead stackoverflow. You can use the short sha too! Any way to avoid this? The new-button doesn't do specific versions - use the way Zeki described — pal. This worked for me in Feb It did download the repo with changes at the timestamp of the selected commit.

Excluding files from git archive exports using gitattributes. Git - git-archive Documentation. Sorry, something went wrong. As a general rule, if you have a url that works, you can replace "master" with the specific sha you want. How to download a project subdirectory from GitHub Example. Skip to content. Star 1.

New issue. I found that sometime it isn't straightforward to find an old version's full installer for on Git for Windows' release page. For example recently i tried to download v2. However the latest one on the release page is v2. Had to click Next a few times and open each 2. Later I found that on Npackd it's easier to find those full installers.

Just search Git , and find Git for Windows 64 bit installers and 32 bit installers. All download links point to Git for Windows ' official releases on GitHub. Nice eh : For example Git for Windows 64 bit 2. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams?



0コメント

  • 1000 / 1000