File .gitconfig can be use to acheive the same, We can store username and password in it. To do that there are two ways. 1. Manual method Consider your linux username and home directory is navdeepd2, then create a file at below location vim /home/navdeepd2/.gitconfig Paste below content in that file. [user] email = [email protected] name = [email protected] password = yourgitpasswordhere [credential] helper = store Change the email/name/pass accordingly. At…