What is the difference between origin and upstream on GitHub?

This should be understood in the context of GitHub forks (where you fork a GitHub repo on GitHub before cloning that fork locally). upstream generally refers to the original repo that you have forked (see also “Definition of “downstream” and “upstream”” for more on upstream term) origin is your fork: your own repo on GitHub, … Read more

Untrack files from git temporarily

git update-index should do what you want This will tell git you want to start ignoring the changes to the file git update-index –assume-unchanged path/to/file When you want to start keeping track again git update-index –no-assume-unchanged path/to/file Github Documentation: update-index

Link and execute external JavaScript file hosted on GitHub

There is a good workaround for this, now, by using jsdelivr.net. Steps: Find your link on GitHub, and click to the “Raw” version. Copy the URL. Change raw.githubusercontent.com to cdn.jsdelivr.net Insert /gh/ before your username. Remove the branch name. (Optional) Insert the version you want to link to, as @version (if you do not do … Read more

Git Push ERROR: Repository not found

Check to see if you have read-write access. The Git error message is misleading. I had a similar issue. I had been added to an existing project. I cloned it and committed a local change. I went to push and got the ERROR: Repository not found. error message. The person who added me to the … Read more

GitHub “fatal: remote origin already exists”

TL;DR you should just update the existing remote: $ git remote set-url origin git@github.com:ppreyer/first_app.git Long version: As the error message indicates, there is already a remote configured with the same name. So you can either add the new remote with a different name or update the existing one if you don’t need it: To add … Read more

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