Create file ~/.netrc in the Linux user's home-directory.
~/.netrc
machine github.com login myloginname password thesecretpassword