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 |