How do I rename a repository on GitHub?

I wanted to rename one of my repositories on GitHub, but I got scared when a big red warning said: We will not set up any redirects from the old location You will need to update your local repositories to point to the new location Renaming may take a few minutes to complete Does anyone … Read more

Pull request vs Merge request

 Answer recommended by GitLab GitLab’s “merge request” feature is equivalent to GitHub’s “pull request” feature. Both are means of pulling changes from another branch or fork into your branch and merging the changes with your existing code. They are useful tools for code review and change management. An article from GitLab discusses the differences in naming the feature: Merge or pull requests … Read more

Download a single folder or directory from a GitHub repo

Update Apr. 2021: there are a few tools created by the community that can do this for you: Download Directory (Credits to fregante) It has also been integrated into the excellent Refined Github chrome extension as a button in the Github web UI. GitZip (Credits to Kino – see his answer here) DownGit (Credits to Minhas Kamal – see his answer here) Note: if you’re trying to download a … Read more

“*** Please tell me who you are.” when using SSH key

Rungit config –global user.email “[email protected]”git config –global user.name “Your Name” Note: You are authenticated successfully but git needs your username & email to do a commit. It is not related to authentication. Your username/email can be different from your GitHub Account. You need to run the following commands for a single time. This user.name & user.email will be set globally in ~/.gitconfig file.

How do I create a folder in a GitHub repository?

TL;DR Use / in the file name field to create folder(s), e.g. typing folder1/file1 in the file name field will create a folder folder1 and a file file1. Original answerYou cannot create an empty folder and then add files to that folder, but rather creation of a folder must happen together with adding of at least a single file. This is because git doesn’t track empty folders. … Read more

Meaning of the GitHub message: push declined due to email privacy restrictions

The remote repository has been configured to disallow you pushing a commit that would reveal your personal e-mail address. For example in GitHub you have checked the Block command line pushes that expose my email checkbox to enable this. While you can of course uncheck that setting, it will expose your private e-mail address to everyone in the … Read more

Git push results in “Authentication Failed”

If you enabled two-factor authentication in your Github account you won’t be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This can be done in the application settings of your Github account. Using this token as your password should allow you to push to your … Read more

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