memo. 以åã«ã¡ãã£ã¨èª¿ã¹ãã¨ãã« git submodule ã¯çããããããã ã£ãã®ã§å¾åãã«ãã¦ãã¾ããã
å¿ è¦ã«ãªã£ãã®ã§ãããããã®ãä½ãã¾ããã https://github.com/kyanny/git-prune-remote-branch ãã¹ã®éã£ãã¨ããã«ç½®ã㦠Git ã®ã¯ã¼ãã³ã°ãã£ã¬ã¯ããªã§å®è¡ãã㨠master 㨠develop ã«ãã§ã«ãã¼ã¸æ¸ã¿ã®ãªã¢ã¼ããã©ã³ããå ¨é¨åé¤ãã¾ãã --noop 㧠dry-run ã¢ã¼ãã«ãªãã®ã§å®éã«æ¶ãåã«ç¢ºèªãã§ãã¾ãããªã㧠master ã ããããªã develop ãï¼ã¨ããã¨ãåã®ãã¼ã 㧠gitflow ã使ã£ã¦ããããã§ãã $ git clone git://github.com/kyanny/git-prune-remote-branch.git $ git-prune-remote-branch --noop $ git-prune-remote-branchgit push --mirror ãããã¡ãªã®
ä½ãï¼ git commitã®ãªãã·ã§ã³--allow-emptyãåç¥ã§ããããï¼ ããã¯ããªãã·ã§ã³ã®ååã®éã空ã®ã³ãããã®ä½æã許å¯ãããªãã·ã§ã³ã§ãã é常å¤æ´ããªãã¨ã³ããããä½ããªãããã«ãªã£ã¦ãã®ã§ 空ã³ããããä½ãã«ã¯ãã®ãªãã·ã§ã³ãæå®ããå¿ è¦ãããã¾ãã add(ãããã¯rm)ãããªã(stageã«ä½ãè¼ããªã)㧠commitããã¨ãã®æ³¨ææã«ã¯ç»å ´ããã®ã§ç¥ã£ã¦ã¾ããã使ã£ã¦ã¾ããã§ããã æè¿ãéçºããã¼ã®ä¸ã§ä½¿ãéãæãã¤ãã¦ä½¿ãããã«ãªã£ãã®ã§ç´¹ä»ã§ãã ãã®1 空Pull Requestä½ãã ãã«ãªã¯ã£ã¦ãåºæºã«ãªããã©ã³ãããå¤æ´ãããã³ãããããªãã¨ä½ããªãã¨æã£ã¦ã¾ãã ã§ããå¤æ´ã¯ãªããã ãã©ãã«ãªã¯ã®commentã«å¤æ´ã®ãæ¦è¦ããç®çãããã¸ãã¹ã¤ã³ãã¯ãããã©ã®æ°å¤ãæ¹åããã®ãããªã©è²ã ããã«æ¸ãã¦ãããããã¨ã¨ãããã¾ããã èãã¦ãå
git init ãã¦ããä¸çªæåã®commitå 容ãã2çªç®ã®commitã¨ä¸ç·ã«ã¾ã¨ããããã¨å¾ã§æã£ãã ãã¼ããgit rebase -i HEAD~~ããã®fixupã§â¦ $ git rebase -i HEAD~~ fatal: Needed a single revision invalid upstream head~~ãã£ã»ã»ã»(ΦÏΦ) ä¸çªæåã®commitã¯git rebase -i HEADã»ã«ãããã§ã¯é¡ããªãã®ãã»ã»ã»ä¸çªæåã®commitã¯git rebase -i ã§ããªãã®ãã»ã»ã»ï¼â TAE â (@ken_c_lo) April 21, 2013 @ken_c_lo ããæ¹æ³ãã£ããç¥ãããã§ããã¼ã調ã¹ãéãã§ã¯ç¡ããããªã®ããã£ã¦ãèªåã§ãªãã¸ããªä½ãæã¯git flow initã使ã£ã¦æåã«ç©ºã®Initial commitãä½ãããã«ãã¦ã¾ã
2014å¹´05æ19æ¥10:17 Git gitã®æ´å²ä¸ããpasswordãå®å ¨ã«åé¤ããã git ã§ç®¡çãã¦ããããã¸ã§ã¯ãã§ããã£ããã¾ã£ããã¹ã¯ã¼ããç´ãè¾¼ãã§ãã¾ã£ãâ¦ï¼ãã¿ãããªãã¨ããã£ã¦ãã©ããããããããã¼ï¼ï¼ãã¨æã£ã¦ãããã§ãããgit filter-branch ã¨ããæå¼·ã®ã³ãã³ãã使ãã°ãªãã¨ããªããã§ããã ä»å㯠PASSWORD ã¨ããæååãå«ãè¡ã git ã®æ´å²ä¸ããå®å ¨ã«åé¤ããã¨ããã®ããã£ã¦ã¿ã¾ãããsed -e '/xxx/d' ã xxx ã¨ããæååãå«ãè¡ãåé¤ (delete) ããã³ãã³ãã§ãã git filter-branch --tree-filter "find . -type f -exec sed -i '' -e '/PASSWORD/d' {} \;" ãããã㨠PASSWORD ã¨ããæååãå«ãè¡ã®çè·¡ãå¥éº
å³ã¨ã³ãã³ãã§åããï¼ git-flowã«ããéçºã®æµãã¨ä½¿ãæ¹ï¼Gitãã©ã³ãã使ãããªãgit-flowï¼GitHub Flowå ¥éï¼3ï¼ï¼1/2 ãã¼ã¸ï¼ æ°åã«ããã£ã¦git-flowã¨GitHub Flowã使ã£ãGitã®æ´»ç¨ãã¯ããã¯ãç´¹ä»ãã¾ããä»åã¯ãgit-flowã®ä»£è¡¨çãªã³ãã³ãã¨ãgit-flowã«ãããã©ã³ãå©ç¨ã®æµããå³ã¨ã¨ãã«ç´¹ä»ãã¾ãã
åå¿é²ãããã«ãã¤ãå¿ãã¦ãã¾ãgit(git-svn)ã¨subversionã®ã³ãã³ãã®å¯¾å¿è¡¨ãã¾ã¨ãã¾ããã ã³ãã³ã対æ¯è¡¨ subversion git git-svn æ´æ° svn update git pull git svn rebase ã³ããã svn commit git add â git commit git commit -a (gitã³ãããå¾) git svn dcommit git push <url> 追å svn add <file> git add åé¤ svn rm <file> git rm <file> 移å svn mv <file> git mv <file> å¤æ´åãæ¶ã svn revert <file> git checkout <file> ãã° svn log git log å·®å svn diff git diff ã¹ã¤ãã svn
ååã®è¨äºã§GitHubã¨Jenkinsãç¨ããèªåãããã¤ç°å¢ã®æ¦è¦ãã説æãã¾ããã GitHubãJenkinsã¨é£æºããéçºç°å¢ä½æã§ã®rsyncã¨ã®åºä¼ã ä»åã¯ããã®ç°å¢ãå®ç¾ããããã®è¨å®æé ãæ¸ãã¦è¡ãããã¨æãã¾ãã 大ããï¼ã¤ã®æé ãããã¾ãã Jenkinsã®ã¤ã³ã¹ãã¼ã« Apacheã®è¨å® Jenkinsã¨GitHubã®é£æº èªåãããã¤è¨å® éçºç°å¢ ã»CentOS 6.2 ã»Apache ãã¤ã³ã¹ãã¼ã«æ¸ã¿ Jenkinsã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯ãJenkinsã®ã¤ã³ã¹ãã¼ã« é常ãªãã°ãéç¨ãããµã¼ãã¨Jenkinsãåãã¦ãããµã¼ããåããã¹ãã§ããããµã¼ãã³ã¹ãã®é½åãªã©ã§ä»åã¯åä¸ãµã¼ãä¸ã§åãããã¨ã«ãã¾ãã Apacheãµã¼ãã¨Jenkinsãµã¼ããåãport80ã§å¾ ã¤ãã¨ã¯ã§ããªãã®ã§ãjenkinsãport:8080ã§åãããã¨ã«ãã¾ãã ã¾ã
2013-07-13 continuous commit ã®ãä¾ãgit rebase ã決å®çã«å·æ°ããæå¼·ãã¼ã« Uchronie ããªãªã¼ã¹ãã¾ãã Scala Git ãã¾ã¾ã§ git rebase -i ã«ä½åº¦æ³£ãããããã¨ã§ãããã git ã¯æé«ã®ãã¼ã«ã§ãã(ä»ã® SCM ã«åãã¨ããæå³ã§ã¯ããã¾ãã)ãããã¯é常ã«åºæ¥ããããã ãã¹ããåããã³ã«èªåã³ããããã continuous commit ã®ãã©ã¯ãã£ã¹ãæ¡ç¨ãã¦ããç§éã«ã¨ã£ã¦ã interactive rebase ã¯é çã®ç¨®ã§ããã (continuous commit ã«ã¤ãã¦ã¯ Continuous Commit (kyon_mm ããã®çºè¡¨è³æ)ãæè¿ã® git ã®ä½¿ãæ¹ã«ã¤ã㦠- tomykaira makes love with codes ãªã©)ã git-rebase--interact
Node GHã¯node.js/JavaScript製ãBSD Licenseã®ãªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã§ãã ãªã¼ãã³ã½ã¼ã¹ããã使ãããã°ã©ãã¼ã§ããã°GitHubã便å©ã«ä½¿ã£ã¦ããã®ã§ã¯ãªãã§ããããããããªæ¹ã«ãå§ããããã®ãNode GHã§ããGitHubã®APIã使ã£ã¦ãã便å©ãªã³ãã³ããæä¾ãã¦ãããã½ããã¦ã§ã¢ã§ãã ã¤ã³ã¹ãã¼ã«ãã¾ããnpmã使ã£ã¦ã§ããã®ã§ç°¡åã§ãã æåã«èªè¨¼ãæ±ãããã¾ããIDã¨ãã¹ã¯ã¼ããå ¥åãã¾ãã GitHubã®ãªãã¸ããªã«ç§»åãã¦æä½ãã¾ããisã³ãã³ãã¯èª²é¡ããªã¹ãã¢ããããæ©è½ã§ãã isã®å¾ã«æåãã¤ãããã¨ã§æ°ãã課é¡ãç»é²ã§ãã¾ãã ããã¦èª²é¡ãä¸è¦§ã§ç¢ºèªãã¾ãããã®æã®çªå·ãã³ã¡ã³ãã®æã«ä½¿ãã¾ãã ããã«ãã®èª²é¡çªå·ã«å¯¾ãã¦--commentãä»ããã°ã³ã¡ã³ããã§ãã¾ãã ntã§ã¢ã¯ãã£ããã£ãåãã¾ãã ãã®ä»ãNode
ç§ã¯ Git ã®å¤§ãã¡ã³ã§ããããã®ããã»ã¨ãã©ã® UI (ã¦ã¼ã¶ã¼ã¤ã³ã¿ã¼ãã§ã¼ã¹)ãç¹ã« IDE ã«çµ±åããã¦ãããã®ã«é¢ãã¦ã¯ããã»ã©ã®å¤§ãã¡ã³ã§ã¯ããã¾ããããããã® UI ã¯è¤éã§ãããããã®ã§ãããããã¯ããã¤ãã®ä¸è¬ãVCSãè¨èªãã³ãã³ãã«ããããããã¨ãã¾ããã¾ãã¯é ããããã®ã§ãä½ãèµ·ãã£ã¦ããã®ãç解ãããããã¦ãã¾ãã¾ããæ´ã«ã²ã©ãå ´åï¼ Tcl/Tk ã§æ¸ããã¦ãã¾ã⦠端çã«è¨ãã°ãç§ã¯ãããã® UI ãä¿¡é ¼ãã¦ãã¾ããã ã³ãã³ãã©ã¤ã³ã¯ç§ã®ããã®ãã®ã§ããèªåã®ã³ãã³ãã©ã¤ã³ã¯å¥½ããªã®ã§ãããã¯ç´ æ´ããããã®ã§ããã»ã¨ãã©ãã¤ã§ãå±¥æ´ã®ãã°ã©ãã£ãã¯ããã¥ã¼ãè¦ããããã¨ããã³ããããæºåãã¦ããæã«å°ãå©ãã¦ããããã®ã¯è¯ããã¨ã§ãã tig ã§å ¥åãããtig ã¯ããã¹ãã¢ã¼ãã Jonas Fonseca ã«ãã£ã¦æ¸ããã git ç¨ã® ncurses
ã¡ãã£ã¨ããéçºããã¸ã§ã¯ãã«ã¢ãµã¤ã³ããã¦ãæ¢åã®ã³ã¼ããã¼ã¹ãæãã¦ããã£ããã Subversionã®ãªãã¸ããªãéããã¦ãã¦æ®å¿µãããªãã¦ãããã話ãªã®ã§ããã 2013å¹´ã«SVNã£ã¦ã®ããªãã¨ãããã¨ã§ãgit-svnã使ã£ã¦ã¿ããã¨ã«ãã¾ããã 社å ã«ã¯gitã®ãªãã¸ããªããã®ã§ã©ã£ãã§ã·ã¬ã£ã¨ãã£ã¡ã«pushãã¦ä»å¾ã¯ãã£ã¡ã§ããã¨ãï¼ï½ ï¼ã¨ã¯è¨ããç§ã®Gitã¬ãã«ã¯âã®æ¬ãç©ãã§ããç¶æ ãªã®ã§ããâ¦ã â git svnãã©ããªæãããç¥ã ã¨ããããããã¥ã¢ã«ã®ãã¼ã¸ããµã¯ã£ã¨æµãèªã¿ãã¦ã¿ã¾ãâ https://www.kernel.org/pub/software/scm/git/docs/git-svn.html ã³ãã³ãã¯ãgit svnï½ãã£ã¦æãã§ãinit, fetch, clone, rebase,,ã£ã¦é¦´æã¿ãªã³ãã³ãã ç¾ åããã¦ããã©pushããã®
ã½ããã¦ã§ã¢éçºã«é¢ãã¦ã¯ãããã¾ã§ã»ã¼ä¸äººã§å®çµãã¦ãã*1ã®ã§ git ã®éç¨æ¹æ³ãããªãé©å½ã ã£ãã®ã§ããï¼ãã ã®ã³ããããã·ã¼ã³ç¶æ ï¼ãä»åãåä¸ããã¸ã§ã¯ãã«å¯¾ãã¦è¤æ°äººã§ã³ããããã¦ããå½¢ã«ãªã£ã¦ããã®ã§ããã®ç¶æ ã ã¨ãã¯ãã¾ãããªã¨è¨ãæ°ããã¦ãã¾ãããã°ã°ã£ã¦ããã¨ããªãã»ã©ãã¨æãè¨äºããããããã£ãã®ã§ããããã®è¨äºãå ã«èªåã®ããã¸ã§ã¯ãã®ãgit ã®éç¨æéããæ å ±å ±æã®ããã«è¨è¼ãã¦ãããã¨æãã¾ãã åæ ã¾ãå§ãã«ãç¾å¨ã®ããã¸ã§ã¯ãã®ç¶æ³ã¯ä¸è¨ã®ããã«ãªã£ã¦ãã¾ãã éçºã¯ 1 人ã®ã¡ã¤ã³ã³ããã¿ï¼ç§ï¼ã¨æ°äººã®ãµãã¼ãã³ããã¿ï¼ã¢ã«ãã¤ãçï¼ã§è¡ããã ã¡ã¤ã³ã³ããã¿ã¯ãã«ã¿ã¤ã ããµãã¼ãã³ããã¿ã¯é±ã«æ°æéã10æéç¨åº¦ã®å¤åå½¢æ ãµãã¼ãã³ããã¿ã«å¯¾ãã¦ã¯ãåºæ¬çã« 1 æ©è½ï¼1 ãã±ããï¼ã 1 人ã§å®çµããããã«ä½æ¥ãé åããããæéçãªå ¼ãåããã
第4åshinagawa.redmineåå¼·ä¼ã«åå ãã¦ãã - torutkã®æ¥è¨ã«ã¦ã岡æ¬éå²ããã®çºè¡¨ã«Redmineã¨Gitã®é£æºï¼èªè¨¼çµ±åï¼ãããã¾ããããã®åå ã¬ãã¼ãã§æ¬¡ã®ããã«æ¸ãã¦ãã¾ããã ä¸å¤®ãªãã¸ããªã¯Redmineã§ããGitå©ç¨OKã¨ã®ãã¨ã§ããRedmine 2.1ã§ã¯Gitèªè¨¼çµ±åãæè¼ãããRedmineã®ãã¼ã«ã«åºã¥ããªãã¸ããªã®read権ã»write権ã®å¶å¾¡ãã§ããããã§ãããã®è©±ã¯ç¥ãã¾ããã§ãããgitoliteã§sshéµã使ã£ã¦ã¦ã¼ã¶ã¼ç®¡çããã®å¤§å¤ã ãªãã¨æã£ã¦ã¾ããããªããè¨å®ã¯ãApacheã®è¨å®ãã¡ã¤ã«ã«ããããè¨è¼ããããã§ããGitãªãã¸ããªåã«å¶ç´ãããããã§ãã ããããGitã¯è»½ãããã£ã¦ã¿ãç¨åº¦ã§ããGitãµã¼ãã¼ã®ç«ã¦æ¹ãæªç¥ã®ã¾ã¾ã§ãï¼gioliteã¯éä¸ã§æ«æï¼ãããæã決ãã¦æ§ç¯ãã¦ã¿ã¾ãããã®ã§ããã¶ãã«è©¦è¡é¯èª¤ãå«
注1: ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã®é©åãªã³ãã³ããRedmineã¨åããµã¼ãã«ã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã ä¾ãã°RedmineããSubversionãªãã¸ããªã«ã¢ã¯ã»ã¹ããå ´åãsvnãã¤ããªãRedmineã稼åãããã¹ãã«ã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ãã 注2 : ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã®ã³ãã³ãã¯Redmineããå®è¡ã§ãããããã¹ãåã£ã¦ãããªã©ãã¦ããå¿ è¦ãããã¾ãã 以ä¸ã®ããããã®æ¹æ³ãããã¾ãã ã³ãã³ãã«ãç½®ããã¦ãããã£ã¬ã¯ããªã«PATHãéã£ã¦ãã: ããã³ãã³ãåãããã©ã«ãã®ãã®ã¨ã¯ç°ãªãå ´åã¯ãRedmineã®è¨å®ãã¡ã¤ã«ã§å¼ã³åºãã³ãã³ãåãå¤æ´ã§ãã¾ã Redmineã®è¨å®ãã¡ã¤ã«ã§ãã«ãã¹ãæå®ãããã¨ãã§ãã¾ãã æå¾ã«ãã管çãâãè¨å®ãç»é¢ã®ããªãã¸ããªãã¿ãå ã使ç¨ãããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ãã§ããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ãæå¹ã«ããã®ãå¿
git ãªãã¸ããªã® .git/config ã«ã¯ remote origin ã¨ãªã URL ãããã¹ãã§æ¸ããã¦ããã [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = ssh://user@host/~user/git-bare/repo.git [branch "master"] remote = origin merge = refs/heads/master ãªãããããã®å¤ã¯ git config -l ã§åç §ãããã¨ãã§ããããã®ãã¡ remote.origin.url ãæ¸ãæãããã¨ã§ pull/push ã®å¯¾è±¡
git pullã¯ä½¿ããªãã¦ããã åå¿è ã¯git pullã使ããªãæ¹ããã æã ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã¯åå¼·ã大好ããªã®ã§ãã³ãã³ããããã¨ãããåå¼·ãã¦ä½¿ãããªããªããã°ãããªãã¨èããã¡ã§ãããã¨ãã«ã¯ãè¦ããªãã使ããªããã¨ããçºæ³ã大äºãªã®ã§ã¯ãªãã§ããããã 以ä¸ã«ãã®çç±ãã®ã¹ã¾ãã git pullã¯ä½¿ãå¿ è¦ããªã git pullã使ããªãã¨ã§ããªããã¨ãã¨ããã®ã¯ããã¾ããã 使ããªãã¦ãå ¨ç¶å°ãã¾ããã git fetchã¨git mergeã¨git rebaseã ãã§ãã¹ã¦ã®ç¨ã¯è¶³ãã¾ãã ç§ã¯ãã¼ã éçºã§Gitãæ¬æ ¼çã«ä½¿ãå§ãã¦æ°ãæçµã¡ã¾ãããæ®æ®µã®ä½æ¥ã§git pullã使ã£ããã¨ã¯ãªããããã§å°ã£ããã¨ãããã¾ããã git pullã使ããªããã°ãä½è¨ãªè½ã¨ãç©´ã«è½ã¡ãªã git pullã«ã¯è½ã¨ãç©´ãããã¾ãã åå¿è ã¯ããã¦ããã®ç©´ã«è½ã¡ã¾ãã ã
mirahãæåã«ã¤ã³ã¹ãã¼ã«ããæã«ã git://github.com/headius/mirah.git ã®æ¹ããæã£ã¦ãã¦ã¦ããã¨ãã git://github.com/mirah/mirah.git ã®æ¹ãææ°ãªãã¨ã«æ°ã¥ãã¦ãå¥ã«ãã®ã¾ã¾æ°ãã«cloneãã¦ããã°ãããã§ããã originãå¤ãããªãã®ããª?ã¨æã£ãã®ã§ã¡ã¢ã **追è¨** @murachue ããããæãã¦ããã ãã¾ãã¦ã % git remote set-url origin <æ°ãããªãã¸ããªURL> ãæ®éã¨ã®ãã¨ãæããã«ãã£ã¡ã®ã»ããèªç¶ãªãããã§ãã! @murachue ãããããã¨ããããã¾ã!! 使ç¨ããæãã¯ä»¥ä¸ã®ã¨ããã§ãã regina% git remote -v origin git://github.com/headius/mirah.git (fetch) origin gi
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}