๊ธฐํƒ€

git : ์ธ์ฆ์„ ์œ„ํ•œ ๊นƒ ํ† ํฐ (git Token) ์ƒ์„ฑํ•˜๊ธฐ

PYT 2021. 8. 14. 11:46
๋ฐ˜์‘ํ˜•

 

1. ์ž์‹ ์˜ ๊นƒํ—ˆ๋ธŒ ๊ณ„์ •์— ๋กœ๊ทธ์ธํ•œ ๋’ค, Settings > Developer settings > Personal access tokens ๋กœ ๋“ค์–ด๊ฐ„๋‹ค.

 

2. Generate new token์„ ํด๋ฆญํ•œ๋‹ค.

 

 

3. Note์— ์‚ฌ์šฉ๋ชฉ์ ์— ๋Œ€ํ•ด ๊ฐ„๋‹จํžˆ ์ ๋Š”๋‹ค. ๋‚˜๋Š” ํ˜„์žฌ ์ง„ํ–‰์ค‘์ธ ํ”„๋กœ์ ํŠธ ์ด๋ฆ„๊ณผ ๋ฐœ๊ธ‰๋‚ ์งœ๋ฅผ ํ•จ๊ป˜ ์ ์–ด์คฌ๋‹ค.
   Expiration ์€ ์ด ํ† ํฐ์„ ๋ฐœ๊ธ‰ ํ›„ ํŒŒ๊ธฐํ•  ๊ธฐํ•œ์— ๋Œ€ํ•ด ์„ค์ •ํ•˜๋Š” ๊ณณ์ด๋‹ค.

 

 

4. Select scpoes๋Š” ๋ฐœ๊ธ‰ํ•˜๋Š” ํ† ํฐ์— ๋Œ€ํ•œ ๊ถŒํ•œ์„ ์„ค์ •ํ•ด ์ฃผ๋Š” ๊ณณ์ด๋‹ค.

   repo์™€ read:repo hook, gist์— ์ฒดํฌ ํ›„ ํ•˜๋‹จ์˜ Generate Token์„ ํ†ตํ•ด ํ† ํฐ์„ ๋ฐœ๊ธ‰ํ•œ๋‹ค.
   (commandline์—์„œ ์ ‘๊ทผ์„ ํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด repo์— ์ฒดํฌํ•˜๋ฉด ๋œ๋‹ค.)

 

 

5. ๋ฐœ๊ธ‰๋ฐ›์€ token์˜ copy๋ฒ„ํŠผ์„ ํด๋ฆญํ•ด ์ธ์ฆ์ด ํ•„์š”ํ•œ ๊ณณ์— ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

 

Creating a personal access token - GitHub Docs

Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line. If you want to use a PAT to access resources owned by an organization that uses SAML SSO, you must authorize the

docs.github.com

 

๋ฐ˜์‘ํ˜•