-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix2.txt
More file actions
58 lines (31 loc) · 2.09 KB
/
Copy pathfix2.txt
File metadata and controls
58 lines (31 loc) · 2.09 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
echo "duck" > README.md
echo "moose" >> README.md
echo "cat" >> README.md
git commit -S -m "Initial commit"
git branch feature1
git switch feature1
echo "dog" >> README.md
(Get-Content README.md) -replace 'moose', 'mouse' | Set-Content README.md
git commit -S -m "Add and replace animals"
git switch main
(Get-Content README.md) -replace 'mouse', 'mahmut' | Set-Content README.md
git merge feature1
git commit -m "Merge feature1 into main"
git tag extinct 3b130888f3113963fb8e0db448c20f1112bb7583
git show extinct
git log
git reset --hard 55e4904
git branch feature2
(Get-Content README.md) -replace '\b[a-z]', { $_.ToUpper() } | Set-Content README.md
git add README.md
git commit -m "Capitalize all animal names in README.md"
git checkout feature2
echo "This is fix1" > fix1.txt
git add fix1.txt
git commit -m "Lägg till fix1.txt"
echo "This is fix2" > fix2.txt
git add fix2.txt
git commit -m "Lägg till fix2.txt"
git checkout main
git log feature2 --oneline
git cherry-pick ca5ca2f