์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- ์ ๋ ฌ
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- db
- ๊ทธ๋ํ
- ๋จธ์ง์ํธ
- ๊ทธ๋ฆฌ๋
- ์์ํ์
- ๊ตฌํ
- ๊น์ด์ฐ์ ํ์
- SK
- ๋์ ๊ณํ๋ฒ
- skala
- ์ค๋ธ์
- ๋ค์ด๋๋ฏนํ๋ก๊ทธ๋๋ฐ
- DP
- ์ํ
- ๋๋น์ฐ์ ํ์
- LIS
- ๋ฐฑ์ค
- skala1๊ธฐ
- ๊ทธ๋ํํ์
- ์๊ณ ๋ฆฌ์ฆ
- ํ์ด์ฌ
- ํ๋ก๊ทธ๋๋จธ์ค
- SQL
- ๋ณํฉ์ ๋ ฌ
- DFS
- BFS
- ํฐ์คํ ๋ฆฌ์ฑ๋ฆฐ์ง
- LLM
- Today
- Total
๐๐ญ๐ฐ๐ธ ๐ฃ๐ถ๐ต ๐ด๐ต๐ฆ๐ข๐ฅ๐บ
[๊ธฐํ] git: ์๊ฒฉ ์ ์ฅ์ ์ฐ๊ฒฐ ์ ํ์ํ git ๋ช ๋ น์ด ๋ณธ๋ฌธ
๋งจ๋ ์ฐพ์๋ณด๋๋ผ ์ ๋ฆฌ
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
์๋จ!
+ ์ถ๊ฐ(25.03.27)
branch ํ์ ์์ ํ๊ธฐ (๋จ, ํน์ repository์ ์ฐ๊ธฐ ๊ถํ์ด ์์ด์ผ๋จ)
$ git clone "repository link" # ๊ณต๋์์
์ค์ธ ์ ์ฅ์ ๋ถ๋ฌ์ค๊ธฐ
$ cd "repository-directory" # ์์ฑํ repository๋ก ์ด๋
$ git branch # ํ์ฌ ์ฌ์ฉ์ค์ธ branch ํ์ธ(์๋ง๋ main)
$ git branch [branchname] # branch ์์ฑ
$ git checkout -b [branchname] # branch ์์ฑ ํ ๋ฐ๋ก ์ด๋
git branch [branchname]์ ์ branch ์์ฑ๋ง ํด์ฃผ๊ณ ์ด๋ํ๋ ค๋ฉด checkout ๋ช ๋ น์ด๋ฅผ ์จ์ผ๋จ
๊ทผ๋ฐ git checkout -b [branchname] ํ๋ฉด ์์ฑํ๊ณ ๋ฐ๋ก ์ด๋ํ ์ ์๋ค.
์์ ํด์ฃผ๊ณ , ๋ง์ง๋ง์ push/pull ํ ๋ branch ์ด๋ฆ๋ง ์ ๋๋ก ์ ๋ ฅํด์ฃผ๋ฉด ๋๋ค.