Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys
OR
git remote add origin https://{username}:{password}@github.com/{username}/project.git
Update: If you get “fatal: remote origin already exists.” then you have to use set-url:
git remote set-url origin https://{username}:{password}@github.com/{username}/project.git
Related Posts:
- There is no tracking information for the current branch
- Why I always Got Error “Push to origin/master was rejected”?
- Git push requires username and password
- How do I force git pull to overwrite everything on every pull?
- 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
- Git push results in “Authentication Failed”
- 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
- Git push results in “Authentication Failed”
- Download single files from GitHub
- How do I pull my project from github?
- Ignoring directories in Git repositories on Windows
- Difference between Git and GitHub
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- Why does git say “Pull is not possible because you have unmerged files”?
- How to find my GitHub username so that I can be found via the URL?
- github website publish cannot publish unborn HEAD
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- Why does git say “Pull is not possible because you have unmerged files”?
- 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?
- Git push results in “Authentication Failed”
- 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
- How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?
- Download a single folder or directory from a GitHub repo
- Files not updating using ‘git pull’
- 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/
- Not a valid object name: ‘master’
- git checkout tag, git pull fails in branch
- How to remove a directory from git repository?
- Why does git say “Pull is not possible because you have unmerged files”?
- Git: Installing Git in PATH with GitHub client for Windows
- ! [rejected] master -> master (fetch first)
- How to git add a whole folder
- How to change folder with git bash?
- 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
- Does Git Add have a verbose switch
- 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?
- Is it possible to pull just one file in Git?
- Git lfs – “this exceeds GitHub’s file size limit of 100.00 MB”
- Github Windows ‘Failed to sync this branch’
- 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
- Git pull – Please move or remove them before you can merge
- How to `git pull` while ignoring local changes?
- Git says “Automatic merge failed”, what does it mean?
- Change the location of the ~ directory in a Windows install of Git Bash
- 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
- How do I change the default location for Git Bash on Windows?
- 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 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 rename a local Git branch?
- Untrack files from git temporarily
- How to change the URI (URL) for a remote Git repository?
- What would I use git-worktree for?
- Git error when trying to push — pre-receive hook declined
- What’s the difference between git switch and git checkout
- Your branch is ahead of ‘origin/master’ by 3 commits
- git checkout master error: the following untracked working tree files would be overwritten by checkout
- Resetting remote to a certain commit
- Git checkout – switching back to HEAD
- Workflow for working with git and WordPress