Username and password in command for git push

前端 未结 6 369
不思量自难忘°
不思量自难忘° 2020-12-04 07:55

It\'s possible to clone down a git repository, specifying username and password in the command. Example:

git clone https://username:password@myrepository.biz/f

6条回答
  •  星月不相逢
    2020-12-04 08:57

    For anyone having issues with passwords with special chars just omit the password and it will prompt you for it:

    git push https://YOUR_GIT_USERNAME@github.com/YOUR_GIT_USERNAME/yourGitFileName.git
    

提交回复
热议问题