Skip to content
Navigation Menu
{{ message }}
forked from zonayedpca/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.json
More file actions
335 lines (335 loc) · 14.2 KB
/
Copy pathgit.json
File metadata and controls
335 lines (335 loc) · 14.2 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
{
"id": "git-cheat-sheet",
"title": "গিট",
"slug": "git-cheat-sheet",
"description": "গিট এর চিটশিট",
"colorPref": "#000",
"contents": [
{
"title": "প্রাথমিক কনফিগারেশন",
"items": [
{
"definition": "গিট ইনস্টল ম্যাক",
"code": "brew install git"
},
{
"definition": "গিট আনইনস্টল ম্যাক",
"code": "brew remove git"
},
{
"definition": "গিট আনইনস্টল উবুন্টু",
"code": "sudo apt-get remove git"
},
{
"definition": "গিট ইনস্টল উবুন্টু",
"code": "sudo apt-get install git"
},
{
"definition": "গিট ভার্সন চেক",
"code": "git --version"
},
{
"definition": "গিট এর গ্লোবাল ইউজার নেম সেট করা",
"code": "git config --global user.name \"username\" "
},
{
"definition": "গিট এর গ্লোবাল ইউজার নেম চেক করা",
"code": "git config --global user.name"
},
{
"definition": "গিট এর গ্লোবাল ইউজার ইমেল সেট করা",
"code": "git config --global user.email \"user@name.com\" "
},
{
"definition": "গিট এর গ্লোবাল ইউজার ইমেল চেক করা",
"code": "git config --global user.email"
},
{
"definition": "গিট এর লোকাল/একটি নির্দিষ্ট রিপোজিটরির ইউজার নেম সেট করা",
"code": "git config user.name \"username\" "
},
{
"definition": "গিট এর লোকাল/একটি নির্দিষ্ট রিপোজিটরির ইউজার নেম চেক করা",
"code": "git config user.name"
},
{
"definition": "গিট এর লোকাল/একটি নির্দিষ্ট রিপোজিটরির ইউজার ইমেল সেট করা",
"code": "git config user.email \"user@name.com\" "
},
{
"definition": "গিট এর লোকাল/একটি নির্দিষ্ট রিপোজিটরির ইউজার ইমেল চেক করা",
"code": "git config user.email"
},
{
"definition": "গিট এর গ্লোবাল ইউজার নেম বাতিল করা",
"code": "git config --global --unset-all user.name"
},
{
"definition": "গিট এর গ্লোবাল ইউজার ইমেইল বাতিল করা",
"code": "git config --global --unset-all user.email"
},
{
"definition": "গিট এর লোকাল/একটি নির্দিষ্ট রিপোজিটরির ইউজার নেম বাতিল করা",
"code": "git config --unset user.name"
},
{
"definition": "গিট এর লোকাল/একটি নির্দিষ্ট রিপোজিটরির ইউজার ইমেইল বাতিল করা",
"code": "git config --unset user.email"
}
]
},
{
"title": "Repository কমান্ডসমূহ ",
"items": [
{
"definition": "কোনো Repository ক্লোন করা(লোকাল মেশিনে ডাউনলোড করা)",
"code": "git clone [url]"
},
{
"definition": "নতুন Repository তৈরী করা",
"code": "git init"
},
{
"definition": "Repository এর বর্তমান অবস্থা/পরিবর্তনগুলো দেখা (নতুন অথবা পুরোনো, কি কি ফাইল কমিট করতে হবে, ওয়ার্কিং ব্রাঞ্চ ইত্যাদি)",
"code": "git status"
},
{
"definition": "কমিট এর জন্যে ফাইল এড করা",
"code": "git add [file]"
},
{
"definition": "একটি নির্দিষ্ট extension এর সকল ফাইল এড করা",
"code": "git add *.ext"
},
{
"definition": "একটি নির্দিষ্ট ফোল্ডারের সকল ফাইল এড করা",
"code": "git add /folder"
},
{
"definition": "একটি নির্দিষ্ট ফোল্ডারের একটি নির্দিষ্ট extension এর সকল ফাইল এড করা",
"code": "git add folder/*.ext"
},
{
"definition": "কমিট এর জন্যে সব পরিবর্তিত ফাইল এড করা",
"code": "git add ."
},
{
"definition": "Repository তে কিছু কমিট করা (কমিট মেসেজসহ)",
"code": "git commit -m \"YourCommitMessage\""
},
{
"definition": "Repository তে লোকাল ব্রাঞ্চ থেকে আপলোড করা",
"code": "git push -u origin [branchName]"
},
{
"definition": "রিপোজিটরিতে এড করা ফাইল আনট্র্যাক করা",
"code": "git rm --cached filename"
},
{
"definition": "gitignore এ থাকা সকল ফাইল আনট্র্যাক করা",
"code": "git rm -r --cached ."
},
{
"definition": "রিপোজিটরি রিনেম করা",
"code": "git branch -m new_name"
},
{
"definition": "শেষ কমিট এবং বর্তমান unstaged ভার্শনের পার্থক্য দেখা",
"code": "git diff"
},
{
"definition": "শেষ কমিট এবং বর্তমান staged ভার্শনের পার্থক্য দেখা",
"code": "git diff --staged"
},
{
"definition": "কমিট মেসেজ সংশোধন করা",
"code": "git commit --amend -m \"your message\""
},
{
"definition": "শেষ কমিট থেকে stage এরিয়া তে মুভ করা ",
"code": "git reset --soft HEAD^"
},
{
"definition": "শেষ কমিট ডিলেট করা",
"code": "git reset --hard HEAD^"
},
{
"definition": "শেষ দুটি কমিট ডিলেট করা",
"code": "git reset --hard HEAD^^"
},
{
"definition": "সব লোকাল ব্রাঞ্চ এর নাম লিস্ট করা",
"code": "git branch"
},
{
"definition": "সব রিমোট ব্রাঞ্চ এর নাম লিস্ট করা",
"code": "git branch -r"
},
{
"definition": "সব লোকাল এবং রিমোট ব্রাঞ্চ এর নাম লিস্ট করা",
"code": "git branch -a"
},
{
"definition": "নতুন ব্রাঞ্চ তৈরী",
"code": "git branch [branch_name]"
},
{
"definition": "ব্রাঞ্চ চেঞ্জ করতে",
"code": "git checkout [branch-name]"
},
{
"definition": "ব্রাঞ্চ তৈরী এবং চেঞ্জ করা",
"code": "git checkout -b \"branch name\""
},
{
"definition": "নির্দিষ্ট কমিট পরিবর্তন না করা",
"code": "git checkout -- <filename>"
},
{
"definition": "সকল কমিট পরিবর্তন না করা",
"code": "git checkout -- ."
},
{
"definition": "কমিট প্রত্যাবর্তন করা",
"code": "git revert <commit hash>"
},
{
"definition": "নির্দিষ্ট কমিট প্রত্যাবর্তন করা",
"code": "git revert -n <commit hash>"
},
{
"definition": "ব্রাঞ্চ রিমুভ করা",
"code": "git branch -d [branch-name]"
},
{
"definition": "রিমোট ব্রাঞ্চ রিমুভ করা",
"code": "git push --delete origin [branch-name]"
},
{
"definition": "একটি নির্দিষ্ট ব্রাঞ্চের জন্য ইউজার নেম, পাসওয়ার্ড সেভ করা",
"code": "git config credential.helper store"
},
{
"definition": "সকল ব্রাঞ্চের জন্য ইউজার নেম, পাসওয়ার্ড সেভ করা",
"code": "git config --global credential.helper store"
},
{
"definition": "ট্যাগ লিস্ট দেখতে",
"code": "git tag"
},
{
"definition": "ট্যাগ তৈরি করা",
"code": "git tag [tag-name]"
},
{
"definition": "কমিট লগ বিস্তারিত দেখতে",
"code": "git log"
},
{
"definition": " কমিট লগ সামারি আকারে দেখতে((৫টি)",
"code": "git log --oneline -5"
},
{
"definition": " কমিট লগ ইউজার অনুযায়ী দেখতে",
"code": "git shortlog"
},
{
"definition": "রিমোট এড করা",
"code": "git remote add RemoteName RemoteURL"
},
{
"definition": "সবগুলো রিমোটের লিস্ট নাম এবং URL সহ দেখা",
"code": "git remote -v"
},
{
"definition": "অন্য Repository থেকে ব্রাঞ্চ/রেফ/অবজেক্ট fetch করা",
"code": "git fetch RepositoryName"
},
{
"definition": "Repository থেকে নতুন চেঞ্জ গুলো pull করা",
"code": "git pull"
},
{
"definition": "Fork Repository ক্ষেত্রে upstream রিমোট কনফিগার করা",
"code": "git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git"
},
{
"definition": "Fork Repository কে upstream এর সাথে up-to-date রাখা",
"code": "git fetch upstream"
},
{
"definition": "কন্ট্রিবিউটরদের নামের লিস্ট দেখা",
"code": "git shortlog -sn"
},
{
"definition": "কন্ট্রিবিউটরদের নাম এবং তাঁদের সকল কমিট লিস্ট অাকারে দেখা",
"code": "git shortlog"
},
{
"definition": "গিট flow ইনস্টল ম্যাক(Homebrew)",
"code": "brew install git-flow-avh"
},
{
"definition": "গিট flow ইনস্টল ম্যাক(Macports)",
"code": "port install git-flow-avh"
},
{
"definition": "গিট flow ইনস্টল লিনাক্স",
"code": "apt-get install git-flow"
},
{
"definition": "গিট flow ইনস্টল উইন্ডোজ",
"code": "wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash"
},
{
"definition": "গিট flow শুরু করা",
"code": "git flow init"
},
{
"definition": "নতুন ফিচার শুরু করা",
"code": "git flow feature start features_name"
},
{
"definition": "ফিচার শেষ করা",
"code": "git flow feature finish features_name"
},
{
"definition": "ফিচার পাবলিশ করা",
"code": "git flow feature publish features_name"
},
{
"definition": "ফিচার পুল করা",
"code": "git flow feature pull origin features_name"
},
{
"definition": "ফিচার ট্র্যাক করা",
"code": "git flow feature track features_name"
},
{
"definition": "রিলিজ শুরু করা",
"code": "git flow release start RELEASE [BASE]"
},
{
"definition": "রিলিজ শেষ করা",
"code": "git flow release finish RELEASE"
},
{
"definition": "রিলিজ পাবলিশ করা",
"code": "git flow release publish RELEASE"
},
{
"definition": "রিলিজ ট্র্যাক করা",
"code": "git flow release track RELEASE"
},
{
"definition": "হটফিক্স শুরু করা",
"code": "git flow hotfix start VERSION [BASENAME]"
},
{
"definition": "হটফিক্স শেষ করা",
"code": "git flow hotfix finish VERSION"
}
]
}
]
}
You can’t perform that action at this time.
