๋ฐ์ํ
https://github.com/์ฌ์ฉ์์ด๋ฆ
์ฌ์ฉ์ ์ด๋ฆ ๋ณ๊ฒฝ( URL์ฃผ์ ๋ณ๊ฒฝ )
1. ๊นํ๋ธ ์ ํ ์ ์ > Account ๋ฉ๋ด > Change username ํด๋ฆญ
2. ํ์ OK
3. ๋ณ๊ฒฝํ ์ด๋ฆ ์์ฑ
4. ๋ณ๊ฒฝ ์๋ฃ ํ git์ ์ฌ์ฉํ๋ ํด๋๋ก ๊ฐ์ ๋ง์ฐ์ค ์ฐํด๋ฆญ ํ git bash ์คํ
5. ๋ช ๋ น์ด ์ ๋ ฅํ์ฌ remote ์ฃผ์ ๋ณ๊ฒฝ
// ์ด๋ฆ ๋ณ๊ฒฝ ์ ์๊ฒฉ์ ์ฅ์ ์ฃผ์ ํ์ธ
git remote -v
// ์๋ก์ด ์ด๋ฆ์ ์๊ฒฉ์ ์ฅ์ ์ฃผ์ ์
๋ ฅ
git remote set-url origin git@github.com:์ฌ์ฉ์์ด๋ฆ/์ ์ฅ์๋ช
// ์๋ก์ด ์ด๋ฆ ์๊ฒฉ์ ์ฅ์ ์ฃผ์ ํ์ธ
git remote -v
6. ์งํ์ค์ธ ํ๋ก์ ํธ๊ฐ ์์๋ค๋ฉด SSHํค ์ธ์ฆํด์ผํ๊ธฐ๋๋ฌธ์ SSH ์์ฑ
//SSH ํค ์์ฑ
$ ssh-keygen -t rsa -C "์ฌ์ฉ์์ด๋ฉ์ผ"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/์ฌ์ฉ์๋ช
/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/์ฌ์ฉ์๋ช
/.ssh/id_rsa
Your public key has been saved in /c/Users/์ฌ์ฉ์๋ช
/.ssh/id_rsa.pub //-> ํด๋น ๊ฒฝ๋ก์ id_rsa.pub ์ ์ฅ๋๋ค
The key fingerprint is:
SHA256: ~~~
The key's randomart image is:
+---[RSA 3072]----+
~~~
// id_rsa.pub ์ ์ฅ์์น๋ก ์ด๋
$ cd /c/Users/์ฌ์ฉ์๋ช
/.ssh
// id_rsa.pub ๋ด์ฉ ํ์ธ
$ cat id_rsa.pub
ssh-rsa ~~~~~~~~~~~~~~~~~~~~~์ฌ์ฉ์ ์ด๋ฉ์ผ //ssh-rsa ๋ถํฐ ๋๊น์ง ๋ด์ฉ ๋ณต์ฌ
7. github settings > SSH and GPG keys > New SSH key ํด๋ฆญ
8. ๋ณต์ฌํ ssh๋ด์ฉ ๋ถ์ฌ๋ฃ๊ธฐ ํ add ๋ฒํผ ํด๋ฆญ
9. ํค ๋ฑ๋ก ์๋ฃ
๋ฐ์ํ