๊ธฐํƒ€

SourceTree ์†Œ์ŠคํŠธ๋ฆฌ : Please use a personal access token instead, ๋น„๋ฐ€๋ฒˆํ˜ธ ๋Œ€์‹  ํ† ํฐ์œผ๋กœ ์ธ์ฆ ๋ณ€๊ฒฝํ•˜๊ธฐ

PYT 2021. 8. 14. 18:07
๋ฐ˜์‘ํ˜•

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/ucompanion/connect-plus.git/': The requested URL returned error: 403

 

์†Œ์ŠคํŠธ๋ฆฌ์—์„œ pull์„ ๋ฐ›์œผ๋ ค๊ณ  ํ•˜๋‹ˆ, ์œ„์™€ ๊ฐ™์€ ํ™”๋ฉด์ด ๋–ด๋‹ค.

๋น„๋ฐ€๋ฒˆํ˜ธ ๋Œ€์‹  Personal access Token์œผ๋กœ ์ธ์ฆ๋ฐฉ๋ฒ•์„ ๋ณ€๊ฒฝํ•˜๋ผ๋Š” ๊ฒƒ์ด๋‹ค.


1. github์—์„œ Personal access Token์„ ๋ฐœ๊ธ‰๋ฐ›๋Š”๋‹ค.

 

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

1. ์ž์‹ ์˜ ๊นƒํ—ˆ๋ธŒ ๊ณ„์ •์— ๋กœ๊ทธ์ธํ•œ ๋’ค, Settings > Developer settings > Personal access tokens ๋กœ ๋“ค์–ด๊ฐ„๋‹ค. 2. Generate new token์„ ํด๋ฆญํ•œ๋‹ค. 3. Note์— ์‚ฌ์šฉ๋ชฉ์ ์— ๋Œ€ํ•ด ๊ฐ„๋‹จํžˆ ์ ๋Š”๋‹ค. ๋‚˜๋Š” ํ˜„์žฌ ์ง„..

pyoungt.tistory.com

 

2. ์†Œ์ŠคํŠธ๋ฆฌ > ์„ค์ • > ์›๊ฒฉ ์—์„œ ํ˜„์žฌ ๋กœ๊ทธ์ธ ๋œ ๊ณ„์ •์„ ์„ ํƒํ•œ ๋’ค ํŽธ์ง‘์„ ๋ˆ„๋ฅธ๋‹ค.

 

3. URL/๊ฒฝ๋กœ๋ฅผ  https://<USERNAME>:<TOKEN>@<GIT_URL>.git ์™€ ๊ฐ™์ด ์ˆ˜์ •ํ•œ๋‹ค.

4. ํ™•์ธ ๋ˆ„๋ฅด๋ฉด ๋!

 


์ถ”๊ฐ€๋กœ token๊ฐ’์ด ๋…ธ์ถœ๋˜์ง€ ์•Š๊ฒŒ ํ•˜๋ ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ ํ•˜๋ฉด ๋œ๋‹ค.

 

# ์œ„์™€ ๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ ํ•ด๋„ ๋˜์ง€๋งŒ token์ด ๋…ธ์ถœ๋จ

git clone https://์•„์ด๋””:ํ† ํฐ๊ฐ’@github.com/๋ ˆํŒŒ์ง€ํ† ๋ฆฌ์ฃผ์†Œ.git

 

# local ๊ณ„์ • ์ดˆ๊ธฐํ™”

git config --global --unset credential.helper

git config --system --unset credential.helper ( ์œ„ global ๋ฐฉ๋ฒ•์œผ๋กœ ์•ˆ๋ ์‹œ ์ „์ฒด ์ดˆ๊ธฐํ™” )

 

# local์— cache ( store์‹œ error )

git config --global credential.helper cache

 

# git pull

username: ์•„์ด๋””

password: token ๊ฐ’ ์ž…๋ ฅ

๋ฐ˜์‘ํ˜•