Find a commit on GitHub given the commit hash

A URL of the form https://github.com/<owner>/<project>/commit/<hash> will show you the changes introduced in that commit. For example here’s a recent bugfix I made to one of my projects on GitHub: https://github.com/jerith666/git-graph/commit/35e32b6a00dec02ae7d7c45c6b7106779a124685 You can also shorten the hash to any unique prefix, like so: https://github.com/jerith666/git-graph/commit/35e32b I know you just asked about GitHub, but for completeness: If … Read more

SSL certificate rejected trying to access GitHub over HTTPS behind firewall

The problem is that you do not have any of Certification Authority certificates installed on your system. And these certs cannot be installed with cygwin’s setup.exe. Update: Install Net/ca-certificates package in cygwin (thanks dirkjot) There are two solutions: Actually install root certificates. Curl guys extracted for you certificates from Mozilla. cacert.pem file is what you … Read more

How do I rename a repository on GitHub?

If you are the only person working on the project, it’s not a big problem, because you only have to do #2. Let’s say your username is someuser and your project is called someproject. Then your project’s URL will be1 git@github.com:someuser/someproject.git If you rename your project, it will change the someproject part of the URL, … Read more

How to change my Git username in terminal?

In your terminal, navigate to the repo you want to make the changes in. Execute git config –list to check current username & email in your local repo. Change username & email as desired. Make it a global change or specific to the local repo: git config [–global] user.name “Full Name” git config [–global] user.email … Read more

How do you attach a new pull request to an existing issue on github?

Adding a pull request to an existing upstream issue is easy assuming you forked using the normal github means. Simply reference the issue in your commit message using any of the supported keywords: close closes closed fix fixes fixed resolve resolves resolved For example: “this commit fixes #116” The text referencing the issue does not … Read more

How can I embed a YouTube video on GitHub wiki pages?

It’s not possible to embed videos directly, but you can put an image which links to a YouTube video: [![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE) For more information about Markdown look at this Markdown cheatsheet on GitHub. For more information about Youtube image links look this question.

Remove folder and its contents from git/GitHub’s history

WARNING: git filter-branch is no longer officially recommended If you are here to copy-paste code: This is an example which removes node_modules from history git filter-branch –tree-filter “rm -rf node_modules” –prune-empty HEAD git for-each-ref –format=”%(refname)” refs/original/ | xargs -n 1 git update-ref -d echo node_modules/ >> .gitignore git add .gitignore git commit -m ‘Removing node_modules … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)