ããã¥ã¡ã³ãã®ãã¼ã¸ã§ã³ç®¡çã¯SVNã¨Gitãã©ã£ã¡ãããã®ï¼
SVNããGitã¸ã®ç§»è¡ãèãããã ãã©â¦
10å¹´ã»ã©åã«ãã¼ã¸ã§ã³ç®¡çã½ããã¦ã§ã¢ã¨ãã¦SVN(TortoiseSVN)ã使ãå§ãã¾ãããç¾å¨ã¯ããã¥ã¡ã³ããã½ã¼ã¹ã³ã¼ãããã¼ã¸ã§ã³ç®¡çãªãã®ä¸çã«ã¯æ»ããªããªã¨æãã¦ãã¾ããä¸ã®ä¸çã«Gitãæµè¡ã£ã¦ããã®ã¯ç¥ã£ã¦ããã ãã©ãè·å ´ã§ãGitã«ç§»è¡ããã£ã¦è©±ã¯å ·ä½åããªãã£ãããããããä¸ä¾¿ã¯ãã£ããã©SVNã«æ £ãã¡ãã£ã¦ããã§ãGitã®å°å ¥ã¯ãã¦ã¾ããã§ãããä¹ ãã¶ãã«æè¡ããã°ãæ¸ãã«ããã£ã¦ããµã³ãã«ã³ã¼ããå ±æãããªãGitHubãããããªã¼ã¨æãããããã使ãå§ããã¨ããã§ãã
ãªãã»ã©ãGitã¯ãªãªã¸ãã«ã®ãªãã¸ããªããã¼ã«ã«PCã«ã³ãã¼ï¼ã¯ãã¼ã³ï¼ãã¦ããã¼ã«ã«ã§ä¸æ¦ã³ããããã¦ããããªãªã¸ãã«ã«ããã·ã¥ããã¨ããäºæ®µæ§ãã®æ§æã«ãªã£ã¦ãããå人ã®ä½æ¥ã¯ææç©ãå®æããã¾ã§ãã¼ã«ã«ã§é²ããã®ã§ããã¼ã¸ã®è¡çªé »åº¦ãç·©åããããã§ãããã¾ãããã¼ã«ã«ã§å±¥æ´ç®¡çã§ããã®ã§ãSVNã§ä¸æºã ã£ããä½æ¥ä¸ã®ãã®ãé©å®ã³ããããã¦å±¥æ´ç®¡çã«ä¹ããããã©ãæªå®æã®ãã®ãã³ãããããã¨ä»ã®éçºè ã«è¿·æãããããã£ã¦åé¡ã解決ããã¦ã¾ããSVNã ã¨å±¥æ´ç®¡çããããªã¼ã£ã¦ã¿ã¤ãã³ã°ã§ããããã¡ã¤ã«ãä½ã£ã¦ãSVNã®ä¸æãã©ã«ãã«ã³ããããããã¨ã§å±¥æ´ç®¡çã®ä»£ç¨ã¨ãããªãã¦ããµããã¨ããã£ã¦ã¾ãããTFSã ã¨ã·ã§ã«ãæ©è½ã§ä¸æä¿åã§ãããããã®ã§ãããã¯ããã§ä¾¿å©ããã§ããã©ãã
ãªãããGitããããã£ã¦æã£ãã®ã§ãã½ã¼ã¹ã³ã¼ã管çã ãã§ãªãTortoiseGit使ã£ã¦ããã¥ã¡ã³ã管çãSVNãã移è¡ãããããªã£ã¦ã¡ãã£ã¨èãããã ãã©ãçµè«ããè¨ãã¨æãçã¾ãã¾ãããGitã¯SVNã¨æ¯è¼ããã¨ãããã¥ã¡ã³ã管çã«åãã¦ããªãã¨æãã¾ããçç±ã¯ä»¥ä¸ã
Â
å人çã«Gitã§ã®ããã¥ã¡ã³ã管çãé¿ããçç±
- 空ãã©ã«ããä½æã§ããªã
- ãã¡ã¤ã«ãããã¯ã§ããªã
- ããã·ã¥ããªãã¨ä¸å¤®ã®ãªãã¸ããªã«åæ ã§ããªã
Â
1.空ãã©ã«ããä½æã§ããªã
Gitã¯ç©ºã®ãã©ã«ããä½æãããã¨ãã§ãã¾ãããçç±ã¯ç¥ãã¾ããããã®å¶ç´ãåé¿ããããã«ããªãã§ããããããã¡ã¤ã«ãä¸ã¤ç½®ãã¨ãããã¨ãå¿ è¦ã§ããä¸è¬ã«ã¯.gitkeepã¨ããååã®ç©ºãã¡ã¤ã«ãç½®ãã®ããã©ã¯ãã£ã¹ãªãã ããã§ãã
ããã¥ã¡ã³ã管çããã®ã«ä½ã§ç©ºãã©ã«ãã使ãããã®ãã£ã¦ï¼ããã¯ãããã¸ã§ã¯ãéå§æã«ããã¥ã¡ã³ãã®ä¿ç®¡å ´æã¨ãã¦ãã©ã«ãé層ãä¸å¼ç»é²ããããã«ç½®ãããã«ã«ã¼ã«åãããããã§ããããããã¾ãããããããªã®ã
- 01.ããã¸ã§ã¯ãè¨ç»
- 02.è¦æ±åæ
- 03.è¦ä»¶å®ç¾©
- 04.å¤é¨è¨è¨
- ...
ãã©ã«ãé層ã®æ«ç«¯ã«.gitkeepãªãã¦ãã¡ã¤ã«ç½®ããããªãã§ãã
Â
2.ãã¡ã¤ã«ãããã¯ã§ããªã
SVNã®ãã¡ã¤ã«ããã¯æ©è½ã¯ããã¡ã¤ã«ãèªã¿åãå°ç¨ã«ãããã¨ã§ããã¯ããã¦ããç¶æ ãæ¬ä¼¼çã«å®ç¾ãã¦ããã ãã®ç°¡æãªãã®ã§ãããç¡ãããããã·ã§ããä¼ç»æ¸ãå ±åæ¸ãªãããè¤æ°äººã§ç·¨éããéãããã¯ãåå¾ãã¦ããï¼èªã¿åãå°ç¨ãæ¸ãè¾¼ã¿å¯è½ã«ãã¦ããï¼ç·¨éããã¨ããã¯ã¼ã¯ããã¼ã«ãªã£ã¦ããã¨ãç·¨éè ã©ãããèªç¶ã«å調ãã¦ä½æ¥ãããã¨ãã§ãã¾ãã
ä¸æ¹ãGitã«ã¯ããã¯æ©è½ãããã¾ãããããããåæ£åãªã®ã§ãæä»æ©è½ãå®ç¾ããããããã¾ãããããã¥ã¡ã³ã管çã¯SVNã®ãããªéä¸åãåãã¦ããã¨æãã¾ãã
Â
3.ããã·ã¥ããªãã¨ä¸å¤®ã®ãªãã¸ããªã«åæ ã§ããªã
ãããä¸çªåé¡ãªæ°ããã¾ããAããã¨Bãããåãå ±åæ¸.pptxãç·¨éãã¦ããã¨ãã¦ãAãããç·¨éããçµæãBãããåå¾ãããã¨æã£ãããGitã ã¨ä»¥ä¸ã®æé ã«ãªãã¾ãã
- Aãããå ±åæ¸.pptxãã³ãããï¼ãã¼ã«ã«ï¼
- Aãããå ±åæ¸.pptxãããã·ã¥
- Bãããå ±åæ¸.pptxããã«
Â
Gitã®ãã¨ãããç解ãã¦ä½¿ãããªãã¦ããã¨ã³ã¸ãã¢ãªãã¨ããããããã¥ã¡ã³ããä¸å¿ã«ä»äºããã¦ãã人ãªããã³ããããããããã§å®å¿ãã¦ãããã·ã¥ããã®ãå¿ãã¾ããããã§ããä¼ç»æ¸ã³ããããã¾ããã¼ãããã«ãã¦ãè½ã¡ã¦ãããããã¡ããã¨ããã·ã¥ããã®ããããªãã¦ä¼è©±ãæ³åã§ãã¾ãããã
ãããããããã¹ããã¡ã¤ã«ä»¥å¤ã®ããã¥ã¡ã³ãã¯ã½ã¼ã¹ã³ã¼ãã®ããã«ã¯ãã¼ã¸ã§ããªããããpptxã¨ãxlsxã¨ãã®éããã¹ããã¡ã¤ã«ã¯ã³ãããã¨ããã·ã¥ãäºæ®µéã«åããå¿ è¦ãªããã§ããããã³ãããããæç¹ã§è¡çªããããã°ããã§ãããéä¸åã®SVNã¯ãã®ãããªæåãªããã§ãããããããã¦åæ£åã®Gitã®ããã¼ã«ç§»è¡ããã¡ãªããã¯ãªãããããªããã¨æãã¾ãã
Â
以ä¸ã®ãã¨ãããããã¥ã¡ã³ã管çã¯SVNã®ã»ããããã¨æããã§ãããµã¼ãã¼ç®¡çãããã©ããããããããªããã©ãããã¥ã¡ã³ãã¯SVNã§ãã½ã¼ã¹ã³ã¼ãã¯Gitã§ããã®ãããã¨æãããå®è·µãã¦ãªãããç¥ãããã©ã
Â