-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix2.txt
More file actions
67 lines (47 loc) · 1.48 KB
/
Copy pathfix2.txt
File metadata and controls
67 lines (47 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
git init
git remote add origin https://github.com/johanhiths/Lab1.git
New-Item README.md -ItemType file
Add-Content README.md "duck mouse cat"
git add .
git commit -m "Initial commit"
git push -u origin main
git checkout -b feature1
Add-Content README.md "dog"
(Get-Content README.md) -replace "moose", "mouse" | Set-Content README.md
git add README.md
git commit -m "Addade dog och replace moose med mouse"
git push -u origin main
git checkout main
merge feature1
git add README.md
git commit
git tag extinct 74ec87b
git reset --hard HEAD~1
git branch feature2
(Get-Content README.md) -replace "mammoth", "Mammoth" | Set-Content README.md
(Get-Content README.md) -replace "cat", "Cat" | Set-Content README.md
(Get-Content README.md) -replace "duck", "Duck" | Set-Content README.md
git add .
git commit -m "Addade djur med stora bokstäver"
New-Item fix1.txt -ItemType File -Force
git add fix1.txt
git commit -m "Addade fix1.txt"
New-Item fix2.txt -ItemType File -Force
git add fix2.txt
git add .
git commit -m "Addade fix2.txt"
git checkout main
git log --oneline feature2
git cherry-pick 61599dd
git branch cleanup_test
git checkout cleanup_test
Add-Content README.md "bird"
Add-content README-md "bear"
Add-content README.md "wolf"
git rebase -i HEAD~3
git commit -m "Added several animals"
git push -u origin main
Add-content README.md "Turtle"
git add .
git commit -m "Addid Turtle"
git commit --amend -m"Added turtle"