World music and culture interactive experience
使ãåãã®åºæº .gitkeep 㨠.gitignore ã¯ãã空ã®ãã£ã¬ã¯ããªã«ãã¡ã¤ã«ã追å ãããã¨ãã«ããã®ãã¡ã¤ã«ã Git ã§ã®ç®¡ç対象ã«å«ããããï¼ãã¨ããåºæºã§ã使ãåãããã¾ãã å«ãããå ´å㯠.gitkeep ãå«ããããªãå ´å㯠.gitignore ã使ãã¾ãã .gitkeep ã使ãåºæºã¨ä¾ .gitkeepã¯ããããã©ã«ãã§ã¯ãã¡ã¤ã«ãåå¨ããªãããã©ããã¡ã¤ã«ã追å ããããããã®ãã¡ã¤ã«ã Git ã§ã®ç®¡ç対象ã«ããããå ´å ã«ä½¿ãã¾ãã ä¾ãã°ãlumen ã® databse/migration ãã£ã¬ã¯ããªãªã©ã¯ãè¯ãä¾ã§ãã ãã®ãã£ã¬ã¯ããªã¯ããã¼ã¿ãã¼ã¹ã®åæåãããã¹ã¯ãªãããããã¦ããããã«ä½¿ããããã£ã¬ã¯ããªãªã®ã§ãããã¬ã¼ã ã¯ã¼ã¯éçºè çã«ã¯ã ããã©ã«ãã§ããã¦ãããã¡ã¤ã«ã¯ç¹ã«ãªãããããã ã¦ã¼ã¶ã ä½ã£ããã¡ã¤ã«ã¯ Git ã§ãã¼
git init ãããã¨ã .git ã¨è¨ããã£ã¬ã¯ããªãä½ããã¾ãã Gitã«å¿ è¦ãªãã¡ã¤ã«ã¯å ¨ã¦ãã®ãã£ã¬ã¯ããªã«å«ã¾ãã¦ããã®ã§ãããæ®æ®µã¯ãã¾ãæèããªã人ã®æ¹ãå¤ãã¨æãã¾ãã ä»å㯠.git ãã£ã¬ã¯ããªã®ä¸èº«ãå°ãæ¢æ¤ãã¦ã¿ã¾ãããã .gitãã£ã¬ã¯ããªã®æ§æ ã¾ã㯠git init ã㦠.git ãã£ã¬ã¯ããªãä½æãã¦ã¿ã¾ãã .git ã®ä¸èº«ã¯ãã®ããã«ãªã£ã¦ãã¾ãã . âââ HEAD âââ branches âââ config âââ description âââ hooks â âââ applypatch-msg.sample â âââ commit-msg.sample â âââ fsmonitor-watchman.sample â âââ post-update.sample â âââ pre-applypatch.sample â
Git ã®ãªãã¸ã§ã¯ã æåã«å°ãã ãGitã®ãã¼ã¿(ãªãã¸ã§ã¯ã)ã®ä¿åæ¹æ³ã«ã¤ãã¦è§¦ãã¾ãã ãªãã¸ã§ã¯ã㯠.git/objects/ ã«ä¿åããã¾ãã ãã®ä¸ã«ãªãã¸ããªã®ãã¡ã¤ã«ãå¹ççã«ä¿åãã¾ãã ãã¼ã¸ã§ã³ãã¨ã«åããã¡ã¤ã«ãéè¤ãã¦ä¿åãããã¨ã¯ããã¾ããã ãã¡ã¤ã«ã ãã§ã¯ããã¾ãããï¼ç¨®é¡ã®ãªãã¸ã§ã¯ããä¿åãã¾ãã blob: Binary Large OBjecctã®ç¥ã§ãã¤ã¾ãã¯ãã¡ã¤ã«ã§ãããããããã¡ã¤ã«åã¯å«ã¿ã¾ããã tree: ï¼é層åã®ãã£ã¬ã¯ããªã®å ¨ãã¡ã¤ã«åã¨ãã¡ã¤ã«å 容ã®ããã·ã¥ã¨æ¨©éã§ãã commit: git commit ã§ä½ããã¾ããã³ãããå 容ã¨ãä½æè ãä½ææ¥æãªã©ãå«ã¾ãã¾ããã³ãããããã·ã¥ãã³ãããSHAã¨å¼ã°ãããã®ã§ãã tag: git tag ã§ä½ããã¾ããæ¬è³ªçã«ã¯ commit ã¨ãã¾ãå¤ããã¾ããã ãªããéè¤
Git_ãã¡ã¤ã«ã®å±¥æ´ãå®å ¨ã«åé¤ãã.md Git ãã¡ã¤ã«ã®å±¥æ´ãå®å ¨ã«åé¤ãã ç§å¯éµãªã©èª¤ã£ã¦ã³ããããã¦ãã¾ã£ãå ´åã«å±¥æ´ãå®å ¨ã«åé¤ããæé åè:6.4 Git ã®ãã¾ãã¾ãªãã¼ã« - æ´å²ã®æ¸ãæã åä½ç¢ºèªç¨ã«ãã©ã³ããä½æãã¦è©¦ã $ git checkout -b clean-key-file åä½ç¢ºèªç¨ã«ãã©ã³ãã§git filter-branchãå®è¡ $ git filter-branch --tree-filter 'rm -f common/key/id_rsa' HEAD Rewrite 856f0bf61e41a27326cdae8f09fe708d679f596f (12/12) Ref 'refs/heads/clean-key-file' was rewritten clean-key-fileãã©ã³ãã§id_rsaãå±¥æ´ããå®å ¨ã«åé¤ããã¦ããã
ãã£ã¹ï¼ééãããã¡ã¤ã«ãgit pushãã¡ãã£ãï¼ ãã®è¨äºã§ã¯èª°ããä¸åº¦ã¯ããããã§ãããï¼ï¼ï¼ãGitã¬ãã¸ããªãã"ã¤ãã"ãã¡ã¤ã«ãæ¶ãå»ãæ¹æ³ã解説ãã¾ããçè ã¯ä¸»ã«è¶£å³ã§ããã°ã©ãã³ã°ãããéã«Gitã使ç¨ãããããæ¥åçã®è¦ç¹ããè¦ãã¨ãä¸é©åãªç¹ãããããããã¾ããã 以ä¸ã§ä½¿ç¨ãã¦ãããgit push -fã¯ä½¿ãæãééããã¨é常ã«å±éºãªã³ãã³ãã§ãããªãå±éºãªã®ããããã¾ã§ã¯ä½¿ããªãã»ããç¡é£ã ã¨æãã¾ããã©ããã¦ã使ããªãã¨ãªããªãã¨ãã¯ãä»äºãªãGitã®ã¨ãã¹ãã¼ãã身è¿ã«ããã¨æãã®ã§ããã®äººã«å©è¨ãæ±ãã¾ãããã 対象ã¨ãªãäºä¾ ãã®è¨äºã¯ã以ä¸ã®ãããªç¨®é¡ã®æ å ±ãå«ãã ãã¡ã¤ã«ããã³ãããï¼ããã·ã¥ãã¦ãã¾ã£ã人ããGitã¬ãã¸ããªããéå»ã«ããã®ã¼ã£ã¦åé¤ããæ¹æ³ã«ã¤ãã¦ã¾ã¨ãã¾ããã ç§å¯éµ ãã¹ã¯ã¼ã å人æ å ± etc... 対象ã§ãªãäºä¾ 以ä¸ã®
ä»äºã§å¿ è¦ã«ãªã£ãã®ã§ããã¡ã¤ã«ãå±¥æ´ãã¨æ¶ãæ¹æ³ã試ãã¦ã¿ã¾ããã #ãã¡ã¤ã«ãæ¶ãã¦ãå±¥æ´ã¯æ®ã£ã¦ãã ä¾ãã°ã1GB ã®ãã¤ããªãã¡ã¤ã«ã Commit & Push ããã¨ãã¾ãã ããã¦ãããã git rm ã§åé¤ããã¨ãã¦ããªãã¸ããªã®å®¹éã¯æ¸ãã¾ããã ãªããï¼ git rm ã¯ããã¡ã¤ã«ãåé¤ããããã¨ã«ããã³ãã³ããã§ãã£ã¦ããGit ãªãã¸ããªå ã«ä¿åããã¦ããå±¥æ´ãæ¶ãã³ãã³ããã§ã¯ãªãããã§ãã ãã®ãµã¤ãã«æ¸ããã¦ãã¾ãããGit ã¯ãå·®åãã§ã¯ãªããã¹ãããã·ã§ããããä¿åãã¦ããã©ã®ã¹ãããã·ã§ãããåç §ããã®ãï¼ããã³ãããåä½ãã¨ã«åãæ¿ããä»çµã¿ã§ãã git rm ã¯ããã®ãã©ã®ã¹ãããã·ã§ãããåç §ããã®ãï¼ãã¨ããæ å ±ãåé¤ããã³ãã³ãã§ãã ããããã¼ã¿ã丸ãã¨æ¶ãããã®ã§ããã°ãä¿åããã¦ããå ¨ã¦ã®ãã¹ãããã·ã§ããããæ¶ããªããã°ãªãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}