Don’t enter username and password every time for GitHub activity in ubuntu.

If we use GitHub on command prompt through the HTTPS then every time have to use username and password. It is too irritating for us. This the solution to this thing.

Just follow these steps.

  1. Open terminal.
  2. Run this on the terminal.
$ cd ~
$ sudo nano .netrc

3. Paste this content there.

machine github.com
login YOUR_GITHUB_USERNAME
password YOUR_GITHUB_PASSWORD

4. Save and exit.

5. Close the terminal.

Now you can do any activity of GitHub on command prompt without typing the username and password.

That’s it for this time! I hope you enjoyed this post. As always, I welcome questions, notes, comments and requests for posts on topics you’d like to read. See you next time! Happy Coding !!!!!

--

--

Ankit Kumar Rajpoot

I’m a MERN Developer. ( Redux | AWS | Python ) I enjoy taking on new things, building skills, and sharing what I’ve learned.