This is a stupid question, but Iβve been looking for it for ages, and I canβt find anything, so I have to ask him.
How are you doing clonesomething gitwith a different account?
clone
git
for example, if I logged in abcdefand I want to clone something in my account 12345, how do I do this?
abcdef
12345
I remember how it was done before: git clone url -l username. Then he would ask me password, and I would print it. But that either doesn't work anymore, or my brain is messing with me!
git clone url -l username
password
Thanks for the help.
If you clone via https, you can do something like
git clone https://username@github.com/username/repository.git
A password prompt appears.
,
git clone https://username:password@github.com/username/repository.git
, .git/config bash , . , ssh.
Source: https://habr.com/ru/post/1655501/More articles:gzip: stdin: not in gzip tar format: child status returned 1 tar: error is not restored: exit now - linuxNoClassDefFoundError: org / testng / TestNG - javaHow to put text on top of node in scenekit? - iosdplyr :: failwith does not work with lme4 :: lmer, but does with lm - rPurpose of an empty list - pythonHow to send big data on cURL? - phpSimple PHP calculation using an array - arraysSharing Realm Data with WatchOS - iosHow to make a fuzzy connection with fuzzyjoin :: difference_ * in R - rHow to get all authors for the current state of git? - gitAll Articles