๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

TIL/Git

[Git] Authentication failed for ~ use a personal access token instead

token ๊ธฐ๊ฐ„์ด ๋งŒ๋ฃŒ๋˜์–ด ์ƒˆ๋กญ๊ฒŒ ๋“ฑ๋กํ•ด์•ผํ•œ๋‹ค.

1. ๊นƒํ—™ ๋กœ๊ทธ์ธ

2. ํ”„๋กœํ•„ ์•„์ด์ฝ˜ ํด๋ฆญ > Settings

3. Developer Settings > Personal access tokens > Generate new token

4. Note ์ž…๋ ฅ, Expiration ์„ ํƒ, repo ์ฒดํฌ

5. ํ† ํฐ ์ƒ์„ฑ๋˜๋ฉด ๋ณต์‚ฌํ•ด์„œ ๊ธฐ๋กํ•ด๋‘๊ธฐ

ํ•œ ๋ฒˆ๋งŒ ๋ณด์—ฌ์ง„๋‹ค๊ณ  ํ•œ๋‹ค.

6. ๋ณต์‚ฌํ•œ ํ† ํฐ ์ž…๋ ฅ

git config --global user.name ‘์•„์ด๋””’
git config --global user.password ‘๋ณต์‚ฌํ•œ ํ† ํฐ’

https://wotres.tistory.com/m/entry/Github-์—๋Ÿฌ-ํ•ด๊ฒฐ๋ฒ•-Authentication-failed-for-use-a-personal-access-token-instead