GitHub: invalid username or password

After enabling Two Factor Authentication (2FA), you may see something like this when attempting to use git clone, git fetch, git pull or git push: $ git push origin master Username for ‘https://github.com’: your_user_name Password for ‘https://your_user_name@github.com’: remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/your_user_name/repo_name.git/’ Why this is happening From the GitHub Help … Read more

Import existing source code to GitHub

If you’ve got local source code you want to add to a new remote new git repository without ‘cloning’ the remote first, do the following (I often do this – you create your remote empty repository in bitbucket/github, then push up your source) Create the remote repository, and get the URL such as git@github.com:/youruser/somename.git or … Read more

Why is a git ‘pull request’ not called a ‘push request’?

If you have a code change in your repository, and want to move it to a target repository, then: “Push” is you forcing the changes being present in the target repository (git push). “Pull” is the target repository grabbing your changes to be present there (git pull from the other repo). A “pull request” is … Read more

Remote origin already exists on ‘git push’ to a new repository

You are getting this error because “origin” is not available. “origin” is a convention not part of the command. “origin” is the local name of the remote repository. For example you could also write: git remote add myorigin git@github.com:myname/oldrep.git git remote add testtest git@github.com:myname/oldrep.git See the manual: http://www.kernel.org/pub/software/scm/git/docs/git-remote.html To remove a remote repository you enter: … Read more

How to state in requirements.txt a direct github source

Normally your requirements.txt file would look something like this: package-one==1.9.4 package-two==3.7.1 package-three==1.0.1 … To specify a Github repo, you do not need the package-name== convention. The examples below update package-two using a GitHub repo. The text between @ and # denotes the specifics of the package. Specify commit hash (41b95ec in the context of updated … Read more

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