Skip to content

woongman1109/git-study-2

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

2์ฐจ git ๊ต์œก

์ด ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋Š” ์„ฑ๊ท ๊ด€๋Œ€ํ•™๊ต ํ”„๋กœ๊ทธ๋ž˜๋ฐ ํ•™ํšŒ SKKU Overflow์—์„œ ์ฃผ์ตœํ•˜๋Š” 2์ฐจ git ๊ต์œก์šฉ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.

๋ธŒ๋žœ์น˜ ์ด๋ฆ„

์ด๋ฒˆ ๊ต์œก์—์„œ ์‚ฌ์šฉ๋˜๋Š” ๋ธŒ๋žœ์น˜๋“ค์˜ ์ด๋ฆ„์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • master: ๊ฒ€์ฆ๋œ ์ฝ”๋“œ๋ฅผ ์ €์žฅํ•˜๋Š” ๋ธŒ๋žœ์น˜
  • dev: ๊ฐœ๋ฐœ์ค‘์ธ ์ฝ”๋“œ๋ฅผ ์ €์žฅํ•˜๋Š” ๋ธŒ๋žœ์น˜
  • hotfix: ์‹ฌ๊ฐํ•œ ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•œ ๋ธŒ๋žœ์น˜

fork

git clone

  • git clone [email protected]:${github ์‚ฌ์šฉ์ž๋ช…}/git-study-2.git

  • cd git-study-2

๊ธฐ๋ณธ ์ž‘์—… (๋ธŒ๋žœ์น˜: master)

๊ธฐ๋ณธ์ ์ธ git ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. (1์ฐจ ๋‚ด์šฉ ๋ณต์Šต)

  • main.py ์ˆ˜์ •
  • git add main.py
  • git commit
  • git push

hotfix ๋ธŒ๋žœ์น˜ ์ž‘์—…

๊ธฐ๋Šฅ ์ถ”๊ฐ€ ํ˜น์€ ๋ฒ„๊ทธ ์ˆ˜์ •์„ ์œ„ํ•œ ๋ธŒ๋žœ์น˜๋ฅผ ๋งŒ๋“ค๊ณ , ๊ทธ ๋ธŒ๋žœ์น˜์—์„œ ์ž‘์—…ํ•ฉ๋‹ˆ๋‹ค.

  • git checkout -b hotfix
  • main.py ์ˆ˜์ •
  • git add main.py
  • git commit
  • git push

merge

  • git checkout master
  • git merge hotfix
  • ์ถฉ๋Œ ๋ณ‘ํ•ฉ
  • git branch -d hotfix

rebase

  • git checkout dev
  • git rebase master
  • git push -u origin dev --force

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%