|
|
@ -131,3 +131,105 @@ git log |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
### Historie - Anzeigen Nr.2 |
|
|
|
|
|
|
|
``` |
|
|
|
git switch test3 |
|
|
|
|
|
|
|
echo "noch weitere Zeilen" >> text.txt |
|
|
|
git add text.txt |
|
|
|
git commit -am "1Commitin3" |
|
|
|
|
|
|
|
echo "noch weitere Zeilen" >> text.txt |
|
|
|
git add text.txt |
|
|
|
git commit -m "2Commitin3" |
|
|
|
echo "noch weitere Zeilen" >> text.txt |
|
|
|
git add text.txt |
|
|
|
git commit -m "3Commitin3" |
|
|
|
echo "noch weitere Zeilen" >> text.txt |
|
|
|
git add text.txt |
|
|
|
git commit -m "4Commitin3" |
|
|
|
|
|
|
|
git log |
|
|
|
git log --all |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
### Merging - Konfliktfrei |
|
|
|
|
|
|
|
``` |
|
|
|
git tag tag-test3 |
|
|
|
git switch test2 |
|
|
|
git tag tag-test2 |
|
|
|
git merge test3 |
|
|
|
git log --oneline --graph |
|
|
|
git reset --hard tag-test2 |
|
|
|
git switch test3 |
|
|
|
git merge test2 |
|
|
|
git log |
|
|
|
``` |
|
|
|
|
|
|
|
### Merging - Konfliktauflösung/Vorbereitung |
|
|
|
|
|
|
|
``` |
|
|
|
git reset --hard tag-test3 |
|
|
|
git add text.txt |
|
|
|
git commit -m "Branchname zur zweiten Zeile" |
|
|
|
git tag tag-test3-conflict |
|
|
|
git switch test2 |
|
|
|
git tag tag-test2-conflict |
|
|
|
``` |
|
|
|
|
|
|
|
### Merging - Konfliktauflösung |
|
|
|
|
|
|
|
``` |
|
|
|
git merge test3 |
|
|
|
git status |
|
|
|
git merge --abort |
|
|
|
git merge --no-commit --s recursive -X ours test3 |
|
|
|
cat text.txt |
|
|
|
cp text.txt |
|
|
|
git merge --abort |
|
|
|
git merge --no-commit --s recursive -X ours test3 |
|
|
|
diff text.txt text.txt.save |
|
|
|
git merge --abort |
|
|
|
``` |
|
|
|
|
|
|
|
### Rebase - Konfliktfrei Nr.1 |
|
|
|
|
|
|
|
``` |
|
|
|
git checkout test2 |
|
|
|
git reset --hard tag-test2 |
|
|
|
git log --all |
|
|
|
git rebase test3 |
|
|
|
git log --all |
|
|
|
diff text.txt text.txt.save |
|
|
|
``` |
|
|
|
|
|
|
|
### Rebase - Konfliktfrei Nr.2 |
|
|
|
``` |
|
|
|
git reset --hard tag-test2 |
|
|
|
git checkout test3 |
|
|
|
git rebase test2 |
|
|
|
git log --all |
|
|
|
diff text.txt text.txt.save |
|
|
|
``` |
|
|
|
|
|
|
|
### Rebase - Konfliktauflösung Nr.1 |
|
|
|
``` |
|
|
|
git reset --hard tag-test3-conflict |
|
|
|
git checkout test2 |
|
|
|
git reset --hard tag-test2-conflict |
|
|
|
git rebase test3 |
|
|
|
git log --all |
|
|
|
``` |
|
|
|
|
|
|
|
### Rebase - Konfliktauflösung Nr.2 |
|
|
|
``` |
|
|
|
git add text.txt |
|
|
|
git rebase --continue |
|
|
|
git log -all |
|
|
|
git rebase --continue |
|
|
|
git log |
|
|
|
git rebase --abort |
|
|
|
``` |