You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
è¤æ°å㧠iOS ã®ããã¸ã§ã¯ããå¼ã㨠project.pbxproj ãã¡ã¤ã«ãé »ç¹ã«ã³ã³ããªã¯ããèµ·ããã®ã§ã¹ãã¬ã¹ãã«ã§ããããã®ãã¡ã¤ã«ãèªåã§ãã¼ã¸ãã¦ããããã¼ã« mergepbx ãåå¨ããã®ã§ããããå°å ¥ãã¦ç²¾ç¥ã®å®å¯§ãå¾ããã¨å³ãããã®ãã¼ã«ã¯ãªãã¸ããªã使ãã¡ã³ãã¼å ¨å¡ãå°å ¥ããå¿ è¦ã¯ãªããèªåã ããå°å ¥ãããã¨ãã§ããã®ã§ãå°å ¥éå£ã¯ããããä½ãã å ¬å¼ãµã¤ã å°å ¥ã¯ä»¥ä¸ã®æé ã§è¡ãã $ git clone https://github.com/simonwagner/mergepbx $ cd mergepbx/ $ ./build.py $ sudo cp mergepbx /usr/local/bin/ $ vi ~/.gitconfig [merge "mergepbx"] name = XCode project files merger driver
#!/bin/sh rm -fr .git *.txt .gitignore git init echo init.sh>.gitignore && git add .gitignore && git commit -m "Initial Commit" echo b>b.txt && git add b.txt && git commit -m "master 1" git branch other echo c>c.txt && git add c.txt && git commit -m "master 2" echo d>d.txt && git add d.txt && git commit -m "master 3" git checkout other echo e>e.txt && git add e.txt && git commit -m "other 1" echo
Gitã®æ¬æ ¼å°å ¥ã®åã«ããã¼ã¸ã®ã³ã³ããªã¯ã解決ã«ä½¿ç¨ãããã¼ã¸ãã¼ã«ã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã®ã§ã¡ã¢ã ã³ã³ããªã¯ãããéã«ãããã¹ãã¨ãã£ã¿ã§ç´æ¥ä¿®æ£ããã®ã¯é常ã«é¢åãããã§mergetoolã使ãã¨ãã¼ã¸ä½æ¥ãããªã楽ã«ã§ãã¾ãã ãã ãããã©ã«ãã®mergetoolã ã¨ä½¿ãã¥ãããGoogleã§è²ã 調ã¹ã¦ã¿ãã¨p4mergeããªã¹ã¹ã¡ãããªã®ã§è©¦ãã¦ã¿ã¾ããã åèãµã¤ã http://d.hatena.ne.jp/clover-leaf/20110126/1296058882 http://d.hatena.ne.jp/nakamura001/20110321/1300699836 ã¤ã³ã¹ãã¼ã«æ¹æ³ ãã¡ãããThe Perforce Visual Client (P4V)ããã¦ã³ãã¼ããã¾ããOSã«åããã¦ãã¦ã³ãã¼ãããã ãã¦ã³ãã¼ããããã¡ã¤ã«ãã¤ã³ã¹ãã¼ã«ãp4mergeã®
ã³ã¼ãã¬ãã¥ã¼ãã¦ã¾ããï¼ ãã³ã¼ãã¬ãã¥ã¼ãããã - pblogãã§ã触ããã®ã§ããã ä»åã¯ã³ã¼ãã¬ãã¥ã¼ã®è©±ã§ãã ã³ã¼ãã¬ãã¥ã¼ã£ã¦ä½ãããã¦è¯ããåãããªãã£ãããã¬ãã¥ã¼ã¢ã¼ã«è² æ ãªããããªãããããã£ã¦å°»è¾¼ã¿ããã¡ã§ãããã¬ãã¥ã¼ãã¦ãããåã«æ°ãä»ãããã¨ããªã«ãã¬ãã¥ã¼ãã¦ãããã®ããããã¦éã«ã¬ãã¥ã¼ããã®ããããã¦ä½ãèµ·ããã®ãããããèãã¦ããã¾ãããã ã¬ãã¥ã¼ãã¦è²°ãåã«æ°ãä»ããã㨠ã¬ãã¥ã¢ã¼ã®è² æ ãæ¸ããã®ã¯å¤§äºã§ãã ã³ã¼ãã£ã³ã°è¦ç´ã«æ²¿ã£ã¦ãããï¼ã¨ãã£ãç°¡åãªã¬ãã¥ã¼ã¯ãç¬ã«ããããã¨ããæ¹æ³ãããã¾ãããããããgit-pushããåã«ããã¼ã«ã«ã®git-commitæç¹ã§å¯¾å¦ãã¦ããã¨ããã®ãããã§ãã ç¬ is rubocopã§ããã rubocopãjshintãªã©ãgit-hookã«ã¾ã¨ãã¦è¨å®ã§ããpre-commit gemã便å©ãã
Gitã®ã³ãããã¡ãã»ã¼ã¸ã®æ¸ãæ¹ èªåãªãã«ã¾ã¨ãã¦ã¿ã¾ãããGitæ´æµ ãã®ã§ãæè¦åéä¸ã§ãã ï¼2014å¹´12æ17æ¥è¿½è¨ï¼ æ³å以ä¸ã«ããããã®æ¹ã«ã¹ããã¯ãªãã¯ã¦ããªãããã ããã®ã§ãã¯ã¦ãã§ãªãã»ã©ï¼ã¨æã£ãã³ã¡ã³ãããã¨ã«å°ãä¿®æ£ã»å çãã¦ã¿ã¾ããã ï¼2022å¹´1æ4æ¥è¿½è¨ï¼ ææ°ã®æ¸ãæ¹ããã¡ãã«æ¸ãã¾ããã https://zenn.dev/itosho/articles/git-commit-message-2023 åå 以ä¸ã®ãã©ã¼ãããã¨ãã¾ãã 1è¡ç®ï¼å¤æ´å 容ã®è¦ç´ï¼ã¿ã¤ãã«ãæ¦è¦ï¼ 2è¡ç® ï¼ç©ºè¡ 3è¡ç®ä»¥éï¼å¤æ´ããçç±ï¼å 容ãè©³ç´°ï¼ æ¥æ¬èªã§ãè±èªã§ãOKã§ããããªãã¸ããªã§çµ±ä¸ãã¦ãã ããã 1è¡ç® ã³ããã種å¥ã¨è¦ç´ãæ¸ãã¾ãããã©ã¼ãããã¯ä»¥ä¸ã¨ãã¾ãã [ã³ããã種å¥]è¦ç´ ã³ãããç¨®å¥ ä»¥ä¸ã®ä¸ããé©åãªç¨®å¥ãé¸ã³ã¾ãã ï¼å¤ããã¦ãæ©ãã®ã§
ä¾ãã°ãgit pullã¨ãããã¨ãã¯cdãã¦ããgit pullãã人ãå¤ãã¨æãã¾ãã ãã¨ãã°rbenvãã¢ãããã¼ããããã¨ãã $ cd ~/.rbenv $ git pull $ cd ~/.rbenv/plugins/ruby-build $ git pull ãªãã¦ãã¾ãããã ã§ããã¡ãã¡ cd ããã®é¢åãããã¨æãã¾ãããï¼ å®ã¯gitã«ã¯ -C ãªãã·ã§ã³ã¨ããã®ããã£ã¦ãããã使ã㨠cd ããã«ã¬ãã¸ããªã®å ´æãæå®ãããã¨ãã§ãã¾ãã git -C <ã¬ãã¸ããªã®å ´æ> ãµãã³ãã³ã ã¨ãã風ã«ä½¿ãã¾ãã ãªã®ã§ããã£ãã® rbenvãæ´æ°ããä¾ã¯ãã®ããã«æ¸ãã¾ãã $ git -C ~/.rbenv pull $ git -C ~/.rbenv/plugins/ruby-build pull ã·ã§ã«ã¹ã¯ãªãã¨ãcrontabãã git ãå®è¡ããã¨ãã¯å¤§
Git åå¿è ãä¸ç´è ã«åãã¦ãç®ç«ããªããã©ä¾¿å©ãªã³ãã³ããç´¹ä»ãã¾ãã
GitHub ãã¬ã¼ãã³ã°ãã¼ã ããå¦ã¶ Git ã®å é¨æ§é ã®ãã¼ãã§ãã ææ§ãªã¨ãããããã®ã§ãééãããã£ããæãã¦ãã ããï¼ http://connpass.com/event/3808/ Graphs, Hashe, and Compression, Oh My! ç»å£è ï¼@matthewmccull Hashesã«ã¤ã㦠å¾æ¥ã® CVCS ï¼éä¸ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ï¼ã®ãªãã¸ã§ã³çªå·ã¯é£çªã SVN ã¯ãµã¼ãã¼ã«ãããã¤ããæç¹ã§ãªãã¸ã§ã³çªå·1ã¨è¨å®ãããã Git 㯠SHA1 ãã¤ãã£ã¦ããã40æ¡ã®16é²æ°ã®ãã£ã³ã¬ã¼ããªã³ããã¤ãã¦ããããã¯çè«ä¸ã¯éè¤ããªã大ããããããããã¨ã§åç´ã§å¼·åºãª DVCS ï¼åæ£ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ï¼ãã¤ãããã æ°ãããã¡ã¤ã«ã追å ããã¨ã.git/objects/55/7db03de...(SHA1 finger print)
ã¯ããã« ãã®è¨äºã¯ãçè ãèªåèªèº«ã®ããã«ã¾ã¨ãããã®ã§ããã以ä¸ã®ãããªæ¹ã«ãã¨ã£ã¦ããªã¹ã¹ã¡ã§ããã®ã§ãã²ã覧ãã ããã ããããGitãè¦ãããæ¹ï¼ã¾ã ç°¡åã«è¿½ãã¤ãã¾ãï¼ï¼ Git使ã£ã¦ãããã©å®ã¯ããããã£ã¦ããªãæ¹ï¼æãããè£ãç解ããã°æå¤ã¨ç°¡åã§ã·ã³ãã«ãªãã§ããï¼ï¼ æ¥å¸¸çã«Git使ãããªãã¦ãããã©ãããã¨ããã¨ãã°ã°ã£ã¦ãã¾ãæ¹ãç解ãæ·±ããã®ã«å½¹ç«ã¤ã¨æãã¾ããï¼æããªãï¼Gitï¼ï¼ï¼ Gitã®åºç¤ã»æ¯è¿ãåããµã¤ã Gitæ¬å®¶ï¼ ãµã¤ããã¶ã¤ã³ãããªãæ´ç¤¼ï¼ãããã¸ãã«ã人æ°å ·åã伺ãã¾ãã git-scm.com ããã¥ã¡ã³ã(æ¥æ¬èª)ãè±å¯ã§ç´ æ´ãããã Git - Book The entire Pro Git book, written by Scott Chacon and published by Apress, is available here
åæ: GitHub flow ã使ã£ã¦ãã¦CIãµã¼ãã¼ã¯Jenkins æè¿ã¡ãã£ã¨éçºããã¼ã®æ¹åããã¦ãã¨ã¦ãããæ©è½ãã¦ã¦æºè¶³ãã¦ããã®ã§ç´¹ä»ãã¦ã¿ãã ãã®æ¹åãããåã®æ©ã¿: pull-requestã§ã³ã¼ãã¬ãã¥ã¼ã¯ã§ããã®ã ãã©ãcssã¨ãjavascriptãªã©ã®è¦ãç®ãåä½ã®å¤æ´ã£ã¦ã³ã¼ãã ãã ã¨ãããã«ãããã¬ãã¥ã¼ãã人ãåèªãã¼ã«ã«ç°å¢ã§å®è¡ããã®ãã ããã ã³ã¼ããèªã¾ãªããã¶ã¤ãã¼ã¨ããããã¯ããªã¼ãã¼ã¨ãã®äººããpull-requestã®ã¬ãã¥ã¼ããã»ã¹ã«ç°¡åã«åå ã§ããªã(ééçºè å ¨å¡ã®ã¨ããã§ãã¼ã«ã«ç°å¢è¨å®ããã®ã¯ã ãããã)ã ã³ã¼ãçã«okã«è¦ãã¦masterã«mergeå¾ãä½ãåé¡(ç¹ã«ä»æ§çãªåé¡ãããã¶ã¤ã³çãªåé¡)ãçºçããå ´åããä¿®æ£branchãä½ã£ã¦pull-requestãã¨ããããã¼ãå度åããªãã¨ãããªããæåã®pull-req
% git branch -r --merged | grep -v origin/master | perl -pE 's!^\s*origin/!!' | xargs git push --delete origin ãã¨ã¯ãgit fetch --pruneã¨ãããã°ãgit branch -r ãã¹ãããªãã¦è¯ãã --mergedã«origin/masterã¨ããç¾ããã®ã§ãgrep -v origin/masterã¨ããã£ã¦ç¡çããæãã¦ãããgit flowã¨ãã§developãã©ã³ãã¨ãä½ã£ã¦ãå ´åã¯ãããæãã¦ããå¿ è¦ããããã ãã®è¾ºã®--mergedã®å¤å®ãããããããªã(ã©ããã«ãã¼ã¸å¾ã«ã³ããããçºçãããã©ã³ãã¨ãããªã¹ãããã¡ããã¨ãï¼)ããã£ããæãã¬ãã©ã³ããæ¶ãã¦ãã¾ããããããªãã®ã§ãã¨ã«ãããã«ãã¨ãªã£ããæã«èªå·±è²¬ä»»ã§ãªã¹ã¹ã¡ã ãã¨ãgithub
社å ã§éå¬ããã天ä¸ä¸.gitconfig大ä¼ã®è³æã§ãã ã¹ã©ã¤ãæå¾ã®åèURLã¯ãã¡ãã«ãè²¼ã£ã¦ããã¾ãã ããããã¡ã¤ã«(https://github.com/ama-ch/dotfiles) oh-my-zshã¨homesickã使ã£ã¦dotfilesãGitHubã§ç®¡çããããã«ãã(http://ama-ch.hatenablog.com/entry/2012/09/23/201217)
ããããããµã«å çã®Gitå ¥éã¸ã Gitãã¤ãã£ã¦ãã¼ã¸ã§ã³ç®¡çãã§ããããã«ãªãããã«ä¸ç·ã«åå¼·ãã¦ããã¾ãããï¼ ã³ã¼ã¹ã¯4ã¤ãGitåå¿è ã®æ¹ã¯ãå ¥éç·¨ãããã©ãããGitã使ã£ãäºãããæ¹ã¯ãçºå±ç·¨ããããããã§ããããã«ããã«ãªã¯ã¨ã¹ãç·¨ãã§ã¯ãã³ã¼ãã¬ãã¥ã¼ããæåããã¼ã ã«æ ¹ä»ããã¾ãããã ãããï¼ä½ã ã£ãâ¦ï¼ãã¨ããæã¯ãéå¼ãGitãã§èª¿ã¹ã¦è¦ã¦ãã ãããã
2. èªå·±ç´¹ä» åå: 濱ç°åº·è²´ HN: (ã£Â´âï½)㣠ãã¼ Twitter ID: @nullpopopo Facebook: http://www.facebook.com/nullpopopo è·æ¥: ã¤ã³ãã©ã¨ã³ã¸ã㢠趣å³: åå¼·ä¼éå¶ èªè»¢è» Linux 7ã¤éå ·: vim awk grep ps netstat ãã¤ã ãªãã¤ã¬ã¯ã å°æ¥ã®å¤¢: geekå£å° (iDCä½µè¨) å»ºè¨ 3. githubã£ã¦ä½ï¼ ⢠gitã®ããã¸ã§ã¯ããã¹ãã£ã³ã°ãµã¼ã㹠⢠100MBã¾ã§ç¡æã§ä½¿ãã ⢠gitãªãã¸ããªãèªåã§ä½ã£ã¦å ¬éã§ãã ⢠WEBä¸ããå¤æ´å±¥æ´ãªã©ãåç §å¯è½ ⢠githubã§å ¬éããã¦ããä»ã®OSSã®ã³ã¼ããforkãã¦éçºãããã¨ãå¯è½ ⢠ãã ããã°ãã©ããã³ã°ã·ã¹ãã ããªã ⢠ãã°ãã©ããã³ã°ã¯Issueã§ã§ãã¾ã â» åºå±ï¼ ã¯ã¦ãªãã¼ã¯ã¼ã http
ããã«ã¡ã¯ãæè¤ã§ãã çæ§ã¯ã½ã¼ã¹ã³ã¼ãã®ç®¡çï¼ãã¼ã¸ã§ã³ç®¡çï¼ãã©ã®ããã«ãã¦ã¾ããï¼ ä»åã¯"git"(ã®ãã)ã¨ããããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã«ã¤ãã¦ããç´¹ä»ããã¾ãã * ãã¼ã¸ã§ã³ç®¡çã£ã¦ï¼ ä¾ãã°ãã½ã¼ã¹ã³ã¼ãä¸ã«æã®ã³ã¼ããã³ã¡ã³ãã¢ã¦ãããã¦ãæ®ãã¦ããã ãããã¯ãxxx.php.bakã¿ããã«ãæã®ã³ã¼ããåã£ã¦ããã ãããªéçºæ¹æ³ããã£ããã¨ã¯ããã¾ãããï¼ ãã®æ¹æ³ããã¦ããã¨ãå¾ã§è¦è¿ããã¨ãã«ããããªãã ã£ãï¼ã£ã¦ãã¨ã«ãªã£ã¦ãã¾ããã¡ã§ãã æ¶ãã¹ããã©ããåãããªãã³ã¼ãããã¡ã¤ã«ãæ®ã£ã¦ããã£ã¦ç¶æ³ã¯ããã¾ãæ°åçã«è¯ããªãã§ãããã ããã解決ã§ããæ¹æ³ããgitãªã©ã®ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã§ãã ã½ã¼ã¹ã³ã¼ãã®ç·¨éå±¥æ´ï¼ãã¼ã¸ã§ã³ï¼ãè¨é²ãããã¨ã«ãã£ã¦ãç¹å®ã®éçºå±¥æ´ã«æ»ããææ°ã®ã½ã¼ã¹ã³ã¼ãã¨æ¯è¼ãããã¨ãã£ããã¨ãå¯è½ã§ãã ãã¼ã¸ã§ã³ç®¡çã®è¯
æè¿ã½ã¼ã¹ç®¡çã«Gitã使ãããã¸ã§ã¯ããããªãå¢ãã¦ãã¾ãããã½ã¼ã¹ç®¡çã¯SVNã§ååã¨æã£ã¦ããã¦ã¼ã¶ãããã¸ã§ã¯ãã®æ¹éã¨ãã¦Gitã«ãªã£ãå ´åãæä½éã®æä½ãè¦ããªãã¨ä½æ¥ã«æ¯éããããã¦ãã¾ãã¾ãããã®éã«ã³ãã³ãã©ã¤ã³ã§æä½ãã¦ãè¯ãã®ã§ãããä»ã¾ã§SVNã§Subversiveã¨ãSubclipseãªã©ã使ã£ã¦ããEclipseã¦ã¼ã¶ã¯ãEclipseããGitãæä½ãããã¨ããã§ãã ããã§EGitã使ããã¨æã£ã¦ãEGitèªä½ã¯ããããæ´å²ãããå²ã«æå¤ã¨æ å ±ãå°ãªãã¦å°ã£ã¦ãã¾ã£ã人ãããã®ã§ã¯ãªãã§ããããï¼ã ä»åã¯ããã¸ã§ã¯ãã§ä½¿ãã«å½ãã£ã¦ãæä½éç¥ã£ã¦ããã°ã©ãã«ããªããããªæä½ãã¾ã¨ãã¦ã¿ããã¨ã«ãã¾ãããæ§æã¨ãã¦ã¯å©ç¨è å´ã¨ãã¦Gitãå©ç¨ãããã¨ãæ³å®ãã¦ã¿ã¾ãããå®éãä½æ¥ãã¦é çªã¨ã¯éãã®ã§ãã¡ã¤ã«ã«ä¸é¨çç¾ããã¨ãããããã¾ããæ°ã«ããªãã§ãã ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}