Common Mistakes in using GitHub


1 min read

Github is a vital toolbox for anyone who called themselves Data Scientist. There are 10 Git commands that can keep you productive to share your data analysis source code with other team members.

  1. codebranch

  2. checkout

  3. add

  4. commit

  5. pull

  6. push

  7. status

  8. fetch

  9. log

  10. merge

Some of the mistakes when I encounter using Git and GitHub for the first time

Git push requires username and password

You cloned a git repository from your Github account to your PC. When you try to push to or pull from Github using your PC, it requires username and password every time.

Using SSH

A common mistake is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking "Clone or download", then clicking the "Use SSH" button above the URL field and updating the URL of your origin remote like this:

git remote set-url origin


If you're cloning GitHub repositories using HTTPS, you can use a credential helper to tell Git to remember your GitHub username and password every time it talks to GitHub.

`$ git config credential.helper store`
`$ git push`

Username for '': <USERNAME>`
Password for '': <PASSWORD>`