Are Git forks actually Git clones?

Fork, in the GitHub context, doesn’t extend Git. It only allows clone on the server side. When you clone a GitHub repository on your local workstation, you cannot contribute back to the upstream repository unless you are explicitly declared as “contributor”. That’s because your clone is a separate instance of that project. If you want … Read more

git error: failed to push some refs to remote

(Note: starting Oct. 2020, any new repository is created with the default branch main, not master. And you can rename existing repository default branch from master to main. The rest of this 2014 answer has been updated to use “main“) (The following assumes github.com itself is not down, as eri0o points out in the comments: … Read more

Calculate RSA key fingerprint

Run the following command to retrieve the SHA256 fingerprint of your SSH key (-l means “list” instead of create a new key, -f means “filename”): $ ssh-keygen -lf /path/to/ssh/key So for example, on my machine the command I ran was (using RSA public key): $ ssh-keygen -lf ~/.ssh/id_rsa.pub 2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff /Users/username/.ssh/id_rsa.pub (RSA) To get the … Read more

Message “Support for password authentication was removed. Please use a personal access token instead.”

From August 13, 2021, GitHub is no longer accepting account passwords when authenticating Git operations. You need to add a PAT (Personal Access Token) instead, and you can follow the below method to add a PAT on your system. Create Personal Access Token on GitHub From your GitHub account, go to Settings => Developer Settings … Read more

GitHub relative link in Markdown file

Update 30th, January 2013, 16 months later: GitHub Blog Post Relative links in markup files: Starting today, GitHub supports relative links in markup files. Now you can link directly between different documentation files, whether you view the documentation on GitHub itself, or locally, using a different markup renderer. You want examples of link definitions and … Read more

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