Git branch

1. commands

  • ํ˜„์žฌ ์ž‘์—…์ค‘์ธ ๋ธŒ๋žœ์น˜ ํ™•์ธ

    • $ git branch
  • ๋ธŒ๋žœ์น˜ ์ƒ์„ฑ

    •  (master) $ git branch {๋ธŒ๋žœ์น˜๋ช…}
  • ๋ธŒ๋žœ์น˜ ์ด๋™

    •  (master) $ git checkout {๋ธŒ๋žœ์น˜๋ช…}
  • ๋ธŒ๋žœ์น˜ ์ƒ์„ฑ ๋ฐ ์ด๋™

    •  (master) $ git checkout -b {๋ธŒ๋žœ์น˜๋ช…}
  • ๋ธŒ๋žœ์น˜ ์‚ญ์ œ

    •  (master) $ git branch -d {๋ธŒ๋žœ์น˜๋ช…}
  • ๋ธŒ๋žœ์น˜ ๋ชฉ๋ก

    •  (master) $ git branch
  • ๋ธŒ๋žœ์น˜ ๋ณ‘ํ•ฉ

    •  (master) $ git merge {๋ธŒ๋žœ์น˜๋ช…}

Last updated