-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGit-Command-Lab
More file actions
156 lines (153 loc) · 3.56 KB
/
Copy pathGit-Command-Lab
File metadata and controls
156 lines (153 loc) · 3.56 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
Git Commands with Technical Guftgu by Bhupinder Rajput
Scenario :-
Launch one linux ec2 instance in Mumbai (ssh&http) region :-
1) yum install git -y
2) which git
3) git --version
4) git config --global user.name "bhupinder"
5) git config --global user.email “bhupinder@gmail.com”
6) git config –list
7) mkdir mumbaigit
8) cd mumbaigit
9) git init
10) cat >mumbai1
dil e nadaan tujhe huaa kya hai
contrl+D
11) git status
12) git add .
13) git status
14) git commit -m “My first commit from mumbai”
15) git status
16) git log
17) git show 3d94671af5e0b1e0676e9716e348fcf1c2b47582
18) git remote add origin https://github.com/akashbkochure/technicalguftgu.git
19) git push -u origin master
Gitusername- ******
Gittokenpassword- ******
20) cat >mumbai1
aakhir is murj ki dava kya hai?
21) cat mumbai1
22) git status
23) git add .
24) git status
25) git commit -m “My second commit from mumbai”
26) git status
27) git log
28) git show 54e94320cc107d68f73b52cb91e5458cf0bee0e6
29) git push origin master or git push -u origin master
Gitusername- ******
Gittokenpassword- ******
30) git status
*Next Day
1) git pull origin master
2) git log
3) git show ce742e93ef1166303f02125067cfdd3ec1d32ab0
4) cat .gitignore
*.css
*.java
5) git add .gitignore
6) git commit -m "ignore file format"
7) git status
8) touch file1.txt file2.java file3.txt file4.css file5.txt
9) git status
10) git add .
11) git status
12) git commit -m "ignore css and java files"
13) git status
14) git log
15) git show 3fa6e1e39583bfeb22241e6e9bc226403ae69bb3
16) touch Bhupinder.java
17) git status
18) touch Bhupinder.txt
19) git status
20) git log -1
21) git log -2
23) git log --oneline
24) git log --grep “ignore”
25) git log --grep “commit”
26) git push -u origin master
Gitusername- ******
Gittokenpassword- ******
27) git status
Launch other linux ec2 instance in Singapur (ssh&http) region :-
1) yum install git -y
2) which git
3) git --version
4) git config --global user.name "akash"
5) git config --global user.email “akash@gmail.com”
6) git config –list
7) mkdir singaporegit
8) cd singaporegit
9) git init
10) ls -la
11) git remote add origin https://github.com/akashbkochure/technicalguftgu.git
12) git log
13) git status
14) git pull origin master
15) git show 54e94320cc107d68f73b52cb91e5458cf0bee0e6
16) cat >>mumbai1
hume unse hai wafaa ki umeed
jinhe maalum hi nahi wafaa kya hai
contrl+D
17) cat mumbai1
18) git status
19) git add .
20) git status
21) git commit -m "my first commit from singapore"
22) git status
23) git log
24) git show ce742e93ef1166303f02125067cfdd3ec1d32ab0
25) git push -u origin master
Gitusername- ******
Gittokenpassword- ******
26) git status
*** Next Day :-
1) git pull origin master
2) git log
3) git branch
4) git branch branch1
5) git branch
6) ls
7) git checkout branch1
8) git branch
9) ls
10) git log --oneline
11) cat >branch1file
Hello to All, From my side (Akash Kochure),
“Happy Christmas ! from to all by my side.”
12) git status
13) git add .
14) git status
15) git commit -m "branch1 first commit from singapore"
16) git status
17) git log
18) git checkout master
19) git branch
20) ls
21) git checkout branch1
22) git branch
23) ls
24) cat >branch1secondfile
Hiiiieeeee
25) ls
26) git branch
27) git checkout master
28) git branch
29) ls
30) git checkout branch1
31) git branch
32) ls
33) git add .
34) git commit -m "second commit branch1 from singapore"
35) git log --oneline
36) git checkout master
37) ls
38) git log --oneline
39) git merge branch1
40) ls
41) git log --oneline
42) git status
43) git push -u origin master
Gitusername- ******
Gittokenpassword- ******
44) git status