ํฐ์คํ ๋ฆฌ ๋ทฐ
๋ฐ์ํ
๐งฉ 1๏ธโฃ ํ์ฌ ์ค์ ๋ Git ๊ณ์ ํ์ธ
ํฐ๋ฏธ๋์์:
git config --global user.name git config --global user.email
- ๋ค๋ฅธ ์ฌ๋ ์ด๋ฆ์ด๋ ์ด๋ฉ์ผ์ด ๋์จ๋ค๋ฉด, ๊ทธ ๊ณ์ ์ผ๋ก ์ปค๋ฐ๋๊ณ ์์ต๋๋ค.
๐ 2๏ธโฃ ๊ณ์ ์ ๋ณด ๋ณ๊ฒฝ (Git ์ ์ญ ์ค์ ์์ )
์๋ ๋ช ๋ น์ด๋ก ๋ด Git ์ฌ์ฉ์ ๊ณ์ ๋ณ๊ฒฝ:
git config --global user.name "๋ด์ด๋ฆ" git config --global user.email "๋ด์ด๋ฉ์ผ@example.com"
๋ง์ฝ ํน์ ํ๋ก์ ํธ(์ด ํด๋๋ง) ๊ณ์ ๋ง ๋ฐ๊พธ๊ณ ์ถ๋ค๋ฉด --global ๋นผ๊ณ :
git config user.name "๋ด์ด๋ฆ" git config user.email "๋ด์ด๋ฉ์ผ@example.com"
๐ 3๏ธโฃ ์ธ์ฆ ๋ฐฉ์์ ๋ฐ๋ผ ์๊ฒฉ์ฆ๋ช ์ด๊ธฐํ
โ (A) HTTPS ๋ฐฉ์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ
GitHub์ ๋ก๊ทธ์ธ ์ Access Token ๋๋ ๋น๋ฐ๋ฒํธ๊ฐ ์ ์ฅ๋ผ ์์ด์.
์ด๋ฅผ ์ง์์ผ ์ ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธ ๊ฐ๋ฅํด์.
๐ ๋ฐฉ๋ฒ:
- Windows
- ์ ์ดํ → “์๊ฒฉ ์ฆ๋ช ๊ด๋ฆฌ์” → “Windows ์๊ฒฉ ์ฆ๋ช ”
- git:https://github.com ๊ด๋ จ ํญ๋ชฉ ์ญ์
- macOS
- “ํค์ฒด์ธ ์ ๊ทผ” ์คํ
- ๊ฒ์์ฐฝ์ github.com ์ ๋ ฅ
- ๊ด๋ จ๋ ํญ๋ชฉ ์ญ์
๊ทธ ํ push ํ๋ฉด ์๋ก ์ธ์ฆ์ ์์ฒญํฉ๋๋ค.
๐ ๊ทธ๋ ์ GitHub ๊ณ์ ์ ํ ํฐ(Personal Access Token) ์ผ๋ก ๋ก๊ทธ์ธํ์ธ์.
โ (B) SSH ๋ฐฉ์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ
SSH ํค๊ฐ ๋ค๋ฅธ ๊ณ์ ์ผ๋ก ์ฐ๊ฒฐ๋์ด ์์ ์ ์์ต๋๋ค.
- ๊ธฐ์กด ํค ํ์ธ:๋ณดํต id_rsa, id_rsa.pub ๋๋ id_ed25519 ํ์ผ์ด ์์ต๋๋ค.
-
ls ~/.ssh
- ์ SSH ํค ์์ฑ (๋ค๋ฅธ ๊ณ์ ์ฉ):์๋ฅผ ๋ค์ด ~/.ssh/id_ed25519_new ์ด๋ฐ ์ด๋ฆ์ผ๋ก ์ ์ฅ.
-
ssh-keygen -t ed25519 -C "์๊ณ์ ์ด๋ฉ์ผ@example.com"
- GitHub ์ ๊ณ์ ๋ก๊ทธ์ธ →
Settings → SSH and GPG keys → New SSH key ํด๋ฆญ
→ ~/.ssh/id_ed25519_new.pub ํ์ผ ๋ด์ฉ ๋ณต์ฌํด ๋ถ์ฌ๋ฃ๊ธฐ. - ssh-agent์ ๋ฑ๋ก:
-
eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519_new
- .ssh/config ํ์ผ์ ๊ณ์ ๋ณ ์ค์ ์ถ๊ฐ:
-
Host github.com-new HostName github.com User git IdentityFile ~/.ssh/id_ed25519_new
- ์ด์ ์๊ฒฉ URL์ ์ SSH ์ค์ ์ผ๋ก ๋ณ๊ฒฝ:
-
git remote set-url origin git@github.com-new:username/repository.git
๐งฐ 4๏ธโฃ PhpStorm์์๋ ๊ณ์ ๋ก๊ทธ์์/์ฌ๋ก๊ทธ์ธ
- ์๋จ ๋ฉ๋ด
File > Settings (๋๋ Preferences) > Version Control > GitHub - ์ค๋ฅธ์ชฝ ๋ชฉ๋ก์ ๊ธฐ์กด ๊ณ์ ์ด ๋ณด์ด๋ฉด ์ ํ → - (์ญ์ )
- + ๋ฒํผ → “Log in via GitHub…” ํด๋ฆญ
- ์ ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธ → “Authorize JetBrains” ํด๋ฆญ
๐ 5๏ธโฃ ํ ์คํธ
git config user.name git config user.email git remote -v git push -u origin main
๋ชจ๋ ์ ์์ด๋ฉด ์ ๊ณ์ ์ผ๋ก ํธ์๋ฉ๋๋ค. ๐
๋ฐ์ํ
'laravel' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| Laravel Accessor ํธ์ถ ๋ฐฉ์ (0) | 2025.10.10 |
|---|---|
| github ์์ ์๋ฒ๋ก CI/CD ์๋๋ฐฐํฌ ์ค์ (0) | 2025.10.10 |
| laravel ํ๋ก์ ํธ ์์ฑ์ Base table or view not found (0) | 2025.10.08 |
| Storage ์ฌ๋ณผ๋ฆญ ๋งํฌ ์ค์ (0) | 2025.10.08 |
| Laravel ํ๋ก์ ํธ ์์ฑ ๊ฐ์ด๋ (0) | 2025.10.08 |
๋๊ธ
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
TAG
- ์บ์ํ ์ด๋ธ
- github
- nginx์ค์
- ๋ผ๋ผ๋ฒจํ๋ก์ ํธ
- ๋ฏผ๋ฝ๊ณจ
- ์คํฌ๋ฆฝํธ๊ธฐ์ด
- ci/cd
- thesunny
- ๊น์๋๋ฐฐํฌ
- ํ๋ก์ ํธ์์ฑ
- ๋์๋
- css
- ๊น์ฐ๋
- Accessor
- ๊น๊ณ์ ๋ณ๊ฒฝ
- ๊น์์ฑ
- ์์ ๋ถ ์ผ๊ณํ
- ์๋
- ์คํฌ๋ฆฝํธ๊ฐ์ข
- ์์ง์์ค์ค์
- laravel
- ๋ผ๋ผ๋ฒจ
- citykid
- ๋ฉ์๋ํธ์ถ
- ๊นํ๋ธ์๋๋ฐฐํฌ
- ์ ๊ท์์ฑ
- ํ๋ง๋ป
- ๋ผ๋ผ๋ฒจ์ค์
- ํ๋ง
- php์ ๊ท์์ฑ
| ์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
|---|---|---|---|---|---|---|
| 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 |
| 31 |
๊ธ ๋ณด๊ดํจ
๋ฐ์ํ