Etc

[ Git ] ๋””๋ ‰ํ† ๋ฆฌ๋ณ„ git ๊ณ„์ • ๋‹ค๋ฅด๊ฒŒ ์„ค์ •

seulye 2023. 12. 28. 09:43

 

 

ํšŒ์‚ฌ ์ปดํ“จํ„ฐ๋กœ ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ 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:~ํ•œ ๋ฒ„๊ทธ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. 

 

 

 

ํšŒ์‚ฌ ์ปดํ“จํ„ฐ์—์„œ ๋‚ด ํ”„๋กœ์ ํŠธ ์ปค๋ฐ‹ ์™„๋ฃŒ!!