In order to avoid having to enter our GitHub credentials every time we need to push, we need to store them in our machine. We have two options here. If we run
git config --global credential.helper cache
Git will store our credentials in memory for 15 minutes. If we want to store them on disk we need to use Keychain on Mac, or Windows Credential Manager on Windows. Either of these will encrypt our credentials. There's an option for storing GitHub credentials on plain text files, but it's not recommended.