English

Permanently authenticate with a Git repository

This post shows how to permanently authenticate with a Git repository, so you don’t need to type credentials when pushing to a remote.

Enable the credential storing:

git config --global credential.helper store

Then, attempt to push changes (if though everything is up-to-date) so the credentials are stored:

git push https://github.com/<your_username>/<your_repo>.git

Finally, provide the username and password/token when prompted.

For now on, the next time you push any changes you won’t be prompted to supply your credentials.

Hope it helps. Cya!

References

bgasparotto

Recent Posts

Python function decorator

This guide will show you how to create a Python function decorator with a few…

2 years ago

Got permission denied while trying to connect to the Docker daemon socket

This guide will show you how to fix the error Got permission denied while trying…

2 years ago

Python virtual environment on Intellij IDEA

This guide will show you how to create a Python virtual environment on Intellij IDEA…

2 years ago

Find and kill processes on Linux and Mac by port number

This tutorial will quickly show you how to to find and kill processes on Linux,…

2 years ago

Python: Relocation R_X86_64_PC32 against symbol can not be used when making a shared object Error

This guide shows a possible solution for Python error Relocation R_X86_64_PC32 against symbol can not…

2 years ago

Kubernetes useful commands

I condensed below a cheat sheet of Kubernetes useful commands. I will keep updating this…

2 years ago