Delete Github commit history

Just pick the hash you want to go back to and in your clone do: git reset –hard hash# git push -f origin branch where branch is the name of the branch you want to push. VoilĂ . Be carefully with the force push. You may want to copy your working directory until you are familiar … Read more

GitHub API: using ‘repo’ scope, but still can’t see private repos

From testing: GETing /users/someusername/repos doesn’t show private repos (even if it’s the user whose oauth access token you’re using). GETing /user/repos show private repos. This isn’t documented in the GitHub API docs at present, I just found out via testing. Thanks to @ivanzuzak for suggesting to look at the endpoint.

Git always asks for my ssh-key passphrase

Like Nasreddine says, it’s because your key is encrypted with a passphrase to prevent others from reading it. The most convenient way of using passphrased keys is by using ssh-agent to start an authentication agent (which runs in the background): $ eval “$(ssh-agent)” Agent pid 44304 …and then using ssh-add to register your key with … Read more

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