You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
by <ahref="http://www.twitter.com/rogerdudler">Roger Dudler</a>
35
-
<br/>credits to <ahref="http://www.twitter.com/tfnico">@tfnico</a>, <ahref="http://www.twitter.com/fhd">@fhd</a> and <ahref="http://www.namics.com">Namics</a><br/>
36
-
this guide in
34
+
oleh <ahref="http://www.twitter.com/rogerdudler">Roger Dudler</a> (alih bahasa <ahref="//twitter.com/ItangSanjana">Itang Sanjana</a>)
35
+
<br/>kredit <ahref="http://www.twitter.com/tfnico">@tfnico</a>, <ahref="http://www.twitter.com/fhd">@fhd</a> dan <ahref="http://www.namics.com">Namics</a><br/>
Now you are able to push your changes to the selected remote server<br/>
128
+
Sekarang kamu bisa mengirimkan perubahan ke server jarak-jauh yang dituju<br/>
128
129
129
130
</p>
130
131
</div>
131
132
<aname="branching"></a>
132
133
<divclass="scrollblock block-branching">
133
-
<h2>branching</h2>
134
+
<h2>percabangan</h2>
134
135
<p>
135
-
Branches are used to develop features isolated from each other. The <i>master</i>branch is the "default" branch when you create a repository. Use other branches for development and merge them back to the master branch upon completion.
136
+
percabangan atau <i>branching</i> digunakan untuk mengembangkan fitur-fitur secara terisolasi. Cabang utama atau <i>master</i>merupakan cabang bawaan ketika kamu membuat repositori. Gunakan cabang lain untuk pengembangan, setelah selesai, gabungkan kembali ke cabang utama.
136
137
</p>
137
138
<imgsrc="img/branches.png" alt="" />
138
139
<p>
139
-
create a new branch named "feature_x" and switch to it using<br/>
140
-
<code>git checkout -b feature_x</code><br/>
141
-
switch back to master<br/>
140
+
buat cabang baru dengan nama "fitur_x" dan beralih kedalamnya menggunakan<br/>
141
+
<code>git checkout -b fitur_x</code><br/>
142
+
beralih kembali ke <i>master</i><br/>
142
143
<code>git checkout master</code><br/>
143
-
and delete the branch again<br/>
144
-
<code>git branch -d feature_x</code><br/>
145
-
a branch is <i>not available to others</i> unless you push the branch to your remote repository<br/>
146
-
<code>git push origin <branch></code>
144
+
dan hapus cabang yang tadi dibuat<br/>
145
+
<code>git branch -d fitur_x</code><br/>
146
+
suatu cabang <em>tidak terbuka untuk yang lainnya</em> kecuali jika kamu mengirimkannya ke repositori jarak-jauh.<br/>
147
+
<code>git push origin <cabang></code>
147
148
</p>
148
149
</div>
149
150
<aname="update"></a>
150
151
<divclass="scrollblock block-merging">
151
-
<h2>update & merge</h2>
152
+
<h2>perbaru & gabung</h2>
152
153
<p>
153
-
to update your local repository to the newest commit, execute<br/>
154
+
untuk memperbarui repositori lokal ke komit terkini, lakukan<br/>
154
155
<code>git pull</code><br/>
155
-
in your working directory to <i>fetch</i> and <i>merge</i> remote changes.<br/>
156
-
to merge another branch into your active branch (e.g. master), use<br/>
157
-
<code>git merge <branch></code><br/>
158
-
in both cases git tries to auto-merge changes. Unfortunately, this is not always possible and results in <i>conflicts</i>.
159
-
You are responsible to merge those <i>conflicts</i>
160
-
manually by editing the files shown by git. After changing, you need to mark them as merged with<br/>
161
-
<code>git add <filename></code><br/>
162
-
before merging changes, you can also preview them by using<br/>
dari direktori kerja kamu untuk <em>mengambil</em> dan <em>menggabungkan</em> perubahan jarak-jauh.<br/>
157
+
untuk menggabungkan cabang lain ke cabang aktif (misal <i>master</i>), gunakan<br/>
158
+
<code>git merge <cabang></code><br/>
159
+
pada kasus diatas, git mencoba menggabungkan perubahan secara otomatis. Sayangnya hal ini tak selalu berjalan mulus dan bisa menyebabkan <em>konflik</em>.
160
+
Kamu lah yang bertanggung jawab menggabungkan <em>konflik</em> tersebut
161
+
secara manual dengan menyunting berkas yang ditunjukkan git. Setelah itu, kamu perlu memarkahinya dengan<br/>
162
+
<code>git add <namaberkas></code><br/>
163
+
sebelum penggabungan berlaku, kamu bisa melakukan pratinjau menggunakan<br/>
it's recommended to create tags for software releases. this is a known concept, which also exists in SVN. You can create a new tag named <i>1.0.0</i> by executing<br/>
171
+
sangat dianjurkan membuat penanda atau <em>tags</em> untuk perangkat lunak yang dirilis. Hal ini amat lah lazim, yang juga terjadi di SVN. Kamu bisa membuat penanda baru dengan nama <em>1.0.0</em> dengan menjalankan<br/>
171
172
<code>git tag 1.0.0 1b2e1d63ff</code><br/>
172
-
the <i>1b2e1d63ff</i> stands for the first 10 characters of the commit id you want to reference with your tag. You can get the commit id by looking at the... <br/>
173
+
<em>1b2e1d63ff</em> adalah 10 karakter pertama dari identitas komit yang ingin kamu referensikan ke penanda. Kamu bisa mendapatkan identitas komit dengan melihat... <br/>
173
174
</p>
174
175
</div>
175
176
<aname="log"></a>
176
177
<divclass="scrollblock block-log">
177
178
<h2>log</h2>
178
179
<p>
179
-
in its simplest form, you can study repository history using..
180
+
dalam bentuknya yang paling sederhana, kamu bisa mempelajari riwayat repositori menggunakan..
180
181
<code>git log</code><br/>
181
-
You can add a lot of parameters to make the log look like what you want. To see only the commits of a certain author:<br/>
182
+
kamu bisa menambahkan banyak parameter untuk menampilkan log sesuai keinginan. Untuk melihat komit penulis tertentu:<br/>
182
183
<code>git log --author=bob</code><br/>
183
-
To see a very compressed log where each commit is one line:<br/>
184
+
Untuk melihat log yang dimampatkan, satu baris per komit:<br/>
184
185
<code>git log --pretty=oneline</code><br/>
185
-
Or mabe you want to see an ASCII art tree of all the branches, decorated with the names of tags and branches: <br/>
186
+
Atau mungkin kamu ingin melihat pohon <i>ASCII art</i> seluruh percabangan disertai nama dan penandanya: <br/>
perintah di atas mengembalikan perubahan di dalam pokok kerja kamu dengan konten terakhir dari <i>HEAD</i>. Perubahan dan berkas baru yang telah ditambahkan ke indeks akan tetap tersimpan.
200
201
</p>
201
202
<p>
202
-
If you instead want to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it like this<br/>
203
+
Jika kamu ingin menggugurkan perubahan dan komit lokal seutuhnya, ambil riwayat terakhir dari server dan arahkan ke cabang <i>master</i> lokal seperti ini<br/>
0 commit comments