[ Git ] ๋๋ ํ ๋ฆฌ๋ณ git ๊ณ์ ๋ค๋ฅด๊ฒ ์ค์
ํ์ฌ ์ปดํจํฐ๋ก ๊ฐ์ธ ํ๋ก์ ํธ push๊ฐ ํ์ํ๋ค.
์ฒ์์๋ ํ ์ปดํจํฐ์์ git ๊ณ์ 2๊ฐ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ณ๋ดค๋๋ฐ, ๋ฒ๊ฑฐ๋ก์ธ ๊ฒ ๊ฐ์์ ๋ฏธ๋ฃจ๋ค๊ฐ
๋๋ ํ ๋ฆฌ๋ณ๋ก๋ ์ค์ ํ ์ ์๋ ? ์๊ฐ์ด ๋ค์๋ค.
$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
credential.http://10.1.15.182:8091.provider=generic
user.email=yejinkim@'ํ์ฌ๋ช
'.com
user.name=yejinkim
credential.https://pd.hansol.com.provider=generic
core.autocrlf=true
๋ด๊ฐ ์ํ๋ ๋๋ ํ ๋ฆฌ์์ ๋ฐ๊ฟ์ค.
git config --local user.email yejinrla@naver.com
git config --local user.name yejinkim
fatal: --local can only be used inside a git repository
์ด๋ฐ ์ค๋ฅ๊ฐ ๋ด๋ค. ๋๋ ํ ๋ฆฌ ๊ตฌ์กฐ๊ฐ SideProject > project1 ์ธ๋ฐ, SideProject์์ ์ ๋ ๊ฒ ์ค์ ํด์ ๊ทธ๋ ๋ค.
cd project1 ํ๊ณ ์ค์ ํด์ฃผ์.
git init
Reinitialized existing Git repository in C:/SideProject/partyinv/.git/
git branch -M main
git add --all
// ์ํ ํ์ธ
git status
git add --all
git commit -m "์ปค๋ฐํ ๋ด์ฉ"
git push origin main
์ปค๋ฐ ๋ฉ์์ง ์์ฑํ ๋ ์ฐธ๊ณ .
https://doooodle932.tistory.com/180
๋ ๋์ Git ์ปค๋ฐ ๋ฉ์์ง ์์ฑํ๊ธฐ(์ปค๋ฐ ์ต์ , ์ปจ๋ฒค์ , ํ ํ๋ฆฟ)
๋ฌด์กฐ๊ฑด git commit -m์ผ๋ก๋ง ์ปค๋ฐ ๋ฉ์์ง๋ฅผ ์์ฑํ๋ ์ง๋ ๋ .. ์ด๊ฑธ๋ก๋ง์ ํ๊ณ๋ฅผ ๋๊ปด ์ปค๋ฐ ๋ฉ์์ง์ ๋ํด ์ข ๋ ์์๋ณด์๋ค. Commit Options ์ปค๋ฐ ๋ฉ์์ง ์์ฑ -m: ์ธ๋ผ์ธ ํ์์ผ๋ก ๋ฐ๋ก ์ปค๋ฐ ๋ฉ์์ง
doooodle932.tistory.com
- FEAT: ์๋ก์ด ๊ธฐ๋ฅ ์ถ๊ฐ
- FIX: ๋ฒ๊ทธ ์์
- DOCS: ๋ฌธ์ ์์
- STYLE: ์คํ์ผ ๊ด๋ จ ๊ธฐ๋ฅ(์ฝ๋ ํฌ๋งทํ , ์ธ๋ฏธ์ฝ๋ก ๋๋ฝ, ์ฝ๋ ์์ฒด์ ๋ณ๊ฒฝ์ด ์๋ ๊ฒฝ์ฐ)
- REFACTOR: ์ฝ๋ ๋ฆฌํฉํ ๋ง
- TEST: ํ ์คํธ ์ฝ๋ ์ถ๊ฐ
- CHORE: ๋น๋ ์ ๋ฌด ์์ , ํจํค์ง ๋งค๋์ ์์ (ex .gitignore ์์ ๊ฐ์ ๊ฒฝ์ฐ)
์ฌ๋ฌ ๊ฐ์ด๋๋ฅผ ๋ณด์๋๋ฐ, ๋ณดํต ์ด type๋ค์ด ๋จผ์ ๋ค์ด๊ฐ๊ณ , ๋ค์ ๋ด์ฉ์ด ๋ค์ด๊ฐ๋ค.
FIX:~ํ ๋ฒ๊ทธ๋ฅผ ์์ ํฉ๋๋ค.
ํ์ฌ ์ปดํจํฐ์์ ๋ด ํ๋ก์ ํธ ์ปค๋ฐ ์๋ฃ!!