Multiple Git Tokens Linux #40657
Unanswered
vmkoskin
asked this question in
Other Feature Feedback, Questions, & Ideas
Replies: 1 comment 2 replies
-
|
That shouldn't be a problem at all: That's unless you're sharing a user account, but you shouldn't be doing that anyway. 😅 As for the script, it should be able to use a token from a variable just like a hardcoded one, but without seeing the code it's impossible to say what's the problem. But as mentioned above you shouldn't need that. 🙂 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Me and my coworker both have Personal Access Tokens created and have both successfully used them. I have a shell script that clones a private git repo to a specific directory. If I run the script it requires me to use my git login/PAT to do the clone. I tried to parameterize my PAT thinking we could each just pass it as a variable in the script but it doesn't work. When I hard code my PAT it works fine. I read about using git config with git credential helper but you can only configure one user it seems. I would like to use HTTPs but I am not sure how we can either each pass our PAT when executing the script or how we can store them where if he logs in it grabs his vs mine.
Beta Was this translation helpful? Give feedback.
All reactions