Changes for page Git
Last modified by Richard Kreissig on 2025/01/30 12:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,6 @@ 1 1 This tutorial will address the source code management (SCM) tool named [[Git>>url:http://git-scm.com/||shape="rect"]]. By following these steps you should learn about the basic usage of Git, which is required for the whole practical course. Furthermore, Git is a great SCM tool, and it's good to know how to use it. During this tutorial, we will follow Alan Turing's thoughts towards developing the [[Turing Machine>>url:http://en.wikipedia.org/wiki/Turing_machine||shape="rect"]]. 2 2 3 - 3 +More in-depth documentation can be found on the [[official home page>>url:http://git-scm.com/documentation||shape="rect"]], which mentions books, videos, and links to other tutorials and references. 4 4 5 5 = Creating Commits = 6 6 ... ... @@ -7,6 +7,14 @@ 7 7 1. Read the [[Git for Computer Scientists>>url:http://eagain.net/articles/git-for-computer-scientists/||shape="rect"]] introduction (skip this if you are already familiar with Git). 8 8 1. For Linux, Git is available in its own package. Windows users can install [[msysGit>>url:http://msysgit.github.com/||shape="rect"]]. For MacOS, Git is available as part of [[Xcode>>url:https://developer.apple.com/xcode/||shape="rect"]]; if you cannot install that, use [[Git for OSX>>url:http://code.google.com/p/git-osx-installer/||shape="rect"]]. 9 9 1. ((( 10 +Configure your name and email address (will be included in all commits you create): 11 + 12 +{{noformat}} 13 +$ git config --global --add user.name "Your Name" 14 +$ git config --global --add user.email "<login>@informatik.uni-kiel.de" 15 +{{/noformat}} 16 +))) 17 +1. ((( 10 10 Create a local repository for the "//Turing Project//": 11 11 12 12 {{noformat}} ... ... @@ -60,12 +60,15 @@ 60 60 {{/noformat}} 61 61 ))) 62 62 1. ((( 63 -Commit the modified content to your local repository: 71 +Commit the modified content to your local repository and view the status: 64 64 65 65 {{noformat}} 66 66 $ git commit -m "modified tape length, found a controller for tape head" 67 67 [master 52e2d49] modified tape length, found a controller for tape head 68 68 1 files changed, 2 insertions(+), 2 deletions(-) 77 +$ git status 78 +# On branch master 79 +nothing to commit (working directory clean) 69 69 {{/noformat}} 70 70 ))) 71 71 ... ... @@ -85,7 +85,7 @@ 85 85 86 86 wrote some first notes 87 87 88 -$ $git show 52e2d4999 +$ git show 52e2d49 89 89 commit 52e2d4946791c2725015853e5e261ce143c6fe8a 90 90 Author: Miro Spoenemann <msp@informatik.uni-kiel.de> 91 91 Date: Mon Oct 15 15:00:14 2012 +0200 ... ... @@ -105,4 +105,4 @@ 105 105 + * The head is controlled by a finite state machine 106 106 {{/noformat}} 107 107 108 -Note that each commit is identified by a looong hash value, but it is possible to use only a prefix when referencing them (if the prefix is not ambiguous): the example above uses {{code language="none"}}52e2d49{{/code}} to identify the second commit. Also try the command {{code language="none"}}gitk{{/code}} to get an overview of your commits (a better alternative available for MacOS is [[GitX>>url:http://gitx.frim.nl/||shape="rect"]]). 119 +Note that each commit is identified by a looong hash value, but it is possible to use only a prefix when referencing them (if the prefix is not ambiguous): the example above uses {{code language="none"}}52e2d49{{/code}} to identify the second commit. Also try the command {{code language="none"}}gitk{{/code}} to get an overview of your commits (a better alternative available for MacOS is [[GitX>>url:http://gitx.frim.nl/||shape="rect"]]). The commit hashes in your repository will be different from those seen in this tutorial, because the name of the author and the exact time of committing is also considered in the hash calculation.
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -298212 31 +2982126 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/298212 3/Git1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/2982126/Git