-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix2.txt
More file actions
82 lines (63 loc) · 1.73 KB
/
fix2.txt
File metadata and controls
82 lines (63 loc) · 1.73 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
git init
git branch main
git checkout main
git status
-skapade en fil (REAME.md) på intelliJ och skrev in duck, moose, cat
git add README.md
git commit -m "Initial commit"
git branch feature1
git checkout feature1
-la till dog och bytte ut moose mot mouse
git add README.md
git commit -m "Added dog and moose to mouse"
git checkout main
-ändrade moose till mahmut
git add README.md
git commit -m "moose to mahmut"
git merge feature1
-ändrade i filen så det blev rätt enligt instruktioner
git add README.md
git commit -m "merge feature1"
git tag extinct
git reset --hard HEAD^
git branch feature2
-ändrade så varje ord börjar med en stor bokstav
git add README.md
git commit -m "Stor bokstav"
git checkout feature2
-skapade en fil som heter fix1.txt
git add fix1.txt
git commit -m "Add fix1"
-skapade en fil som heter fix2.txt
git add fix2.txt
git commit -m "Add fix2"
git checkout main
git cherry-pick 60107eb7 = (fix2.txt)
-la till all commands som har använts tills nu
git add fix2.txt
git commit -m "Add commands into fix2"
git remote add origin https://github.com/TrungMa1/githublabb1.git
git push -u origin --all
git push --tags
-skapade en ny fil med namnet .gitignore och la till instruktioner
.jar, out/, target/, !/*.html
git add .gitignore
git commit -m "Add .gitignore"
git push
git tag -a v1.0 -m "Version 1.0"
git push --tags
git rebase -i HEAD~2
-ändrade den andra commiten till squash
git rebase --continue
git checkout -b feature3
-la till resterande commands i fix2
git add fix2.txt
git commit -m "Update fix2"
git checkout main
git merge --no-ff feature3 -m "Merge feature3 and Update fix2"
git pull
-fixade några conflicts i fix2.txt
git add fix2.txt
git commit -m "final commit"
git push
-la till git config gpgkey i slutet