github
How to release a build artifact asset on GitHub with a script?
Update 2022: The official GitHub CLI comes with gh release upload Upload asset files to a GitHub Release. You can create the release first with gh release create Upload all tarballs in a directory as release assets $ gh release create v1.2.3 ./dist/*.tgz Upload a release asset with a display label $ gh release create … Read more
Add binary distribution to github’s download link
On Dec 11, 2012 “Upload Releases” functionality aka “Downloads” was deprecated. https://github.com/blog/1302-goodbye-uploads Update: On July 2, 2013 GitHub team announced a new “Releases” feature as a replacement for “Downloads” https://github.com/blog/1547-release-your-software
Issues with pushing large files through Git
It is possible that you are pushing several commits, one of them including a large file, and another more recent one removing that file. 2020-2022: Use git filter-repo (python-based, to be installed first) And use some content-based filtering: If you want to filter out all files bigger than a certain size, you can use –strip-blobs-bigger-than … Read more
GitHub – HTTPS access
As you did saw yourself in GitHub support, Scott Schacon himself suggested: So I guess your .netrc is incorrect or something? Try removing the info from your .netrc and cloning first (since it’s a public repo). If it isn’t a GitHub server issue, it could be your firewall. And/or your proxy (git config –global http.proxy … Read more
Including js from raw.github.com
You can try using https://rawgit.com/ service. Just replace raw.github.com with rawgit.com UPDATE The Rawgit service (former Rawgithub) has been shutdown. RawGit has reached the end of its useful life October 8, 2018 GitHub repositories that served content through RawGit within the last month will continue to be served until at least October of 2019. URLs … Read more
git clone hangs forever on github
GitHub offers a few different ways to connect to the remote repo. I am behind an onerous firewall. All methods also hang except using http (not https). For example, the JavaHamcrest project offers (anonymously): https://github.com/hamcrest/JavaHamcrest.git git@github.com:hamcrest/JavaHamcrest.git git://github.com/hamcrest/JavaHamcrest.git You may also try: http://github.com/hamcrest/JavaHamcrest.git Finally, prefix your UNIX command with GIT_TRACE=1 and GIT_CURL_VERBOSE=1, and use Git option … Read more
Github API – create branch?
The V3 API mentions branches in its reference page The ref in the URL must be formatted as heads/branch, not just branch. For example, the call to get the data for a branch named sc/featureA would be: GET /repos/:user/:repo/git/refs/heads/sc/featureA Create a Reference POST /repos/:user/:repo/git/refs Parameters ref String of the name of the fully qualified reference … Read more
How can I specify a gem to pull from a private github repository?
The best way I’ve found to deploy a gem pulled from a private repo is to use GitHub’s OAuth access. To do so: Create a GitHub user with access to the repo in question (best for teams – if you’re okay exposing your personal access tokens, you can simply use your own account). Create an … Read more