1. ์ฌ์ฉ์ ์ด๋ฆ, ์ด๋ฉ์ผ ์ ๋ณด๋ฅผ git config์ ๋ฑ๋ก
$ git config --global user.name "์ด๋ฆ"
$ git config --global user.email ์ด๋ฉ์ผ@mail.com
๋ฑ๋กํด๋๋ฉด commit ์ํ์ ๋ฑ๋ก๋ ์ฌ์ฉ์์ ์ ๋ณด๊ฐ ํจ๊ป ๋ฐ์
2. Cache๋ฅผ ์ฌ์ฉํ์ฌ ๋งค๋ฒ git ์์ด๋, ํจ์ค์๋ ์ ๋ ฅ ์ํ๋ ๋ฐฉ๋ฒ
$ git config credential.helper store
์ธ์ฆ์ ์บ์์ ์ ์ฅํ์ฌ ์ผ์ ์๊ฐ๋์ ์ ๋ ฅํ์ง ์๋ ๋ฐฉ๋ฒ
$ git pull
Username for 'myRepo':
Password for 'myRepo':
์์ด๋ ํจ์ค์๋ ์ ๋ ฅ
3. ์ ๋์๋ ํ์ธ
$ git pull
๋ ์ด์ ์ ๋ ฅํ๋ผ๋ ๋ง์ด ์์ผ๋ฉด ์ฑ๊ณต
https://webisfree.com/2017-05-19/git-์์ด๋-ํจ์ค์๋-์ ๋ ฅ-์ํ๋-๋ฐฉ๋ฒ
'TIL > Git' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] ํธ์ ์ ์ปค๋ฐ๋ฉ์ธ์ง ์์ (2) | 2023.09.11 |
---|---|
[Git] Your configuration specifies to merge with the ref 'refs/heads/branch name' from the remote, but no such ref was fetched (0) | 2022.08.05 |
[Git] Authentication failed for ~ use a personal access token instead (0) | 2022.05.19 |
[Git] git pull updating ์ ๋ฉ์ถค (0) | 2021.10.13 |
[Git] github api key ์จ๊ธฐ๋ ๋ฐฉ๋ฒ (React) (0) | 2021.04.20 |