forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.json
More file actions
140 lines (138 loc) · 6.39 KB
/
Copy pathgit.json
File metadata and controls
140 lines (138 loc) · 6.39 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
{
"id": "git-cheat-sheet",
"title": "গিট",
"slug": "git-cheat-sheet",
"description": "গিট এর চিটশিট",
"colorPref": "#000",
"contents": [
{
"title": "প্রাথমিক কনফিগারেশন",
"items": [
{
"definition": "গিট ভার্সন চেক",
"code": "git --version"
},
{
"definition": "গিট ইউজার নেম সেট করা ",
"code": "git config --global user.name \"username\" "
},
{
"definition": "গিট ইউজার ইমেল সেট করা",
"code": "git config --global user.email \"user@name.com\" "
},
{
"definition": "গিট ইউজার নেম বাতিল করা",
"code": "git config --global --unset-all user.name"
},
{
"definition": "গিট ইউজার ইমেইল বাতিল করা",
"code": "git config --global --unset-all 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": "কমিট এর জন্যে সব পরিবর্তিত ফাইল এড করা",
"code": "git add ."
},
{
"definition": "Repository তে কিছু কমিট করা (কমিট মেসেজসহ)",
"code": "git commit -m \"YourCommitMessage\""
},
{
"definition": "Repository তে লোকাল ব্রাঞ্চ থেকে আপলোড করা",
"code": "git push -u origin [branchName]"
},
{
"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 branch -d [branch-name]"
},
{
"definition": "রিমোট ব্রাঞ্চ রিমুভ করতে",
"code": "git push --delete origin [branch-name]"
},
{
"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"
}
]
}
]
}