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 remote repository via HTTPS. Use your username as usual.
You may also need to update the origin for your repository if set to https:
git remote -v git remote remove origin git remote add origin [email protected]:user/repo.git
Related Posts:
- Git push results in “Authentication Failed”
- Git push results in “Authentication Failed”
- How can I switch to another branch in git?
- GitHub: Permission denied (publickey). fatal: Could not read from remote repository
- git – remote add origin vs remote set-url origin
- GitHub Error Message – Permission denied (publickey)
- Updating a local repository with changes from a GitHub repository
- github changes not staged for commit
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- Download single files from GitHub
- How do I pull my project from github?
- Difference between Git and GitHub
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How to find my GitHub username so that I can be found via the URL?
- github website publish cannot publish unborn HEAD
- fatal: The current branch master has no upstream branch
- Create a tag in a GitHub repository
- Git: Could not resolve host github.com error while cloning remote repository in git
- How to pull a specific branch from Github
- GitHub: invalid username or password
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- How do I update or sync a forked repository on GitHub?
- Can I share my private GitHub repository by link?
- There is no tracking information for the current branch
- Meaning of the GitHub message: push declined due to email privacy restrictions
- How to rename a directory/folder on GitHub website?
- “*** Please tell me who you are.” when using SSH key
- Download a single folder or directory from a GitHub repo
- Pull request vs Merge request
- Clone A Private Repository (Github)
- How do I rename a repository on GitHub?
- error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/
- Git: Installing Git in PATH with GitHub client for Windows
- ! [rejected] master -> master (fetch first)
- How to git add a whole folder
- My new Github page isn’t showing up
- How can I remove a commit on GitHub?
- Unity Collaborate vs GitHub
- “fatal: HttpRequestException encountered.” Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
- SourceTree keeps asking for Github password
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- How to change the license for a project at Github?
- Why I always Got Error “Push to origin/master was rejected”?
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- Github Windows ‘Failed to sync this branch’
- fatal: could not read Username for ‘https://github.com’: No such file or directory
- Github Authentication Failed – … GitHub does not provide shell access
- How to update a branch with master on GitHub
- How do I pull files from remote without overwriting local files?
- Git keeps prompting me for a password
- git push origin master does not work
- Can I arrange repositories into folders on Github?
- Delete forked repo from GitHub
- Found a swap file by the name
- How to discard local changes and pull latest from GitHub repository
- Could not create work tree dir ‘example.com’.: Permission denied
- Differences between Commit, Commit and Push, Commit and Sync
- How can I delete all Git branches which have been merged?
- key_load_public: invalid format
- Git push hangs when pushing to Github?
- Git: Where exactly is the “working directory”?
- Create empty branch on GitHub
- Import existing source code to GitHub
- Git push requires username and password
- GIT and Development URL’s point to production
- Pull latest stable release via git [closed]
- Is it possible to checkout a beta version of WordPress via github?
- how can I create a WP offline environment before releasing the websites? [closed]
- How do I delete a Git branch locally and remotely?
- Difference between “git add -A” and “git add .”
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How do I remove a submodule?
- Ignoring directories in Git repositories on Windows
- How can I merge multiple commits onto another branch as a single squashed commit?
- How do you stash an untracked file?
- Filename too long in Git for Windows
- What is the difference between git rm –cached and git reset
? - What does git rev-parse do?
- git – pulling from specific branch
- Why do I have to “git push –set-upstream origin
“? - Stash just a single file
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- What is the difference between `git merge` and `git merge –no-ff`?
- git status (nothing to commit, working directory clean), however with changes commited
- The following untracked working tree files would be overwritten by merge, but I don’t care
- Git how to clone with SSH key, username
- How to permanently remove few commits from remote branch
- Is there a git-merge –dry-run option?
- Add all files to a commit except a single file?
- git pull remote branch cannot find remote ref
- How do I change the default location for Git Bash on Windows?
- Does running git init twice initialize a repository or reinitialize an existing repo?
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- WordPress with Git
- Multiple copies of the same website: how to organize code/architecture?
- Version control with a team of non-developers
- Git Hosting for WordPress SVN Plugin Repository [closed]
- Questions about Git and WordPress [duplicate]
- Wordpres core-update theme renames theme folder name