Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
- gitattributes
- Command-line interface conventions
- Everyday Git
- Frequently Asked Questions (FAQ)
- Glossary
- Hooks
- gitignore
- gitmodules
- Revisions
- Submodules
- Tutorial
- Workflows
- All guides...
Administration
Plumbing Commands
- 2.46.1 → 2.47.0 no changes
- 2.46.0 07/29/24
- 2.44.1 → 2.45.2 no changes
- 2.44.0 02/23/24
- 2.43.2 → 2.43.5 no changes
- 2.43.1 02/09/24
- 2.43.0 11/20/23
- 2.39.1 → 2.42.3 no changes
- 2.39.0 12/12/22
- 2.36.1 → 2.38.5 no changes
- 2.36.0 04/18/22
- 2.33.1 → 2.35.8 no changes
- 2.33.0 08/16/21
- 2.30.1 → 2.32.7 no changes
- 2.30.0 12/27/20
- 2.23.1 → 2.29.3 no changes
- 2.23.0 08/16/19
- 2.22.1 → 2.22.5 no changes
- 2.22.0 06/07/19
- 2.21.1 → 2.21.4 no changes
- 2.21.0 02/24/19
- 2.19.1 → 2.20.5 no changes
- 2.19.0 09/10/18
- 2.18.1 → 2.18.5 no changes
- 2.18.0 06/21/18
- 2.15.4 → 2.17.6 no changes
- 2.14.6 12/06/19
- 2.13.7 05/22/18
- 2.12.5 09/22/17
- 2.9.5 → 2.11.4 no changes
- 2.8.6 07/30/17
- 2.7.6 07/30/17
- 2.6.7 05/05/17
- 2.5.6 no changes
- 2.4.12 05/05/17
- 2.3.10 no changes
- 2.2.3 09/04/15
- 2.1.4 no changes
- 2.0.5 12/17/14
説æ
- 代æ¿ãªããžã§ã¯ãããŒã¿ããŒã¹ (alternate object database)
-
代æ¿ã¡ã«ããºã ãä»ããŠã ãªããžã㪠ã¯ããã® ãªããžã§ã¯ãããŒã¿ããŒã¹ ã®äžéšãããalternateããšåŒã°ããå¥ã®ãªããžã§ã¯ãããŒã¿ããŒã¹ããç¶æ¿ã§ããŸãã
- ã㢠ãªããžã㪠(bare repository)
-
ãã¢ãªããžããªã¯ãéåžžãé©åãªååã® ãã£ã¬ã¯ã㪠ã«
.git
ãšããæ¥å°ŸèŸãä»ãããªããžã§ã³ç®¡çäžã®ã©ã®ãã¡ã€ã«ãããŒã«ã«ã«ãã§ãã¯ã¢ãŠããããã³ããŒãæã£ãŠããªããã®ã§ããã€ãŸããéåžžã§ããã°é ããã.git
ãµããã£ã¬ã¯ããªã«ååšãã Git 管çãã¡ã€ã«ãå¶åŸ¡ãã¡ã€ã«ã¯ã代ããã«repository.git
ãã£ã¬ã¯ããªã«çŽæ¥ååšãããã®ä»ã®ãã¡ã€ã«ã¯ååšããããã§ãã¯ã¢ãŠãããããŠããŸããããããŠããå ¬éãªããžããªã®å ¬éè ã¯ããã¢ãªããžããªãå©çšã§ããããã«ããŠããŸãã - ããããªããžã§ã¯ã(blob object)
-
éå®åã® ãªããžã§ã¯ã äŸïŒãã¡ã€ã«ã®å 容ãªã©ã
- ãã©ã³ã (branch)
-
ããã©ã³ãããšã¯ãéçºã©ã€ã³ã®ããšã§ãããããã©ã³ãã«ãããææ°ã® ã³ããã ããã©ã³ãã®å 端ãšåŒã³ãŸãããã©ã³ãã®å 端ã¯ãã©ã³ãã» ããã ã«ãã£ãŠåç §ããããã©ã³ãäžã§éçºãé²ãã«ã€ããŠåã«ç§»åããŸããGit ãªããžã㪠ã¯ä»»æã®æ°ã®ãã©ã³ããç£èŠããããšãã§ããŸããã ã¯ãŒãã³ã°ããªãŒ ãé¢é£ä»ããããŠããã®ã¯ãã®ãã¡ã®äžã€ïŒçŸåšã®ãã©ã³ãããŸãã¯ãã§ãã¯ã¢ãŠããããŠãããã©ã³ãïŒã®ã¿ã§ããã HEAD ã¯ãã®ãã©ã³ããæããŸãã
- ãã£ãã·ã¥ (cache)
-
å»æ¢: ã€ã³ããã¯ã¹ã
- ãã§ãŒã³ (chain)
-
ãªããžã§ã¯ãã®ãªã¹ãã§ããªã¹ãå ã®å ãªããžã§ã¯ã ã¯ãã®åŸç¶è ãžã®åç §ãå«ã¿ãŸãïŒäŸãã°ãã³ããã ã®åŸç¶è ã¯ã㮠芪 ã«ãªãå¯èœæ§ããããŸãïŒã
- ãã§ã³ãžã»ãã (changeset)
-
BitKeeper/cvsps ã "ã³ããã" ã«ä»£ããŠåŒã¶ãã®ã§ããGitã¯å€æŽãä¿åããã®ã§ã¯ãªããç¶æ ãä¿åããã®ã§ãGit㧠"ãã§ã³ãžã»ãã" ãšããçšèªã䜿ãã®ã¯æ¬åœã«æå³ããããŸããã
- ãã§ãã¯ã¢ãŠã (checkout)
-
ãªããžã§ã¯ãããŒã¿ããŒã¹ ãã ããªãŒãªããžã§ã¯ã ãŸã㯠ããã ã䜿çšã㊠ã¯ãŒãã³ã°ããªãŒ ã®å šéšãŸãã¯äžéšãæŽæ°ããã¯ãŒãã³ã°ããªãŒå šäœãæ°ãã ãã©ã³ã ãæããŠããå Žåã«ã¯ ã€ã³ããã¯ã¹ ããã³ HEAD ãæŽæ°ããŸãã
- ãã§ãªãŒãããã³ã° (cherry-picking)
-
SCM ã®äžã ãã§éããèšèã§ãããã§ãªãŒããã¯ããšã¯ãäžé£ã®å€æŽïŒéåžžã¯ã³ãããïŒããå€æŽã®ãµãã»ãããéžæããããããå¥ã®ã³ãŒãããŒã¹ã®äžã«æ°ããäžé£ã®å€æŽãšããŠèšé²ããããšãæå³ããŸãã Gitã§ã¯ãããã¯ãgit cherry-pickãã³ãã³ãã«ãã£ãŠå®è¡ãããæ¢åã® ã³ããã ã«ãã£ãŠå°å ¥ãããå€æŽãæœåºããçŸåšã® ãã©ã³ã ã®å 端ãåºç¹ã«æ°ããã³ããããšããŠãããèšé²ããŸãã
- ã¯ãªãŒã³ (clean)
-
ã¯ãŒãã³ã°ããªãŒ ããçŸåšã® ããã ãåç §ãã ãªããžã§ã³ ã«åèŽããå Žåãã¯ãªãŒã³ã§ããããŸãã "ããŒãã£" ãåç §ããŠãã ããã
- ã³ããã (commit)
-
åè©ãšããŠããããžã§ã¯ãã®ãã¹ããªãŒå šäœã¯ãçžäºã«é¢é£ããã³ãããã®éåãšããŠè¡šãããŸããGitã§ã¯ãä»ã®ãªããžã§ã³ç®¡çã·ã¹ãã ã "ãªããžã§ã³" ã "ããŒãžã§ã³" ãšããèšèã䜿ãã®ãšåãå Žæã§ã"ã³ããã" ãšããèšèã䜿ãããããšããããããŸãããŸãã ã³ããããªããžã§ã¯ã ã®ã·ã§ãŒããã³ããšããŠã䜿ãããŸãã
åè©ãšããŠããããžã§ã¯ãç¶æ ã®æ°ããã¹ãããã·ã§ããã Git ã®ãã¹ããªãŒã«ä¿åããããšã§ããã ã€ã³ããã¯ã¹ ã®çŸåšã®ç¶æ ãè¡šãæ°ããã³ããããäœæããæ°ããã³ããããæãããã« HEAD ãé²ããŸãã
- ã³ãããã°ã©ãã®æŠå¿µãè¡šçŸåã³äœ¿ãæ¹
-
DAG æ§é ã®å矩èªã§ãªããžã§ã¯ãããŒã¿ããŒã¹å ã®ã³ãããããã©ã³ãã®å 端ã«ãã åç § ããªã³ã¯ãããã³ãããã® ãã§ãŒã³ ã«ãã£ãŠåœ¢æãããŸãããã®æ§é ã¯ã決å®çãªã³ãããã°ã©ãã§ãã ã°ã©ãã¯ä»ã®æ¹æ³ã§è¡šçŸã§ããŸããäŸãã°ããã³ããã-ã°ã©ãã ãã¡ã€ã« ã§ãã
- ã³ãããâã°ã©ããã¡ã€ã« (commit-graph file)
-
"ã³ãããã°ã©ã" ãã¡ã€ã«ã¯ãã³ãããã°ã©ãã®ãŠã©ãŒã¯ãé«éåããããã® ã³ãããã°ã©ã ã®è£å®çãªè¡šçŸã§ãã"ã³ãããã°ã©ã" ãã¡ã€ã«ã¯ã.git/objects/info ãã£ã¬ã¯ããªãŸãã¯å¥ã®ãªããžã§ã¯ãããŒã¿ããŒã¹ã® info ãã£ã¬ã¯ããªã«æ ŒçŽãããŸãã
- ã³ããããªããžã§ã¯ã (commit object)
-
ãªããžã§ã¯ã ã«ã¯ãç¹å®ã® ãªããžã§ã³ ã«é¢ããæ å ±ãäŸã㰠芪 ãã³ããã¿ãŒãèäœè ãæ¥ä»ããããŠæ ŒçŽãããŠãããªããžã§ã³ã®æäžäœ ãã£ã¬ã¯ã㪠ãšäžèŽãã ããªãŒãªããžã§ã¯ã ãå«ã¿ãŸãã
- ã³ãããã®æ§è³ªãæã€ãã® (commit-ish (also committish))
-
ã³ããããªããžã§ã¯ããååž°çã«éåç §ã§ãã ã³ããããªããžã§ã¯ã ãŸã㯠ãªããžã§ã¯ã ã®ããšãæããŸãã次ã«ç€ºããã®ã¯ãã¹ãŠã³ãããã®æ§è³ªãæã€ãã®ã§ãïŒã³ããããªããžã§ã¯ããã³ããããªããžã§ã¯ããæã ã¿ã°ãªããžã§ã¯ã ãã³ããããªããžã§ã¯ããæãã¿ã°ãªããžã§ã¯ããæãã¿ã°ãªããžã§ã¯ããçã§ãã
- core Git
-
Gitã®åºæ¬çãªããŒã¿æ§é ãšãŠãŒãã£ãªãã£ãéããããœãŒã¹ã³ãŒã管çããŒã«ã®ã¿ãå ¬éããŸãã
- DAG
-
æåé埪ç°ã°ã©ãã芪ãæã¡ïŒæåïŒã³ããããªããžã§ã¯ãã®ã°ã©ãã¯é埪ç°ãªã®ã§ã ã³ããããªããžã§ã¯ã ã¯æåé埪ç°ã°ã©ãã圢æããŸãïŒåã ãªããžã§ã¯ã ã§å§ãŸã£ãŠçµãã ãã§ãŒã³ ã¯ãããŸããïŒã
- ãã³ã°ãªã³ã°ãªããžã§ã¯ã (dangling object)
-
å°éäžèœãªããžã§ã¯ã ãšã¯ãä»ã®å°éäžèœãªããžã§ã¯ãããã§ãããã å°éå¯èœ ã§ã¯ãªããªããžã§ã¯ãã®ããšã§ããã³ã°ãªã³ã°ãªããžã§ã¯ãã¯ã ãªããžã㪠å ã®åç §ã ãªããžã§ã¯ã ã®ããããããåç §ãããªããšãããã®ã§ãã
- éåç §(dereference)
-
ã·ã³ããªãã¯åç §ãåç §ããïŒã·ã³ããªãã¯ãªãã¡ã¬ã³ã¹ãæã瀺ãåç §ã«ã¢ã¯ã»ã¹ããè¡çºãååž°çãªéåç §ã¯ãçµæãšããŠåŸãããåç §ãéã·ã³ããªãã¯åç §ã«ãªããŸã§ãåè¿°ã®ããã»ã¹ãç¹°ãè¿ãããšãå«ã¿ãŸãã
ã¿ã°ãªããžã§ã¯ããåç §ããïŒã¿ã°ãæã瀺ããªããžã§ã¯ãã«ã¢ã¯ã»ã¹ããè¡çºãã¿ã°ã¯ãçµæã®ãªããžã§ã¯ããæå®ããããªããžã§ã¯ãã¿ã€ãïŒè©²åœããå ŽåïŒãŸãã¯ãéã¿ã°ããªããžã§ã¯ãã¿ã€ãã®ããããã«ãªããŸã§ããã®æäœãçµæã®ãªããžã§ã¯ãã«å¯ŸããŠç¹°ãè¿ãããšã«ãã£ãŠååž°çã«éåç §ãããŸããã¿ã°ã®æèã«ããããååž°çéåç §ãã®å矩èªã¯ãç®ãå¥ããã§ãã
commit object ãåç §ãã: ã³ãããã®ããªãŒãªããžã§ã¯ãã«ã¢ã¯ã»ã¹ããã¢ã¯ã·ã§ã³ãã³ãããã¯ååž°çã«éåç §ã§ããŸããã
ç¹ã«æå®ããªãéããGit ã³ãã³ããŸãã¯ãããã³ã«ã®ã³ã³ããã¹ãã§äœ¿çšããããéåç §ãã¯æé»çã«ååž°çã§ãã
- åé¢ããHEAD (detached HEAD)
-
éåžžã HEAD ã«ã¯ããã©ã³ã ã®ååãæ ŒçŽãããŠãããHEADã瀺ãå±¥æŽã«å¯ŸããŠæäœããã³ãã³ãã¯ãHEADãæããã©ã³ãã®å 端ã«ç¶ãå±¥æŽã«å¯ŸããŠæäœããããšã«ãªããŸããããããGitã§ã¯ãå¿ ãããç¹å®ã®ãã©ã³ãã®å 端ã§ã¯ãªãä»»æã®ã³ããã ã ãã§ãã¯ã¢ãŠã ããããšãã§ããŸãããã®ãããªç¶æ ã®HEADã¯ã"åé¢ãã (detached)"ãšåŒã°ããŸãã
çŸåšã®ãã©ã³ãã®æŽå²ãæäœããã³ãã³ãïŒããšãã°
git commit
ã§æ°ããæŽå²ããã®äžã«æ§ç¯ããïŒã¯ãHEAD ãåé¢ãããŠããéãåäœããããšã«æ³šæããŠãã ããããããã®ã³ãã³ãã¯ãã©ã®ãã©ã³ãã«ã圱é¿ãäžããã« HEAD ãæŽæ°ããæŽæ°ãããæŽå²ã®å 端ãæãããã«ããŸããçŸåšã®ãã©ã³ãã«é¢ããæ å ±ãæŽæ°ãããåãåããããããã³ãã³ãïŒããšãã° çŸåšã®ãã©ã³ããã©ã®ãªã¢ãŒã远跡ãã©ã³ããšçµ±åãããŠããããèšå®ããgit branch --set-upstream-to
ïŒã¯ããã®ç¶æ ã§å°ããïŒå®éã®ïŒçŸåšã®ãã©ã³ãããªããããæããã«æ©èœããŸããã - ãã£ã¬ã¯ã㪠(directory)
-
"ls" ã§è¡šç€ºããããªã¹ã :-)
- ããŒã㣠(dirty)
-
ã¯ãŒãã³ã°ããªãŒã¯ãçŸåšã®ãã©ã³ã ã«å¯Ÿã㊠ã³ããã ãããŠããªãå€æŽãå«ãŸããŠããå ŽåããããŒãã£ãã§ãããšèšãããŸãã
- éªæªãªããŒãž (evil merge)
-
éªæªãªããŒãžãšã¯ãã©ã® 芪 ã«ã衚瀺ãããªãå€æŽãå°å ¥ãã ããŒãž ã®ããšã§ãã
- æ©éã (fast-forward)
-
æ©éããšã¯ãç¹æ®ãªã¿ã€ãã® ããŒãž ã§ããã ãªããžã§ã³ ããããŸããŸãã®åå«ã§ããå¥ã® ãã©ã³ã ã®å€æŽãããŒãžãããšãã«èµ·ãããã®ã§ãããã®ãããªå Žåãæ°ãã« ããŒãž ã³ããã ãè¡ãã®ã§ã¯ãªããããŒãžãããã©ã³ããšåããªããžã§ã³ãæãããã«ãã©ã³ããæŽæ°ããã ãã§ããããã¯ããªã¢ãŒã ãªããžã㪠㮠ãªã¢ãŒããã©ããã³ã°ãã©ã³ã ã§é »ç¹ã«çºçããŸãã
- ãã§ãã (fetch)
-
ãã©ã³ã ã®ãã§ãããšã¯ããªã¢ãŒãã® ãªããžã㪠ãããã©ã³ãã® ãããåç § ãååŸããããŒã«ã«ã® ãªããžã§ã¯ãããŒã¿ããŒã¹ ãã足ããªããªããžã§ã¯ããæ¢ããŠãããããååŸããããšãæããŸããgit-fetch[1] ãåç §ããŠãã ããã
- ãã¡ã€ã«ã·ã¹ãã (file system)
-
ãªãŒãã¹ã»ããŒãã«ãºã¯ããšããšãGitããŠãŒã¶ãŒç©ºéã®ãã¡ã€ã«ã·ã¹ãã ãããªãã¡ããã¡ã€ã«ãšãã£ã¬ã¯ããªãä¿æããããã®ã€ã³ãã©ã¹ãã©ã¯ãã£ãšããŠèšèšããŸãããããã«ãã£ãŠãGitã®å¹çãšé床ã確ä¿ãããŸããã
- Git ã¢ãŒã«ã€ã (Git archive)
-
ãªããžããªã®åçŸ©èª (arch ã®äººã åã)ã
- gitãã¡ã€ã« (gitfile)
-
ã¯ãŒãã³ã°ããªãŒã®ã«ãŒãã«ãããã¬ãŒã³ãªãã¡ã€ã«
.git
ã¯ãå®éã®ãªããžããªãšãªããã£ã¬ã¯ããªãæããŸããé©åãªäœ¿çšã«ã€ããŠã¯ git-worktree[1] ãŸã㯠git-submodule[1] ãåç §ããŠãã ãããæ§æã«ã€ããŠã¯ gitrepository-layout[5] ãåç §ããŠãã ããã - ç§»æ€ (grafts)
-
移æ€ã䜿çšãããšãã³ãããã®åœã®ç¥å æ å ±ãèšé²ããããšã§ã2ã€ã®ç°ãªãéçºã©ã€ã³ãçµåã§ããŸãããã®ããã«ããŠãGitã« ã³ããã 㮠芪 ã®ã»ãã ããã³ããããäœæããããšãã«èšé²ãããã®ãšã¯ç°ãªããšãããµãããããããšãã§ããŸãã
.git/info/grafts
ãã¡ã€ã«ãä»ããŠæ§æãããŸããç§»æ€ ã®ä»çµã¿ã¯æ代é ãã§ããªããžããªéã§ãªããžã§ã¯ãã転éããéã«åé¡ã«ãªãå Žåãããããšã«æ³šæããŠãã ãããåãããšãè¡ãããã®ããæè»ã§å ç¢ãªã·ã¹ãã ã«ã€ããŠã¯ git-replace[1] ãã芧ãã ããã
- ããã·ã¥ (hash)
-
Git ã®æèã§ã¯ã ãªããžã§ã¯ãå ã®å矩èªã§ãã
- ããã (head)
-
ååãä»ããŠåç §ãã ãã©ã³ã ã®å 端ã«ãã ã³ããã ã®ããšã§ãããããã¯ãããã¯ãããåç §ã䜿ããšã以å€ã¯ã
$GIT_DIR/refs/heads/
ãã£ã¬ã¯ããªã«ãããã¡ã€ã«ã«æ ŒçŽãããŸãã(git-pack-refs[1] ãåç §ããŠãã ããã) - HEAD
-
çŸåšã® branchã詳现: ã¯ãŒãã³ã°ããªãŒ ã¯éåžžãHEADã«ãã£ãŠåç §ãããããªãŒã®ç¶æ ãã掟çããŸããHEADã¯ãªããžããªå ã® ããã ã®1ã€ãåç §ãããã®ã§ããã åé¢ããHEAD ã䜿çšããå Žåã¯ãä»»æã®ã³ããããçŽæ¥åç §ããŸãã
- ãããåç § (head ref)
-
head ãšå矩ã§ãã
- ãã㯠(hook)
-
Gitã³ãã³ãã®éåžžã®å®è¡äžã«ãéçºè ãæ©èœããã§ãã¯ãè¿œå ããããã®ãªãã·ã§ã³ã®ã¹ã¯ãªãããåŒã³åºãããšãã§ããŸããå žåçã«ã¯ãããã¯ã¯ã³ãã³ãã®äºåæ€èšŒãããŠäžæ¢ãå¯èœã«ããæäœã®çµäºåŸã«äºåŸéç¥ãå¯èœã«ããŸããããã¯ã¹ã¯ãªããã¯
$GIT_DIR/hooks/
ãã£ã¬ã¯ããªã«ããããã¡ã€ã«åãã.sample
ãšãããµãã£ãã¯ã¹ãåãé€ãã ãã§æå¹ã«ãªããŸãã以åã®ããŒãžã§ã³ã®Gitã§ã¯ãããããå®è¡å¯èœã«ããå¿ èŠããããŸããã - ã€ã³ããã¯ã¹ (index)
-
çµ±èšæ å ±ãå«ããã¡ã€ã«ã®ã³ã¬ã¯ã·ã§ã³ã§ããã®å 容ã¯ãªããžã§ã¯ããšããŠä¿åãããŸããã€ã³ããã¯ã¹ã¯ã ã¯ãŒãã³ã°ããªãŒ ã®ä¿åããŒãžã§ã³ã§ããæ£çŽãªãšãããããã«ã¯ã ããŒãž ã®ãšãã«äœ¿çšããããã¯ãŒãã³ã°ããªãŒã®2çªç®ããã³3çªç®ã®ããŒãžã§ã³ãå«ããããšãã§ããŸãã
- ã€ã³ããã¯ã¹ãšã³ããªãŒ (index entry)
-
ã€ã³ããã¯ã¹ ã«ä¿åãããŠããç¹å®ã®ãã¡ã€ã«ã«é¢ããæ å ±ã ããŒãž ãéå§ããããããŸã çµäºããŠããªãå ŽåïŒã€ãŸããã€ã³ããã¯ã¹ã«ãã®ãã¡ã€ã«ã®è€æ°ã®ããŒãžã§ã³ãå«ãŸããŠããå ŽåïŒãã€ã³ããã¯ã¹ãšã³ããªãŒãããŒãžè§£é€ã§ããŸãã
- master
-
ããã©ã«ãã®éçº ãã©ã³ãã Git ãªããžããªãäœæãããã³ã«ããmasterããšããååã®ãã©ã³ããäœæãããã¢ã¯ãã£ããªãã©ã³ãã«ãªããŸããã»ãšãã©ã®å Žåãããã«ã¯ããŒã«ã«éçºãå«ãŸããŸãããããã¯çŽç²ã«æ £äŸã«ãããã®ã§ãããå¿ é ã§ã¯ãããŸããã
- ããŒãž (merge)
-
åè©ãšããŠ: å¥ã® ãã©ã³ã ã®å 容ïŒå Žåã«ãã£ãŠã¯å€éšã® ãªããžã㪠ããïŒãçŸåšã®ãã©ã³ãã«åã蟌ãããšãããŒãžããããã©ã³ããå¥ã®ãªããžããªããã®ãã®ã§ããå Žåãããã¯æåã«ãªã¢ãŒããã©ã³ãã ãã§ãã ãã次ã«çµæãçŸåšã®ãã©ã³ãã«ããŒãžããããšã«ãã£ãŠè¡ãããŸãããã®ãã§ããæäœãšããŒãžæäœã®çµã¿åããã¯ã ãã« ãšåŒã°ããŸããããŒãžã¯ããã©ã³ããåå²ããŠããè¡ãããå€æŽãèå¥ããããããã¹ãŠã®å€æŽãäžç·ã«é©çšããèªåããã»ã¹ã«ãã£ãŠå®è¡ãããŸããå€æŽã競åããå Žåã¯ãããŒãžãå®äºããããã«æåã«ããä»å ¥ãå¿ èŠã«ãªãå ŽåããããŸãã
åè©ãšããŠ: æ©éã ã§ãªãéããããŒãžãæåãããšãããŒãžããã ãã©ã³ã ã®å 端ã 芪ãšããŠæã€ãããŒãžã®çµæãè¡šãæ°ãã ã³ããã ãäœæãããŸãããã®ã³ãããã¯ããããŒãžã³ããããããŸãã¯åã«ãããŒãžããšåŒã°ããããšããããŸãã
- ãªããžã§ã¯ã (object)
-
Gitã«ãããã¹ãã¬ãŒãžã®åäœããã®å 容ãè¡šã SHA-1 ã«ãã£ãŠäžæã«èå¥ãããŸããããã«ããããªããžã§ã¯ããå€æŽããããšã¯ã§ããŸããã
- ãªããžã§ã¯ãããŒã¿ããŒã¹ (object database)
-
ããªããžã§ã¯ããã®ã»ãããä¿åããåã ã® ãªããžã§ã¯ã ã¯ãã® ãªããžã§ã¯ãå ã«ãã£ãŠèå¥ãããŸãããªããžã§ã¯ãã¯éåžž
$GIT_DIR/objects/
ã«æ ŒçŽãããŠããŸãã - ãªããžã§ã¯ãèå¥å (object identifier, oid)
-
object name ãšå矩ã
- ãªããžã§ã¯ãå (object name)
-
ãªããžã§ã¯ã ã®äžæãªèå¥åããªããžã§ã¯ãåã¯éåžž40æåã®16é²æ°æååã§è¡šãããŸããä¿ã« SHA-1 ãšãåŒã°ããŸãã
- ãªããžã§ã¯ãã¿ã€ã (object type)
-
èå¥å "ã³ããã", "ããªãŒ", "ã¿ã°" ãŸã㯠"ããã" ã®ããããã§ãã£ãŠã ãªããžã§ã¯ã ã®ã¿ã€ããè¡šããŸãã
- ã¿ã³è¶³ (octopus)
-
2ã€ããå€ãã® ãã©ã³ã ã ããŒãž ããã
- å€å (orphan)
-
ãŸã ååšããªã branch (ã€ãŸããunborn ãã©ã³ã) ã«ã¢ã¯ã»ã¹ããæäœããã®ãããªæäœã®åŸãæåã«äœæãããã³ãããã¯èŠªã®ãªãã³ãããã«ãªããæ°ããå±¥æŽãéå§ãããŸãã
- origin
-
ããã©ã«ãã®äžæµ ãªããžã㪠ã§ããã»ãšãã©ã®ãããžã§ã¯ãã¯ã远跡ããäžæµãããžã§ã¯ããå°ãªããšã1ã€æã£ãŠããŸããããã©ã«ãã§ã¯ origin ããã®ããã«äœ¿çšãããŸããäžæµã®æ°ããæŽæ°ã¯ãorigin/äžæµã®ãã©ã³ãã«å¯Ÿå¿ããåå 㧠ãªã¢ãŒããã©ããã³ã°ãã©ã³ã ã«åã蟌ãŸãã
git branch -r
ã§ç¢ºèªããããšãã§ããŸãã - ãªãŒããŒã¬ã€ (overlay)
-
äœæ¥ãã£ã¬ã¯ããªãžã®ãã¡ã€ã«ã®æŽæ°ãšè¿œå ã®ã¿ãè¡ãäžæ¹ã§åé€ã¯è¡ããªãã cp -R ãå®å ãã£ã¬ã¯ããªã®å 容ãæŽæ°ããã®ãšåæ§ã®æ¹æ³ã§ããããã¯ããã§ãã¯ã¢ãŠã ã ã€ã³ããã¯ã¹ ã ããªãŒã®æ§è³ªãæã€ãã®ãããã¡ã€ã«ããã§ãã¯ã¢ãŠããããšãã«ãããããã©ã«ãã¢ãŒãã§ããäžæ¹ãéãªãŒããŒã¬ã€ ã¢ãŒãã§ã¯ã rsync --delete ã®ããã«ããœãŒã¹ã«ååšããªã远跡æžã¿ã®ãã¡ã€ã«ãåé€ãããŸãã
- ãã㯠(pack)
-
1ã€ã®ãã¡ã€ã«ã«å§çž®ããããªããžã§ã¯ãã®ã»ããïŒå®¹éãç¯çŽããããããŸãã¯å¹ççã«è»¢éããããã«ïŒã
- ããã¯ã€ã³ããã¯ã¹ (pack index)
-
ããã¯ã®äžèº«ãžã®å¹çããã¢ã¯ã»ã¹ãè£å©ããã ãã㯠ã«ãããªããžã§ã¯ãã®èå¥åããã®ä»ã®æ å ±ã®ãªã¹ãã§ãã
- ãã¹ã¹ãã㯠(pathspec)
-
Git ã³ãã³ãã§ãã¹ãå¶éããããã«äœ¿çšãããã¿ãŒã³ã
ãã¹ã¹ãã㯠ã¯ã"git ls-files", "git ls-tree", "git add", "git grep", "git diff", "git checkout" ããã®ä»å€ãã®ã³ãã³ãã§ãæäœç¯å²ãããªãŒã®äžéšãã¯ãŒãã³ã°ããªãŒã«éå®ããŠäœ¿çšããããã«äœ¿çšãããã®ã§ãããã¹ãã«ã¬ã³ããã£ã¬ã¯ããªããããã¬ãã«ããã®çžå¯Ÿãã¹ã§ãããã©ããã¯ãåã³ãã³ãã®ããã¥ã¡ã³ããåç §ããŠãã ããããã¹ã¹ããã¯ã®æ§æã¯æ¬¡ã®ãšããã§ãã
-
ãã¹ãŠã®ãã¹ãäžèŽãã
-
ãã¹ã¹ããã¯ã®æåŸã®ã¹ã©ãã·ã¥ãŸã§ã®éšåã¯ããã£ã¬ã¯ããªãã¬ãã£ãã¯ã¹ãè¡šããŸãããã®ãã¹ã¹ããã¯ã®ã¹ã³ãŒãã¯ããã®ãµãããªãŒã«å¶éãããŸãã
-
ãã¹ã¹ããã¯ã®æ®ãã®éšåã¯ããã¹åã®æ®ãã®éšåã®ãã¿ãŒã³ã§ãããã£ã¬ã¯ããªãã¬ãã£ãã¯ã¹ã«é¢é£ãããã¹ã¯ãfnmatch(3) ã䜿çšããŠãã®ãã¿ãŒã³ãšç §åãããŸããç¹ã«ãã*ããšã?ã ã¯ãã£ã¬ã¯ããªã»ãã¬ãŒã¿ã«äžèŽãããããšãã§ããŸãã
äŸãã°ãDocumentation/*.jpg ãšãããšãDocumentation/chapter_1/figure_1.jpg ãå«ããDocumentationãµãããªãŒã«ãããã¹ãŠã® .jpg ãã¡ã€ã«ã«ãããããŸãã
ã³ãã³
:
ã§å§ãŸããã¹ã¹ããã¯ã¯ç¹å¥ãªæå³ãæã¡ãŸããçã圢åŒã§ã¯ãå é ã®ã³ãã³:
ã®åŸã« 0 å以äžã®ãããžãã¯ã·ã°ããã£ãæåãç¶ã (ãªãã·ã§ã³ã§å¥ã®ã³ãã³:
ã§çµäºããŸã)ãæ®ãã®éšåããã¹ã«å¯ŸããŠããããããã¿ãŒã³ã«ãªããŸãããããžãã¯ã·ã°ããã£ãã¯è±æ°åã§ãã°ããã§ãæ£èŠè¡šçŸã®ç¹æ®æåã§ãã³ãã³ã§ããªãASCIIã·ã³ãã«ã§æ§æãããŸãããããžãã¯ã·ã°ããã£ããçµäºãããªãã·ã§ã³ã®ã³ãã³ã¯ããããžãã¯ã·ã°ããã£ãã·ã³ãã«ã»ããã«å±ããããã€ã³ãã³ã§ããªãæåã§ãã¿ãŒã³ãå§ãŸã£ãŠããå Žåã«ã¯çç¥ããããšãå¯èœã§ããé·ã圢åŒã§ã¯ãå é ã®ã³ãã³
:
ã®åŸã«ãéãæ¬åŒ§(
, ã«ã³ãã§åºåããã0å以äžã®ãããžãã¯ã¯ãŒããã®ãªã¹ããéãæ¬åŒ§)
ãç¶ããæ®ãããã¹ã«å¯ŸããŠããããããã¿ãŒã³ã«ãªããŸããã³ãã³ã®ã¿ã®ãã¹æå®ã¯ãããã¹ã¹ããã¯ããªããããšãæå³ããŸãããã®åœ¢åŒã¯ä»ã® ãã¹ã¹ãã㯠ãšçµã¿åãããŠã¯ãããŸããã
- top
-
ããžãã¯ã¯ãŒãã®
top
(ããžãã¯ã·ã°ããã£:/
) ã¯ããµããã£ã¬ã¯ããªã®äžããã³ãã³ããå®è¡ããå Žåã§ããã¯ãŒãã³ã°ããªãŒã®ã«ãŒããããã¿ãŒã³ã«ãããããããã«ããŸãã - literal
-
ãã¿ãŒã³äžã®
*
ã?
ãªã©ã®ã¯ã€ã«ãã«ãŒãã¯ããªãã©ã«æåãšããŠæ±ãããŸãã - icase
-
倧æåã»å°æåãåºå¥ãããããã
- glob
-
Git ã¯ãã®ãã¿ãŒã³ããFNM_PATHNAME ãã©ã°ãæå®ãã fnmatch(3) ã«é©ããã·ã§ã«ã°ãããšããŠæ±ããŸãããã¿ãŒã³äžã®ã¯ã€ã«ãã«ãŒãã¯ããã¹åäžã® / ã«ã¯ãããããŸãããäŸãã°ã"Documentation/*.html" 㯠"Documentation/git.html" ã«ãããããŸããã"Documentation/ppc/ppc.html" ã "tools/perf/Documentation/perf.html" ã«ã¯ãããããŸããã
2ã€é£ç¶ããã¢ã¹ã¿ãªã¹ã¯("
**
")ã¯ãã«ãã¹åã«å¯ŸããŠããããããã¿ãŒã³ã«ãããŠãç¹å¥ãªæå³ãæã€å ŽåããããŸã:-
å é ã® "
**/
" ã¯ããã¹ãŠã®ãã£ã¬ã¯ããªã«ãããããããšãæå³ããŸããäŸãã°ã"**/foo
" ã¯ãã¡ã€ã«ãŸãã¯ãã£ã¬ã¯ã㪠"foo
" ã®ä»»æã®å Žæã«ããããããã¿ãŒã³ "foo
" ãšåãã§ãã "**/foo/bar
" ã¯ãã¡ã€ã«ãŸãã¯ãã£ã¬ã¯ã㪠"bar
" ããã£ã¬ã¯ã㪠"foo
" çŽäžã®ä»»æã®å Žæã«ããå Žåã«ãããããŸãã -
æ«å°Ÿã® "
/**
" ã¯ããã®äžã«ãããã¹ãŠã®ãã¡ã€ã«ã«ãããããŸããäŸãã°ã"abc/**
" ã¯ãã£ã¬ã¯ã㪠"abc" å ã®ãã¹ãŠã®ãã¡ã€ã«ã«ãããããŸããããã¯.gitignore
ãã¡ã€ã«ã®äœçœ®ããã®çžå¯Ÿãã¹ã§ãæ·±ãã¯ç¡éã§ãã -
æ«å°Ÿä»¥å€ã§ã® "
/**
" ã¯ã0å以äžã®ãã£ã¬ã¯ããªã«ãããããŸããäŸãã°ã"a/**/b
" 㯠"a/b
", "a/x/b
", "a/x/y/b
" ãšãã£ãå ·åã«ãããããã -
ããã以å€ã®é£ç¶ããã¢ã¹ã¿ãªã¹ã¯ã¯ç¡å¹ãšããã
ã°ããã®éæ³ã¯éæ³ãšäºææ§ããããŸããã
-
- attr
-
attr:
ã®åŸã«ã¯ã¹ããŒã¹ã§åºåããããå±æ§èŠä»¶ãã®ãªã¹ããç¶ãããã¹ãããããããšã¿ãªãããããã«ã¯ããããã®èŠä»¶ããã¹ãŠæºããããªããã°ãªããŸãããããã¯ãæ®éã®éæ³ã®ãªããã¹ã¹ãã㯠ãã¿ãŒã³ ãããã³ã°ã«è¿œå ãããŸããgitattributes[5]ãåç §ããŠãã ããããã¹ã®åå±æ§èŠä»¶ã¯ããããã®ããããã®åœ¢åŒããšã:
-
"
ATTR
" ã¯ãå±æ§ATTR
ãèšå®ããããšãèŠæ±ããŸãã -
"
-ATTR
" ã¯ãå±æ§ATTR
ã®èšå®ã解é€ããããšãèŠæ±ããŠããŸãã -
"
ATTR=VALUE
" ã¯ãå±æ§ATTR
ã«æååVALUE
ãèšå®ããããšãèŠæ±ããŠããŸãã -
"
!ATTR
" ã¯ãå±æ§ATTR
ãæå®ãããŠããªãããšãèŠæ±ããŠããŸããããªãŒãªããžã§ã¯ãã«å¯ŸããŠãããã³ã°ãè¡ãå Žåãå±æ§ã¯äžããããããªãŒãªããžã§ã¯ãããã§ã¯ãªããã¯ãŒãã³ã°ããªãŒããååŸãããããšã«æ³šæããŠãã ããã
-
- exclude
-
ãã¹ãäœããã®éé€å€ãã¹ã¹ããã¯ã«ãããããåŸããã¹ãŠã®é€å€ãã¹ã¹ãã㯠(ããžãã¯ã·ã°ããã£:
!
ãŸãã¯ãã®å矩èª^
) ãéããŠå®è¡ãããããšã«ãªããŸãããããããå Žåããã®ãã¹ã¯ç¡èŠãããŸããéé€å€ãã¹ã¹ããã¯ããªãå Žåã¯ããã¹ã¹ããã¯ãªãã§èµ·åãããå Žåãšåãããã«ãçµæã»ããã«é€å€ãé©çšãããŸãã
-
- 芪 (parent)
-
ã³ããããªããžã§ã¯ã ã¯ãéçºã©ã€ã³ã«ãããè«ççãªå è¡è ãããªãã¡ãã®èŠªã® (空ãããããªã) ãªã¹ããå«ãã§ããŸãã
- ç®ãå¥ã (peel)
-
ååž°çã« ã¿ã°ãªããžã§ã¯ã ã® éåç §ãã åäœã®ããšã
- ã€ãã¯ã (pickaxe)
-
ã€ãã¯ã ãšããçšèªã¯ãäžããããããã¹ãæååãè¿œå ãŸãã¯åé€ããå€æŽãéžæããã®ã«åœ¹ç«ã€ diffcore ã«ãŒãã³ã®ãªãã·ã§ã³ã®ããšãæããŸãã
--pickaxe-all
ãªãã·ã§ã³ã䜿ããšãäŸãã°ç¹å®ã®è¡ãè¿œå ãããåé€ããããã ãã§ã³ãžã»ãã ããã¹ãŠè¡šç€ºããããšãã§ããŸããgit-diff[1] ãåç §ããŠãã ããã - é 管 (plumbing)
-
core Gitã®ããããååã§ãã
- ç£åš (porcelain)
-
core Gitã«äŸåããããã°ã©ã ãããã°ã©ã ã¹ã€ãŒãã®ããããååã§ãcore Gitãžã®ãã€ã¬ãã«ãªã¢ã¯ã»ã¹ãæ瀺ããŸããç£åšã¯ é 管 ãããå€ãã® SCM ã€ã³ã¿ãã§ãŒã¹ãå ¬éããŸãã
- ã¯ãŒã¯ããªãŒããšã®åç § (per-worktree ref)
-
ã°ããŒãã«ã§ã¯ãªããã¯ãŒã¯ããªãŒããšã®åç §ãçŸåšã¯ HEAD ãš
refs/bisect/
ã§å§ãŸãåç §ã®ã¿ã§ãããå°æ¥çã«ã¯ä»ã®çããåç §ãå«ãŸãããããããŸããã - ç䌌åç § (pseudoref)
-
A ref that has different semantics than normal refs. These refs can be read via normal Git commands, but cannot be written to by commands like git-update-ref[1].
The following pseudorefs are known to Git:
-
FETCH_HEAD
is written by git-fetch[1] or git-pull[1]. It may refer to multiple object IDs. Each object ID is annotated with metadata indicating where it was fetched from and its fetch status. -
MERGE_HEAD
is written by git-merge[1] when resolving merge conflicts. It contains all commit IDs which are being merged.
-
- ãã« (pull)
-
ãã©ã³ã ããã«ãããšããããšã¯ããã©ã³ãã ãã§ãã ã㊠ããŒãž ããããšãæå³ããŸããgit-pull[1] ãåç §ããŠãã ããã
- ããã·ã¥ (push)
-
ãã©ã³ã ãããã·ã¥ãããšããããšã¯ããªã¢ãŒãã®ãªããžããªãããã©ã³ãã®ããããªãã¡ã¬ã³ã¹ãååŸãããããããŒã«ã«ã®ããããªãã¡ã¬ã³ã¹ã®ç¥å ãã©ããã確èªãããã®å Žåã«ã¯ãããŒã«ã«ã®ããããªãã¡ã¬ã³ã¹ããå°éå¯èœãã€ããªã¢ãŒããªããžããªã«ååšããªããã¹ãŠã®ãªããžã§ã¯ããããªã¢ãŒãã®ãªããžã§ã¯ãããŒã¿ããŒã¹ã«é 眮ãããªã¢ãŒãã®ããããªãã¡ã¬ã³ã¹ãæŽæ°ããããšãæå³ããŸãããªã¢ãŒãã®ããããããŒã«ã«ã®ãããã®ç¥å ã§ãªãå Žåãããã·ã¥ã¯å€±æããŸãã
- å°éå¯èœ (reachable)
-
ç¹å®ã®ã³ãããã®ãã¹ãŠã®ç¥å ã¯ããã®ã³ããããããå°éå¯èœããšèšãããŸããããäžè¬çã«ã¯ãäžã€ã®ãªããžã§ã¯ããå¥ã®ãªããžã§ã¯ãããå°éå¯èœã§ãããšã¯ãæã ããã®ä»ã®ãªããžã§ã¯ãããäžã€ã®ãªããžã§ã¯ãã«ãã§ãŒã³ããã©ã£ãŠå°éã§ããå Žåãæããã¿ã°ããã¿ã°ä»ããŠããäœããã³ããããããã®èŠªãŸãã¯ããªãŒããããŠããªãŒããå å ããããªãŒããããããã©ã£ãŠå°éããããšã§ãã
- å°éå¯èœæ§ãããããã (reachability bitmaps)
-
å°éå¯èœæ§ããããããã¯ãããã¯ãã¡ã€ã«ããã«ãããã¯ã€ã³ããã¯ã¹ïŒMIDXïŒã«ãããéžæãããã³ããã矀ã®å°éå¯èœæ§ã«é¢ããæ å ±ãæ ŒçŽãããªããžã§ã¯ãæ€çŽ¢ãéããããã«äœ¿çšãããŸãããããããã㯠".bitmap" ãã¡ã€ã«ã«æ ŒçŽãããŸãããªããžããªã¯æ倧ã§äžã€ã®ãããããããã¡ã€ã«ã䜿çšã§ããŸãããããããããã¡ã€ã«ã¯ãåäžã®ããã¯ã«å±ããŠãããããŸãã¯ãªããžããªã®ãã«ãããã¯ã€ã³ããã¯ã¹ïŒååšããå ŽåïŒã«å±ããŠãããã®ã©ã¡ããã§ãã
- ãªããŒã¹ (rebase)
-
ç°ãªãããŒã¹ã«å¯ŸããŠãã©ã³ãããäžé£ã®å€æŽãåé©çšãããã®ãã©ã³ãã®ãããããã®çµæã«ãªã»ããããŸãã
- åç §(ref)
-
A name that points to an object name or another ref (the latter is called a symbolic ref). For convenience, a ref can sometimes be abbreviated when used as an argument to a Git command; see gitrevisions[7] for details. Refs are stored in the repository.
refã®åå空éã¯éå±€çã§ããrefã®ååã¯ã
refs/
ã§å§ãŸãããéå±€ã®ã«ãŒãã«äœçœ®ãããã®ã©ã¡ããäžæ¹ã§ãªããã°ãªããŸãããåŸè ã¯ã次ã®ã«ãŒã«ã«åŸããªããŠã¯ãªããŸãã:-
ååã¯å€§æåãã¢ã³ããŒã¹ã³ã¢ã®ã¿ã§æ§æãããã
-
åå㯠"
_HEAD
" ã§çµããã "HEAD
" ãšäžèŽãããrefã®äžã«ã¯ããããã®ã«ãŒã«ã«äžèŽããªãéå±€ã®ã«ãŒãã«å±ãããã®ããããŸããåŸè¿°ã®ãªã¹ãã¯ãç¶²çŸ çã§ä»åŸæ¡åŒµãããŠã¯ãªããŸããã
-
AUTO_MERGE
-
BISECT_EXPECTED_REV
-
NOTES_MERGE_PARTIAL
-
NOTES_MERGE_REF
-
MERGE_AUTOSTASH
Different subhierarchies are used for different purposes. For example, the
refs/heads/
hierarchy is used to represent local branches whereas therefs/tags/
hierarchy is used to represent local tags..
-
- åç §ãã°(reflog)
-
åç §ãã°ã¯åç §ã®ããŒã«ã«ãå±¥æŽãã衚瀺ããŸããèšãæãããšããã® ãªããžããªã§3çªç®ã«æè¿ã®ãªããžã§ã³ãäœã§ãã£ããããŸãããã® ãªããžããªã§æšæ¥ã®ååŸ9æ14åçŸåšã®ç¶æ ãäœã§ãã£ãããæããŠãããŸãã詳现㯠git-reflog[1] ãåç §ããŠãã ããã
- åç §ã¹ããã¯(refspec)
-
A "refspec" is used by fetch and push to describe the mapping between remote ref and local ref. See git-fetch[1] or git-push[1] for details.
- ãªã¢ãŒããªããžã㪠(remote repository)
-
åããããžã§ã¯ãã远跡ãããå¥ã®å Žæã«ååšãããªããžããªããªã¢ãŒããšéä¿¡ããã«ã¯ããã§ãããŸãã¯ããã·ã¥ãåç §ããŠãã ããã
- ãªã¢ãŒããã©ããã³ã°ãã©ã³ã (remote-tracking branch)
-
ä»ã®ãªããžããªããã®å€æŽããã©ãããã«äœ¿çšãããåç §ãé垞㯠refs/remotes/foo/bar ã®ãããªåœ¢ãããŠããïŒããã¯ãfoo ãšããååã®ãªã¢ãŒãã® bar ãšããååã®ãã©ã³ãã远跡ããŠããããšã瀺ããŸãïŒãèšå®ããããã§ããã®åç §ã¹ããã¯ã®å³åŽã«äžèŽããŸãããªã¢ãŒã远跡ãã©ã³ãã«ã¯çŽæ¥ã®å€æŽãå ããããããŒã«ã«ã³ããããè¡ã£ããããã¹ãã§ã¯ãããŸããã
- ãªããžããª(repository)
-
åç §ã®éãŸããšãåç §ããå°éå¯èœãªãã¹ãŠã®ãªããžã§ã¯ããå«ããªããžã§ã¯ãããŒã¿ããŒã¹ã§æ§æãããã³ã¬ã¯ã·ã§ã³ã§ãããã«ã¯äžã€ãŸãã¯è€æ°ã®ç£åšããã®ã¡ã¿ããŒã¿ãä»éããããšããããŸãããªããžããªã¯ä»£æ¿ã®ä»çµã¿ãéããŠä»ã®ãªããžããªãšãªããžã§ã¯ãããŒã¿ããŒã¹ãå ±æããããšãã§ããŸãã
- 解決 (resolve)
-
倱æããèªåç㪠ããŒãž ãæ®ãããã®ãæåã§ä¿®æ£ããè¡çºã
- ãªããžã§ã³(revision)
-
commit (åè©) ãšå矩ã§ãã
- å·»ãæ»ã (rewind)
-
éçºã®äžéšãç Žæ£ããããšãããªãã¡ ããã ã以åã® ãªããžã§ã³ ã«å²ãåœãŠãããšã
- SCM
-
ãœãŒã¹ã³ãŒããããžã¡ã³ã(ããŒã«).
- SHA-1
-
"Secure Hash Algorithm 1" æå·åŠçããã·ã¥é¢æ°ã§ããGitã®æèã§ã¯ãªããžã§ã¯ãåã®å矩èªãšããŠäœ¿çšãããŸãã
- ã·ã£ããŒã¯ããŒã³ (shallow clone)
-
äž»ã«ã·ã£ããŒãªããžããªã®å矩èªã§ããããã®æèšã¯
git clone --depth=...
ã³ãã³ããå®è¡ããŠäœæãããããšãããæ確ã«è¡šããŠããŸãã - ã·ã£ããŒãªããžã㪠(shallow repository)
-
ã·ã£ããŒãªããžããªã¯ãäžå®å šãªå±¥æŽãæã¡ããã®äžã®ããã€ãã®ã³ãããã¯èŠªãåãåãããŠããŸãïŒèšãæãããšããããã®ã³ããããã³ããããªããžã§ã¯ãã«èšé²ãããŠããã«ãé¢ããããGitã¯ãããã®ã³ãããã芪ãæããªããã®ããã«æ¯ãèãããæ瀺ãããŠããŸãïŒãããã¯ããããžã§ã¯ãã®æè¿ã®å±¥æŽã«ã®ã¿èå³ãããå Žåã«äŸ¿å©ã§ãããå®éã®å±¥æŽã¯ã¢ããã¹ããªãŒã ã«ãã£ãšå€§ããèšé²ãããŠããå ŽåããããŸããã·ã£ããŒãªããžããªã¯ã git-clone[1] ã«`--depth`ãªãã·ã§ã³ãäžããããšã§äœæãããåŸã« git-fetch[1] ã䜿ã£ãŠå±¥æŽãæ·±ããããšãã§ããŸãã
- ã¹ã¿ãã·ã¥ãšã³ããªãŒ (stash entry)
-
äžæçã«ããŒãã£ãªäœæ¥ãã£ã¬ã¯ããªãšã€ã³ããã¯ã¹ã®å 容ãå°æ¥çãªåå©çšã®ããã«ä¿åããããšã«äœ¿çšããããªããžã§ã¯ãã§ãã
- ãµãã¢ãžã¥ãŒã« (submodule)
-
å¥ã®ãªããžããªïŒèŠªãããžã§ã¯ããšåŒã°ããŸãïŒã®äžã§åé¢ããããããžã§ã¯ãã®å±¥æŽãä¿æãããªããžããªã§ãã
- 芪ãããžã§ã¯ã (superproject)
-
äœæ¥ããªãŒå ã§ä»ã®ãããžã§ã¯ãã®ãªããžããªã ãµãã¢ãžã¥ãŒã« ãšããŠåç §ãã ãªããžããªã芪ãããžã§ã¯ãã¯å å ãããµãã¢ãžã¥ãŒã«ã®ã³ããããªããžã§ã¯ãã®ååãç¥ã£ãŠããŸã(ãããããã®ã³ããŒã¯ä¿æããŸãã) ã
- ã·ã³ããªãã¯åç § (symref)
-
ã·ã³ããªãã¯åç §: SHA-1 IDèªäœãå«ãã®ã§ã¯ãªã ref: refs/some/thing’ãšãã圢åŒããšããåç §ããããšååž°çã« éåç § ãããŸããHEAD'ã¯ã·ã³ããªãã¯åç §ã®äž»ãªäŸã§ããã·ã³ããªãã¯åç §ã¯ git-symbolic-ref[1] ã³ãã³ãã§æäœãããŸãã
- ã¿ã° (tag)
-
`refs/tags/`åå空éã®äžã«ãã åç § ã§ãä»»æã®ã¿ã€ãã®ãªããžã§ã¯ããæããŸãïŒéåžžã¯ã¿ã°ãã¿ã°ãŸãã¯ã³ããããªããžã§ã¯ããæããŸãïŒãããããšã¯å¯Ÿç §çã«ãã¿ã°ã¯`commit`ã³ãã³ãã«ãã£ãŠæŽæ°ãããŸãããGitã®ã¿ã°ã¯Lispã®ã¿ã°ãšã¯é¢ä¿ããããŸããïŒGitã®æèã§ã¯ãªããžã§ã¯ãã¿ã€ããšåŒã°ããã§ãããïŒãã¿ã°ã¯éåžžãã³ãããã®ç¥å ãã§ãŒã³ã®ç¹å®ã®ãã€ã³ããããŒã¯ããããã«äœ¿çšãããŸãã
- ã¿ã°ãªããžã§ã¯ã (tag object)
-
ä»ã®ãªããžã§ã¯ããæãåç §ãå«ããªããžã§ã¯ãã§ãã³ããããªããžã§ã¯ãã®ããã«ã¡ãã»ãŒãžãå«ãããšãã§ããŸãããŸããïŒPGPã®ïŒçœ²åãå«ãå Žåã¯ãã眲åä»ãã¿ã°ãªããžã§ã¯ãããšåŒã°ããŸãã
- ãããã¯ãã©ã³ã(topic branch)
-
éçºè ãéçºã®æŠå¿µçãªæµããèå¥ããããã«äœ¿çšããéåžžã®Gitãã©ã³ãã§ãããã©ã³ãã¯éåžžã«ç°¡åãã€å®äŸ¡ã§ãããããéåžžã«æ確ã«å®çŸ©ãããæŠå¿µã®ãã®ã å°ããå°ããã€é²ããé¢é£ããå€æŽãå«ããã® ãªã©ã®å°ããªãã©ã³ããããã€ãæã€ããšãæãŸããã§ãã
- ããªãŒ (tree)
-
ã¯ãŒãã³ã°ããªãŒ ãŸãã¯ã ããªãŒãªããžã§ã¯ã ã®ã©ã¡ãããšãããã«åŸå±ãã ããã ããã³ããªãŒãªããžã§ã¯ãïŒã€ãŸãã¯ãŒãã³ã°ããªãŒã®ä¿åãããè¡šçŸïŒã§ããã
- ããªãŒãªããžã§ã¯ã (tree object)
-
ãã¡ã€ã«åãšã¢ãŒãã®ãªã¹ããããã³é¢é£ããããããªããžã§ã¯ããšããªãŒãªããžã§ã¯ããžã®åç §ãå«ã ãªããžã§ã¯ã ãããªãŒ ã¯ã ãã£ã¬ã¯ã㪠ãšåãã§ãã
- ããªãŒã®æ§è³ªãæã€ãã® (tree-ish (also treeish))
-
ããªãŒãªããžã§ã¯ããååž°çã« éåç § ã§ãã ããªãŒãªããžã§ã¯ã ãŸã㯠ãªããžã§ã¯ã ãã³ãããªããžã§ã¯ã ã®åç §å ãå±éãããšã ãªããžã§ã³ ã®æäžäœ ãã£ã¬ã¯ã㪠ã«å¯Ÿå¿ããããªãŒãªããžã§ã¯ããçæãããŸãã以äžã¯ãã¹ãŠããªãŒã®æ§è³ªãæã€ãã®ã§ã: ã³ãããã®æ§è³ªãæã€ãã®ã ããªãŒãªããžã§ã¯ããããªãŒãªããžã§ã¯ããæã ã¿ã°ãªããžã§ã¯ã ãããªãŒãªããžã§ã¯ããæãã¿ã°ãªããžã§ã¯ããæãã¿ã°ãªããžã§ã¯ããªã©ã
- èå (unborn)
-
The HEAD can point at a branch that does not yet exist and that does not have any commit on it yet, and such a branch is called an unborn branch. The most typical way users encounter an unborn branch is by creating a repository anew without cloning from elsewhere. The HEAD would point at the main (or master, depending on your configuration) branch that is yet to be born. Also some operations can get you on an unborn branch with their orphan option.
- ããŒãžãããŠããªãã€ã³ããã¯ã¹ (unmerged index)
-
ããŒãžãããŠããªãã€ã³ããã¯ã¹ãšã³ããªãå«ãã€ã³ããã¯ã¹ã§ãã
- å°éäžèœãªããžã§ã¯ã (unreachable object)
-
ãã©ã³ããã¿ã°ããŸãã¯ãã®ä»ã®åç §ããå°éå¯èœã§ã¯ãªããªããžã§ã¯ãã§ãã
- äžæµãã©ã³ã(upstream branch)
-
åé¡ã®äžã§ãã©ã³ãã«ããŒãžãããïŒãŸãã¯ãã®ãã©ã³ãããªããŒã¹ãããïŒããã©ã«ãã®ãã©ã³ãã§ããããã¯branch.<åå>.remoteãšbranch.<åå>.mergeãéããŠèšå®ãããŸãã'A’ã®äžæµãã©ã³ãã’origin/B’ã§ããå Žåãã'A’㯒origin/B’ããã©ããã³ã°ããŠããããšèšãããšããããŸãã
- äœæ¥ããªãŒ (working tree)
-
å®éã«ãã§ãã¯ã¢ãŠãããããã¡ã€ã«ã®ããªãŒã§ããäœæ¥ããªãŒã«ã¯éåžžãHEADã³ãããã®ããªãŒã®å 容ãå«ãŸããŠãããããã«ãŸã ã³ãããããŠããªãããŒã«ã«ã§ã®å€æŽãå ãããŸãã
- ã¯ãŒã¯ããªãŒ (worktree)
-
ãªããžããªã¯ããŒãïŒããªãã¡ãã¢ãªããžããªïŒãŸãã¯äžã€ä»¥äžã®ã¯ãŒã¯ããªãŒãæã€ããšãã§ããŸããäžã€ã®ãã¯ãŒã¯ããªãŒãã¯ããäœæ¥ããªãŒããšãªããžããªã®ã¡ã¿ããŒã¿ã§æ§æããããã®å€§éšåã¯åäžãªããžããªã®ä»ã®ã¯ãŒã¯ããªãŒéã§å ±æãããäžéšã¯ã¯ãŒã¯ããªãŒããšã«åå¥ã«ä¿æãããŸãïŒäŸãã°ãã€ã³ããã¯ã¹ãHEADãMERGE_HEADã®ãããªç䌌åç §ãã¯ãŒã¯ããªãŒããšã®åç §ãã¯ãŒã¯ããªãŒããšã®èšå®ãã¡ã€ã«ãªã©ïŒã
GIT
Part of the git[1] suite