GIT SET URL avec nom d'utilisateur et mot de passe
git remote set-url origin https://username:[email protected]/group/project.git
Thoughtful Trout
git remote set-url origin https://username:[email protected]/group/project.git
# add remote URL with out user name or password
git remote add origin https://gitlab.example.com/group1/project1.git
# if not able to change origin url use the below
git remote set-url origin https://gitlab.example.com/group1/project1.git
# it will prompt for credentials on first login and should not afterwards.
# store option stores credentials same in plain text in ~/.git-credentials
git config credential.helper store
# list all the settings
git config --list