๊ด€๋ฆฌ ๋ฉ”๋‰ด

๐˜š๐˜ญ๐˜ฐ๐˜ธ ๐˜ฃ๐˜ถ๐˜ต ๐˜ด๐˜ต๐˜ฆ๐˜ข๐˜ฅ๐˜บ

[๊ธฐํƒ€] git: ์›๊ฒฉ ์ €์žฅ์†Œ ์—ฐ๊ฒฐ ์‹œ ํ•„์š”ํ•œ git ๋ช…๋ น์–ด ๋ณธ๋ฌธ

๊ธฐํƒ€

[๊ธฐํƒ€] git: ์›๊ฒฉ ์ €์žฅ์†Œ ์—ฐ๊ฒฐ ์‹œ ํ•„์š”ํ•œ git ๋ช…๋ น์–ด

.23 2023. 11. 13. 10:27

๋งจ๋‚  ์ฐพ์•„๋ณด๋Š๋ผ ์ •๋ฆฌ

 

* git ์ €์žฅ์†Œ ์ดˆ๊ธฐํ™”

$ git init // ์ €์žฅ์†Œ ์ดˆ๊ธฐํ™”
$ git remote add origin <์ €์žฅ์†Œ url>

 

์ดํ›„

$ git remote -v

 

ํ™•์ธํ•ด๋ณด๋ฉด ์š”๋ž˜ ์ž˜๋œธ

 

* git user ์ •๋ณด ๋“ฑ๋ก

$ git config --global user.name "username"
$ git config --global user.email "user@email"

๊ณ„์ • ์ •๋ณด ์—ฐ๋™

 

* repository์—์„œ ํŒŒ์ผ pull ํ•ด์˜ค๊ธฐ

$ git pull origin main

 

๊ฐ„ํ˜น Missing or invalid credentials. ๋ผ๋ฉฐ authentification error ๋‚˜๋ฉด

์ฐฝ ์ƒˆ๋กœ ๋„์›Œ์„œ ํ•˜๋ฉด ํ•ด๊ฒฐ๋จ

 

* ๊ณ„์ • ์ •๋ณด ์ €์žฅ

$ git config credential.helper store

push๋‚˜ pull ํ•œ๋ฒˆ ํ•  ๋•Œ user info๋ž‘ ํ† ํฐ ์ž…๋ ฅํ• ํ…๋ฐ, ํ•œ๋ฒˆ ์ž…๋ ฅ ํ•˜๊ณ  ์œ„์˜ ๋ช…๋ น์–ด ์น˜๋ฉด ์ €์žฅ ๊ฐ€๋Šฅ

 

 

* ๊ฐ€๋” ์ƒ๊ธฐ๋Š” ์˜ค๋ฅ˜(Update 24.11.18)

์ƒˆ๋กœ์šด ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒจ์„œ ์ถ”๊ฐ€๋กœ ์ž‘์„ฑ

 

git push origin ~~ ์œผ๋กœ ์›๊ฒฉ์ €์žฅ์†Œ์— pushํ•ด์ค„๋•Œ

send-pack: unexpected disconnect while reading sideband packet. ๋œจ๋Š” ๊ฒฝ์šฐ

error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: ---% (00/00), 0.00 MiB | 0.00 MiB/s, done.
Total 15 (delta 1), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

์˜ˆ์‹œ

ํŠน์ • ํŒŒ์ผ์˜ ํฌ๊ธฐ๊ฐ€ ์ง€์ •๋œ ๋ฒ„ํผ์˜ ํฌ๊ธฐ๋ฅผ ๋„˜์–ด์„œ๊ธฐ ๋•Œ๋ฌธ์— ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ

 

๋ฒ„ํผ ํฌ๊ธฐ๋ฅผ local / global ํ•˜๊ฒŒ ์„ค์ •์„ ๋ฐ”๊ฟ”์ฃผ๋ฉด ๋œ๋‹ค.

git config --local http.postBuffer 2048M

 

์ž˜๋จ!

Comments