Windowsã§Gitï¼ãªãã ãèªãã°ããã§ãï¼
æ¸ããéããªãã ãããã°ããã®ã§ããããªäººä»¥å¤ã¯æåã«ã¾ã¨ããèªããã
ãGitããWindowsã§ã使ãããã
ãããããã
Windowsã«ããGitã®ç´¹ä»
msysgit
http://msysgit.github.com/
åºæ¬ã§ãããWindowsã«ç§»æ¤ããããæ¬ç©ã®Gitã§ãã
ãã ããé»ãç»é¢ã§ãã®ã§ããã¶ã¤ãã¼ã¨ããç©´ã¨ããç©´ãã液ä½ãå¹ãåºãã¦æ»ã«ã¾ãã
å®å¿ãã¦ãã ããï¼msysgitã«ã¯GUIãã¤ãã¦ã¾ãï¼ï¼
â¦ãã£ã¯ã«ãã£ã±ï½ªâ¦
TurtoiseGit
http://code.google.com/p/tortoisegit/
TurtoiseSVNããã¼ãã¦ãã¾ããï¼ã¢ã¬ã§ãã
ãã®Explorerçµ±åã¨ãã奴ã«è¦ªã殺ããã俺ã¨ãã¦ã¯ä½¿ããããªãã®ã§ãããã¾ãä¸çªæåã§ããã
ã¨ãããTwitterã§è³ªåãã¦ããããããæãã¦ãããã¾ããã§ãããã
Github for windows
http://windows.github.com/
ãµã¤ããã¢ããªãè¦ãç®ãMetroã¹ã¿ã¤ã«ã§ããããã«ãæè¿ã£ã½ãã
æã§ããã®ãµã¤ãã¯IE8ããåã ã¨ãã¯ã«è¡¨ç¤ºã§ãã¾ãããã¾ãIE6ã¨ã7ã¨ã使ã£ã¦ã人ãGitã¨ã使ãããããªãã®ã§ã©ãã§ãããã§ããã
Githubã¨ããååãã¤ãã¦ã¦ãããã«ãGithubå°ç¨ã§ãããã§ãããå®ã¯ããã ããããªããã ãï¼ï¼
æ¬é¡ãGithub for windowsããããã±ã§ã¤ããï¼ï¼ï¼ï¼ï¼
ããããã«ããããã®è¨äºã®ã¿ã¤ãã«ã«ãã¹ãã§ããããã¯ãã稼ããï¼ï¼ï¼
ã¾ããã¨ããããã¤ã³ã¹ãã¼ã«ãã¾ãããã
http://windows.github.com/
ããDLãã¦ãå®è¡ã§ãã
éä¸ã.netã®4ãããããã¨ãã¾ãã®ã§ãå
¥ã£ã¦ããªãå ´åã¯åèµ·åãçºçãã¾ãã
åèµ·åããããå¤åãã¹ã¯ãããã«ã¢ã¤ã³ã³ãäºã¤ããã¾ãã
ãã®Githubã®æ¹ãéãã¾ãã
ã²ããããGithubã®ã¢ã«ã¦ã³ããå
¥ããã¨è¨ããã¾ãããWindowsã¦ã¼ã¶ã¼ãGithubã®ã¢ã«ã¦ã³ããªãã¦ãã£ã¦ãããããªããããã£ã³ã»ã«ãã¾ãããã
ãã£ã³ã»ã«ã®å¾ã§ãConfigãéãã¦ååã¨ã¡ã¢ãã ãè¨å®ãã¦ããã¾ãããã(ããã¯ã³ãããããã¨ãã®ç½²åã«ä½¿ããããã®ã§ãGithubã¸ã®ãµã¤ã³ã¢ããã§ã¯ãªã)
ä¸æ¦æ¨ªéã¸
ãªã¢ã¼ãã¬ãã¸ããªã®æºåããã¾ãããã
ãªã¢ã¼ãã¬ãã¸ããªã¨ã¯ãã¾ãWindowsã®äººã«ãããããã«ããã°ãGitã§ã³ã¼ããã¢ãããã¼ãã§ãããµã¼ãã¼ã§ãã
å¿è«Githubãããã§ãããèªåã§ä½æãããã¨ãâ¦ããWindowsã®äººã«ã¯ç¡çãªãã§ãããWindows以å¤ã®UNIXç³»OSãã¤ãã£ã¦ãã人ã¯â¦ããã°ãã°ä½ãäºãã§ãã¾ãã*1
ããã§ãããã±ãBitbucket http://www.bitbucket.org/ ã§ãããBitbucketã¯ã¿ãã§ãã©ã¤ãã¼ãã¬ãã¸ããªã使ããã¼ã¼ã¤ã¾ãGithubãã¤ããã¨å ¨ä¸çã«èªåã®ãã¹ãããããã¦ãªãå°æ±ãã³ã¼ããã¿ãããããªããããåãããªãã¨ã¼ã¸ã§ã³ããããGithubã¿ã¾ããã転è·ãã¦ãã ãããã¨ãã¦ã¶ãé»è©±ãã¡ã¼ã«ãããã£ã¦ããç¾½ç®ã«ãªãããã§ããã¼ã¼ãããããªãã§ãã¿ã¾ãã
ã©ããããâ¦ãµã¤ã³ã¢ãããã¦ããã°ãããµã¤ã³ã¢ããã§ããã°ãå¤åãããã
åãåããã空ã®ã¬ãã¸ããªãã¤ãããã¬ãã¸ããªç»é¢ã«ããHTTPSã¨ããã¯ãªãã¯ãã¦ã
git clone https://[email protected]/uzulla/testrepo.git
ãããªæãã®URLãã©ã£ãã«æ§ãã¦ãããã
é話ä¼é¡
ãã¦ã横éã«ããã¶ãé¸ãã¾ãããããã©ãã¾ãã
ããããã§æºåãæ´ãã¾ããï¼Github for windowsã«Bitbucketã®ãªã¢ã¼ãã¬ãã¸ããªã追å ãããï¼ï¼
æåã®ç»é¢ã«æ»ãã¨ããã¼ã«ã«ã¬ãã¸ããªã¨ãGithubã®ã¬ãã¸ããªãé¸ã¶äºãã§ãã¾ãã
ãã ãæ®å¿µãªãããããããªã¢ã¼ãã¬ãã¸ããªãå
¥ããæãããã¾ããâ¦ã
ããããªãããGithub for windowsã«ã¯Gitshellãã¤ãã¦ããã®ã§ãã
Git Shellãèµ·åãã¾ãããï¼
ãããããï¼é»ãç»é¢ã ãï¼ï¼ï¼ã
æ¤æ»ããã®ã¯ã¡ãã£ã¨ã ãå¾ ã£ã¦ä¸ãããã
ããããã¦ã以ä¸ã¿ãããªèµ¤æåãã§ã¦ãããããã¾ãããã¾ãã§åªãã®è¨èã¿ããã§ãããè±èªã ããèªãï¼ã¾ï¼ãªããã
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.Resolve-Path : Cannot find path 'C:\Users\test\.ssh\id_rsa' because it does not
exist.
At C:\Users\test\AppData\Local\GitHub\PoshGit_820cc1fc129f0263723f2fed73bdc4d48
c2a9207\GitUtils.ps1:250 char:32+ CategoryInfo : ObjectNotFound: (C:\Users\test\.ssh\id_rsa:Strin
g) [Resolve-Path], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.Resol
vePathCommand
ããã¯sshã®ãã¼ããªãã£ã¦æå¥ãã£ã¦ãã ããªã®ã§ãä»åã¯ã»ã£ã¨ãã¦ããã¨ãããã¾ãï¼ããæ¹ã«ãããã¾ããã©ãHTTPã§Gitãããªããããªãã§ãããâ¦ï¼
ããå æ¸é·ãã®ã§ãé§ã足ã§ã
C:\Users\test\Documents\GitHub> cd c:\
C:\> mkdir repo
ã¨ãããããããªæãã§ãGitãDLãã¦ãããä½æ¥ãããããã£ã¬ã¯ããªã®ãä¸åä¸ã®ããã£ã¬ã¯ããªãä½ãã¾ãã
ã¤ã¥ãã¦ããã£ãã¡ã¢ã£ãã³ãã³ããå®è¡ãã¾ãããã¨ãã°ãããªé¢¨ã§ããã
C:\repo> git clone https://[email protected]/uzulla/testrepo.git
Cloning into 'testrepo'...
warning: You appear to have cloned an empty repository.
å¤åãã¹ã¯ã¼ããããã¾ãã®ã§ãBitbucketã®ãã¹ã¯ã¼ããããã¾ãããã
æåãããã
C:\repo> cd testrepo
ã¨å®è¡ãããã以ä¸ã®ããã«ãªãã¾ãã
C:\repo\testrepo [master]>
ï¼ããè²´æ¹ãå¤å°ç¥èããã人ãªãããªã£ã¦æãã®ã§ã¯ãªãã§ãããããï¼ï¼
ãã®å¾ä»¥ä¸ã®ããã«ã¿ã¤ãããã°ãä½æ¥ãã£ã¬ã¯ããªãéãã¾ããã
C:\repo\testrepo [master]> start .
éãããã£ã¬ã¯ããªããä¸åä¸ï¼C:\repo\ï¼ã«ä¸ããããã®ä¸ã«ããtestrepoãGithub for windowsã®ã¦ã¤ã³ãã¦ã«ãã©ãã°ã¢ã³ããããããã¾ãããã
Tadaaa!!ãã£ãï¼ããã§Github for windowsã«ãªã¢ã¼ãã¬ãã¸ããªè¿½å ã§ãããï¼ï¼ï¼(^Ð^)
ããããå ã®ä½¿ãæ¹
ã¨ãããã
C:\repo\testrepo
ã«ãã¡ã¤ã«ã¨ãã¤ãã£ã¦ã¿ããããããããªãã§ãããã
ããããGithub for windowsã«ãã©ã£ã¦ã追å ãããã¬ãã¸ããªãã²ããã¾ãããã
ããã¨ãããªé¢¨ã«ã追å ãããã¡ã¤ã«ã表示ããã¾ãï¼
ãã¨ã¯å³å´ã«ã³ãããã¡ãã»ã¼ã¸ãããã¦ãã³ãããã ï¼ï¼ï¼
ãã£ãï¼ã³ãããã§ãããï¼
ããããã ãã§ã¯é§ç®ã§ãããPushããªãã¨ã
Pushã¯ã³ããããããã¡ã¤ã«ãããªã¢ã¼ãã¬ãã¸ããªã«ã¢ãããã¼ãããä½æ¥ã§ããã
ããããã«Publishãã¿ã³ãããã¾ãããã
çµæ§æéããããã¾ããã©ããã®å
æåãã¾ãï¼
Pushå®äºããããBitbucketã®ãµã¤ãã«ãã£ã¦ãPushãããã確èªãã¾ãããï¼
pull
ãªã¢ã¼ãã¬ãã¸ããªããDLãã¦ãããã¨ãPullã¨ããã¾ãããã¾ãSyncããããPullã§ãã¾ãï¼
ããããªãããã¡ãã£ã¨æ®å¿µãªäºã«Github for windowsã¯ä¸åãã¼ã ç»é¢ã«ãã©ã£ã¦ãããä¸åã¬ãã¸ããªç»é¢ãã²ãããªãã¨Syncãã¿ã³ãããã¾ãããã ããã
ãã£ããããã¡ããï¼ï¼
ããã§ãªã¢ã¼ãã¬ãã¸ããªã追å ãã¦ãCommitãã¦ãPushãã¦ãPullã§ããï¼
ä»ã«ãã¾ãè²ã
ãããã©ã¾ãããã°ãï¼
ããã¾ã§åãé·ãã£ãï¼ãããªå°ãã¿ããã®ã«ãªãã§ãããªé·ãäºããå¿
è¦ããã£ãã®ï¼ï¼
æåã®ã¾ã¨ãï¼ï¼
Github for windowsã¡ããã¤ããã¥ããï¼ï¼ï¼ï¼éããã«ã¢ã³ã¤ã³ã¹ãã¼ã«ãã¦ãTurtoiseGitã¤ããã¾ãããï¼ï¼ï¼ï¼
å¾æ¥è¿½è¨ï¼source tree (http://www.sourcetreeapp.com/) ã¤ããã¾ããã
ã§ã
Msysgitã®git bashãããGithubã®ãªãã±ã«ã¤ãã¦ããGit Shellã®ã»ããã¤ã±ã¦ãæ°ããããªãâ¦ã
PowerShellã£ã¦ã®ãããããâ¦ã
C:\repo\testrepo [master +1 ~0 -0 !]>
ããã¯ããªããªã·ã£ã¬ããããªãã¨ãmsysgitããæç¶ã¤ãããããï¼ãã®Bashã¯â¦ï¼ã
ã³ãã³ãã©ã¤ã³æ´¾ã®ããªããããGithub for windowsãå ¥ããã¹ãã§ããï¼å²ã¨ã¾ãã§ã