Gitflow: Windows์—์„œ ์„ค์น˜ ๋ฌธ์ œ - "ํŒŒ์ผ์„ ์ฐพ์„ ์ˆ˜ ์—†์Œ - shflags"

์— ๋งŒ๋“  2012๋…„ 07์›” 09์ผ  ยท  9์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: nvie/gitflow

์•ˆ๋…•ํ•˜์„ธ์š”,

Windows 7 64๋น„ํŠธ์— ์ฒ˜์Œ์œผ๋กœ git flow๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

getopt.exe๊ฐ€ ์—†์–ด์„œ util-linux(http://downloads.sourceforge.net/gnuwin32/util-linux-ng-2.14.1-setup.exe)๋ฅผ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์—†์ด git flow๋ฅผ ์„ค์น˜ํ–ˆ๋Š”๋ฐ ๊ด€๋ฆฌ์ž cmd์—์„œ ์„ค์น˜๋ฅผ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋‚ด๊ฐ€ sudo cmd ํ›„, ๋‚˜๋Š”

1 ํŒŒ์ผ ๋ณต์‚ฌ
C:\tmp\gitflow\git-flow -> C:\Program Files (x86)\Gitbin\git-flow
C:\tmp\gitflow\git-flow-feature -> C:\Program Files (x86)\Gitbin\git-flow-feature
C:\tmp\gitflow\git-flow-hotfix -> C:\Program Files (x86)\Gitbin\git-flow-hotfix
C:\tmp\gitflow\git-flow-init -> C:\Program Files (x86)\Gitbin\git-flow-init
C:\tmp\gitflow\git-flow-release -> C:\Program Files (x86)\Gitbin\git-flow-release
C:\tmp\gitflow\git-flow-support -> C:\Program Files (x86)\Gitbin\git-flow-support
C:\tmp\gitflow\git-flow-version -> C:\Program Files (x86)\Gitbin\git-flow-version
7 ํŒŒ์ผ ๋ณต์‚ฌ
C:\tmp\gitflow\gitflow-common -> C:\Program Files (x86)\Gitbin\gitflow-common
C:\tmp\gitflow\gitflow-shFlags -> C:\Program Files (x86)\Gitbin\gitflow-shFlags
2 ํŒŒ์ผ ๋ณต์‚ฌ
ํŒŒ์ผ์„ ์ฐพ์„ ์ˆ˜ ์—†์Œ - shflags
0 ํŒŒ์ผ ๋ณต์‚ฌ
์˜ˆ์ƒ์น˜ ๋ชปํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ์ง์ ‘ ์ˆ˜์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. [์˜ˆ]?์˜ˆ

์ด ์ •ํ™•ํ•œ ๋ฌธ์ž์—ด("ํŒŒ์ผ์„ ์ฐพ์„ ์ˆ˜ ์—†์Œ - shflags")์— ๋Œ€ํ•œ ์ธํ„ฐ๋„ท ๊ฒ€์ƒ‰์—๋Š” ์ •ํ™•ํžˆ ์ผ์น˜ํ•˜๋Š” ๊ฒฐ๊ณผ๊ฐ€ 0๊ฐœ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ์–ด๋–ป๊ฒŒ ์ง„ํ–‰ํ•ด์•ผ ํ•˜๋‚˜์š”?

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์•ˆ๋…•ํ•˜์„ธ์š”,

ํ•˜์œ„ ๋ชจ๋“ˆ shFlags์— ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule 
-2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags
git submodule init
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
git submodule update
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 454 (delta 389), reused 454 (delta 389)
Receiving objects: 100% (454/454), 101.19 KiB, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
git submodule status
 2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags (1.0.3)

๋ฌธ์•ˆ ์ธ์‚ฌ.

๋ชจ๋“  9 ๋Œ“๊ธ€

BTW, ์‹ค์ˆ˜๋กœ ๊ด€๋ฆฌ์ž๊ฐ€ ์•„๋‹Œ cmd์—์„œ ๋‹ค์‹œ ์„ค์น˜๋ฅผ ์‹œ๋„ํ–ˆ์„ ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜ํƒ€๋‚ฌ์Šต๋‹ˆ๋‹ค.

C:\tmp\gitflow\contrib>msysgit-install.cmd
"C:\Program Files (x86)\Git"์— gitflow ์„ค์น˜ ์ค‘...
getopt.exe... ๋ฐœ๊ฒฌ
GitFlow๊ฐ€ ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
๊ต์ฒดํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ [y/n]n
์„ค์น˜๊ฐ€ ์ทจ์†Œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

git flow๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์„ค์น˜๋˜์–ด ์žˆ์Šต๋‹ˆ๊นŒ? ์–ด๋–ป๊ฒŒ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์•ˆ๋…•ํ•˜์„ธ์š”,

ํ•˜์œ„ ๋ชจ๋“ˆ shFlags์— ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule 
-2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags
git submodule init
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
git submodule update
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 454 (delta 389), reused 454 (delta 389)
Receiving objects: 100% (454/454), 101.19 KiB, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
git submodule status
 2fb06af13de884e9680f14a00c82e52a67c867f1 shFlags (1.0.3)

๋ฌธ์•ˆ ์ธ์‚ฌ.

ํ›Œ๋ฅญํ•ฉ๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ์žˆ๊ณ  "git submodule update"๊ฐ€ ๋ฉˆ์ท„์Šต๋‹ˆ๋‹ค.

์ด ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒ

$ git ํ•˜์œ„ ๋ชจ๋“ˆ ์—…๋ฐ์ดํŠธ
์น˜๋ช…์ : ๋‹จ์ผ ์ˆ˜์ • ํ•„์š”
ํ•˜์œ„ ๋ชจ๋“ˆ ๊ฒฝ๋กœ 'shFlags'์—์„œ ํ˜„์žฌ ๊ฐœ์ •ํŒ์„ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

๋‚ด๊ฐ€ ๋ญ˜ ์ž˜๋ชปํ•˜๊ณ  ์žˆ์ฃ  ?
Google ๊ฒ€์ƒ‰์€ https://github.com/mxcl/homebrew/issues/15412๋กœ ๋๋‚ฉ๋‹ˆ๋‹ค.
๊ทธ๋Ÿฌ๋‚˜ ๋‚˜๋Š” homebrew๊ฐ€ ์•„๋‹Œ โ€‹โ€‹windows7์— ์žˆ์œผ๋ฉฐ ์ˆ˜์ • ์‚ฌํ•ญ์„ ์–ป์ง€ ๋ชปํ•ฉ๋‹ˆ๋‹ค.

๋ˆ„๊ตฐ๊ฐ€ ํžŒํŠธ๊ฐ€ ์žˆ์Šต๋‹ˆ๊นŒ? ๋ฏธ๋ฆฌ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š” @grails-ruin-app ์ €๋„ ๋‹น์‹ ๊ณผ ๋˜‘๊ฐ™์€ ๋ฌธ์ œ๋ฅผ ๊ฒช๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ์ฐพ์€ ์ ์ด ์žˆ์Šต๋‹ˆ๊นŒ?

@cmchiu
๋ฌธ์ œ๋Š” git ํ—ˆ๋ธŒ์— ๋Œ€ํ•œ ์—ฐ๊ฒฐ์ด ๋Š์–ด์กŒ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. gitflow\shFlags์—๋Š” .git ํŒŒ์ผ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

์‚ญ์ œํ•˜๋ฉด ๋ชจ๋“  ์ค€๋น„๊ฐ€ ์™„๋ฃŒ๋ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ ๊ทธ ๋งํ•  ์˜ค๋ฅ˜๋ฅผ ์ˆ˜์ •ํ•˜๋ ค๋ฉด ๋ฌผ๋งˆ๋ฃจ๋ฅผ ์ฝ์œผ์‹ญ์‹œ์˜ค.

http://stackoverflow.com/questions/4891527/git-protocol-blocked-by-company-how-can-i-get-around-that

git config --๊ธ€๋กœ๋ฒŒ URL."https://".insteadOf git://

๋‚˜๋ฅผ ์œ„ํ•ด ํŠธ๋ฆญ์„ํ–ˆ๋‹ค.

@cmchiu ์˜ˆ, ์œ ๋‹‰์Šค ๊ธฐ๋ฐ˜ ์‹œ์Šคํ…œ์œผ๋กœ ์ „ํ™˜ํ–ˆ์Šต๋‹ˆ๋‹ค :D

ํ›Œ๋ฅญํ•œ! ํ•˜์œ„ ๋ชจ๋“ˆ ์—…๋ฐ์ดํŠธ๊ฐ€ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. :)

์Œ ์ด๊ฑฐ ๋ชป์จ์„œ ์Šฌํ”„๋‹ค...

C:\var\www\gitflow>git submodule init

C:\var\www\gitflow>git submodule update

C:\var\www\gitflow>git submodule status

C:\var\www\gitflow>

ํ™•์‹คํžˆ ๋ญ”๊ฐ€๊ฐ€ ๋‚˜ํƒ€๋‚˜์•ผํ•ฉ๋‹ˆ๋‹ค :o

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰