Changes for page Git
Last modified by Richard Kreissig on 2025/01/30 12:03
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 6 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +Projects.Eclipse Practical (winter term 201213).Tutorials.WebHome - Content
-
... ... @@ -6,7 +6,7 @@ 6 6 7 7 8 8 9 -{{toc style="circle" maxLevel="2"/}}9 +{{toc maxLevel="2" style="circle"/}} 10 10 11 11 = Creating Commits = 12 12 ... ... @@ -212,7 +212,7 @@ 212 212 Switched to branch 'sketches' 213 213 {{/noformat}} 214 214 215 -Add the line "{{code language="none"}}Move one step left:{{/code}}" an dwrite an updated version of the tape with tape headin215 +Add the line "{{code language="none"}}Move one step left:{{/code}}" followed by an accordingly updated version of the tape with tape head at the end of the file {{code language="none"}}examples.txt{{/code}}, then commit. 216 216 217 217 {{noformat}} 218 218 $ git add examples.txt ... ... @@ -233,7 +233,7 @@ 233 233 1 files changed, 2 insertions(+), 1 deletions(-) 234 234 {{/noformat}} 235 235 236 -Using {{code language="none"}}gitk{{/code}} you can see that a new commit was created that has two parent commits. Such a commit is called //merge// commit and is done automatically when a non-fast-forward merge is applied. 236 +Using {{code language="none"}}gitk{{/code}} you can see that a new commit was created that has two parent commits. Such a commit is called //merge// commit and is done automatically when a non-fast-forward merge is applied. See how both the change to {{code language="none"}}notes.txt{{/code}} done in the {{code language="none"}}master{{/code}} branch and the change to {{code language="none"}}examples.txt{{/code}} done in the {{code language="none"}}sketches{{/code}} branch are now contained in the repository state that results from the merge. 237 237 ))) 238 238 1. ((( 239 239 Add a commit in each of the two branches using the commands you have already learned. ... ... @@ -676,3 +676,33 @@ 676 676 {{warning}} 677 677 Never rebase a branch that is already pushed online! Due to the structural change the rebased branch is no longer compatible with the previous one, and pushing it will fail, since fast-forward merge is not possible. 678 678 {{/warning}} 679 + 680 +=== Tagging === 681 + 682 +Finally Alan Turing has made a great success in the development of his Machine, and he would like to fix that stage as "Milestone 1". Help him by tagging the current state of the project: 683 + 684 +{{noformat}} 685 +$ git tag milestone1 686 +{{/noformat}} 687 + 688 +Then the head of the current branch is stored under the name {{code language="none"}}milestone1{{/code}}, so it can be found very easily at later stages of the project: 689 + 690 +{{noformat}} 691 +$ git tag 692 +milestone1 693 +$ git checkout milestone1 694 +Note: checking out 'milestone1'. 695 + 696 +You are in 'detached HEAD' state. You can look around, make experimental 697 +changes and commit them, and you can discard any commits you make in this 698 +state without impacting any branches by performing another checkout. 699 + 700 +If you want to create a new branch to retain commits you create, you may 701 +do so (now or later) by using -b with the checkout command again. Example: 702 + 703 + git checkout -b new_branch_name 704 + 705 +HEAD is now at 957f686... Merge remote branch 'gitorious/master' 706 +{{/noformat}} 707 + 708 +Tags can also be loaded to the server using the {{code language="none"}}push{{/code}} command.
- examples.txt
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +192 bytes - Content
-
... ... @@ -1,0 +1,21 @@ 1 +Empty tape with tape head: 2 + 3 + V 4 +---------------- 5 + 6 +Write character "a": 7 + 8 + V 9 +----a----------- 10 + 11 +Move one step right: 12 + 13 + V 14 +----a----------- 15 + 16 +Write character "b": 17 + 18 + V 19 +----ab---------- 20 + 21 +
- notes.txt
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +142 bytes - Content
-
... ... @@ -1,0 +1,6 @@ 1 + * A tape with fixed length 2 + * Tape head can read or write data 3 + * Tape head can move left or right 4 + * The head is controlled by ... (TODO) 5 + 6 +
- turing-graph-01.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +2.9 KB - Content
- turing-graph-02.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +5.4 KB - Content
- turing-graph-03.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +2.5 KB - Content
- turing-graph-04.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +2.1 KB - Content
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -29821 741 +2982081 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/29821 74/Git1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/2982081/Git