¡ãã©ã³ããåãé¤ããã«ãã§ãã¯ãã¼ã¯ãå
¥ãã¦ããOKããã¿ã³ãã¯ãªãã¯ãã¾ãã ãã¼ã«ã«ãªãã¸ããªã«è¤æ°ã®ãªã¢ã¼ããªãã¸ããªãè¨å®ããæ¹æ³ã«ãªãã¾ããremote add ã使ã£ã¦originã¨å¥ã®ãªã¢ã¼ããªãã¸ããªãã©ãã«ã«è¨å®ãã¦ç®¡çãããã¨ãã§ããããã§ãã ã¥ã¨ã¯ããã¼ã«ã«ãªãã¸ããªããªã¢ã¼ããªãã¸ããªã«ã¢ãããã¼ãããæä½ã®ãã¨ã§ãã 3-7. SourceTreeç»é¢ä¸é¨ã«ãããã¿ã°ãã¢ã¤ã³ã³âãã¿ã°ãåé¤ãããã§ãåé¤ã§ãã¾ãã ã³ãããå±¥æ´ã®ä¸è¦§ããå
ã«æ»ãããã³ããããå³ã¯ãªãã¯ã[ã³ãããé©ç¨åã«æ»ãâ¦]ãé¸æããã¨ãé¸æããã³ããããæã¡æ¶ãå
容ãã³ãããããã¾ããåé¡ããªããã°PUSHãããã¨ã§ãªã¢ã¼ããªãã¸ããªã«åæ ã§ãã¾ãã >> è足ï¼Sourcetreeã«ãªã¢ã¼ããªãã¸ããªã®è¨å®. ãã¼ã«ã«ãªãã¸ããªã»ãªã¢ã¼ããªãã¸ããªãä½ã£ã¦ãä¸é£ã®æµãã§ãã¡ã¤ã«ã®ç®¡çã¯åºæ¥ãããã«ãªãã¾ããã SourceTreeã¨ããGUIã使ã£ã¦ããã®ã§ã é»ãç»é¢ ã¯ã»ã¨ãã©è§¦ããã¨ãªãä½æ¥ãã§ã便å©ãªã®ã§ãããã¾ã 使ãããªãã¦ããªãgitã ããã¯ãã¼ã¯ä¸è¦§ã«testProject2ãä½ãããã®ã§ããããããã«ã¯ãªãã¯ããä¸è¨ã®ãããªç»é¢ãéãããªã¢ã¼ããªãã¸ããªãè¨å®ãããã赤æ ã®ãã¿ã³ãã¯ãªã㯠⦠ä½æãããã¼ã«ã«ãªãã¸ããªãé¸æãã¾ãã ããã¨ä¸è¨ã®ç»é¢ãéãã¾ãã å³ä¸ã®æ¯è»ãé¸æãããªã¢ã¼ãã¿ããé¸æãã¾ãã ãªã¢ã¼ããªãã¸ããªã¯ã¾ã è¨å®ãã¦ããªãã®ã§ãä½ã表示ããã¦ãã¾ããã SourceTreeã§ãªã¢ã¼ããªãã¸ããªãè¨å®. ®åã®æ°åã¯Sourcetreeã®æ´æ°ã¿ã¤ãã³ã°ãéä¿¡ç¶æ³çã«ãã£ã¦ æ£ç¢ºã§ã¯ãªããã¨ãããã¾ãã ã¥ããè¨å® æ´æ°æ¥ï¼ 2015å¹´2æ28æ¥ ãã®ãµã¤ãã studio9æ¬å®¶ ãã©ã¡ããç§å人ã§ç®¡çãéå¶ãã¦ããã®ã§ãããhtmlãCSSã®å¤æ´ã¯Gitã§ç®¡çã㦠⦠GitHubã§ãã¡ã¤ã«ã確èªãã. ãªã¢ã¼ããªãã¸ããªã«ããååã®ã¿ã°ãåé¤ãããå ´åã¯ããå
¨ãªã¢ã¼ãããã¿ã°ãåé¤ãã«ãã§ãã¯ãå
¥ãã¦ãã ããã ããã§ã¿ã°ãåé¤ããã¾ããã åè. - GitHubã«ãªãã¸ããªã®ä½æ ï¼ä¸è¨ã®ã¹ãããã«ã¤ãã¦ãä»å¾ããã°ã«ãã¦ã¾ã¨ãããã¨æãã¾ãï¼ãã°ããå¾
ã¡ãã ããï¼ï¼ ãç®æ¬¡ã 以ä¸ã®ã¹ããããè¸ãã§ããã¾ãã - SourceTreeã®ã¤ã³ã¹ãã¼ã« - SourceTreeã®ã»ããã¢ãã - SourceTreeã使ã£ã¦ã¿ã ã1. wordpressã®wp-config.phpãuploadsãã©ã«ããªã©pushããå¾ã«ãã£ã±ããªã¢ã¼ããªãã¸ããªããå¤ãããå ´åãããã¨æãã¾ãã ããããä¸åº¦pushãã¦ãã¾ã£ãå¾ã.gitignoreãã¦å度pushãã¦ããªã¢ã¼ããªãã¸ããªä¸ã«ã¯æ®ã£ã¦ãã¾ãã¾ãã SourceTreeä¸ã§ãªã¢ã¼ããªãã¸ããªãã対象ãã¡ã¤ã«ãåé¤ã㤠⦠åé¤ åé¤ã¨ã¯. Gitã§å¢ãä½ã£ã¦ééã£ãã³ãããã git push ãã¦ãã¾ã£ãæããããåãæ¶ãæ¹æ³ã§ãã git push ã®åãæ¶ãæ¹æ³ ããééã£ã¦ push ãã¡ãã£ãã»ã»ã» Git ã使ã£ã¦ããã¨ãééã£ã¦ãã¦ãã¾ã£ã¦ããããåãæ¶ããããªããããªã±ã¼ã¹ã¯ãæã
ããã¾ãã Sourcetreeã§ãåé¤ãã¨ããªã»ããããããã¨æãã®ã§ããããããã®éããããåããã¾ããããªã»ããã¯ãã®å¤æ´ãå®å
¨ã«ç ´æ£ãã¦ãªãã£ããã¨ã«ãããã®ã ã¨æãã®ã§ãããã§ã¯åé¤ã¨ã¯ã©ãããåä½ã«ãªãã®ã§ããããï¼ãªã»ããã¨ä½ãéãã®ã§ããããï¼ SourceTreeã®ããã¥ã¡ã³ãã«ã¯ããarticleãããarticle; ãåãã®ã¨ããããªãã¸ããªã¯ãªã¢ã¼ãã§ã¯ä½æããã¾ããã ããªãã¯ããªãã®ãµã¼ãã«ãã°ã¤ã³ããããªãã®server gitã³ãã³ãã使ã£ã¦ããã«ãªãã¸ããªãä½æããªããã°ãªãã¾ãã ãã¼ã«ã«ãªãã¸ããªã¨ãªã¢ã¼ããªãã¸ã㪠ãªãã¸ããªã¨ã¯ããã¡ã¤ã«ããã£ã¬ã¯ããªã®å±¥æ´ã管çããå ´æã®ãã¨ã§ãã èªåã®ãã½ã³ã³å
ã§ãã¼ã¸ã§ã³ç®¡çããããã«ä½æãããªãã¸ããªï¼Gitã§æå®ãããã©ã«ãï¼ããã¼ã«ã«ãªãã¸ããªã¨ããã¾ãã ãªãã¸ããªã«ä½¿ç¨ãã url ã¯ãhttps ã¾ã㯠ssh ã®ã©ã¡ãã®ãããã³ã«ã使ç¨ãã¦ãããã«ãã£ã¦ç°ãªãã¾ãã ãããã® URL ã¯ããªãã¸ããªã® [ ã½ã¼ã¹ ] ãã¼ã¸ã® [ ã¯ãã¼ã³ ] ãã¿ã³ã§ç¢ºèªã§ãã¾ãã 念ã®ãããSourceTree ã®ã³ã³ã½ã¼ã«ãã以ä¸ã³ãã³ããå©ãã¦æå³ãããã¼ã¸ã§ã³ã«ãªã£ããã¨ã確èªã $ git --version $ git-credential-manager version . ãã©ã³ãã¨ã¯ãå±¥æ´ã®æµããåå²ãã¦è¨é²ãã¦ããããã®ãã®ã§ããåå²ãããã©ã³ãã¯ä»ã®ãã©ã³ãã®å½±é¿ãåããªããããåããªãã¸ããªä¸ã§è¤æ°ã®å¤æ´ãåæã«é²ãã¦ãããã¨ãã§ãã¾ãã bareãªãã¸ããªã¨ã¯ãä½æ¥ã³ãã¼ãæããªããªãã¸ããªã§ããªãã¸ããªãå
±æããããã«ä½¿ç¨ããã¾ããbareãªãã¸ããªã§ãªããã°ãå¾ã§èª¬æãããªã¢ã¼ããªãã¸ããªã«å¯¾ããæä½ã失æãã¾ãã ã¾ãã¯ãGitã³ãã³ããå®è¡ããããã«ãã¿ã¼ããã«ãéãã¾ãã