mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-12 01:34:15 +02:00
Merge branch 'main' into ko_translation
This commit is contained in:
@@ -82,13 +82,38 @@ Let's say you have a folder locally with some code project and you want to start
|
||||
|
||||
Typically a `git status` command tells you things like what files are ready to be _saved_ to the repo or has changes on it that you might want to persist.
|
||||
|
||||
1. **Add files to tracking**
|
||||
1. **Add all files for tracking**
|
||||
This also called as staging files/ adding files to the staging area.
|
||||
|
||||
```bash
|
||||
git add .
|
||||
```
|
||||
|
||||
The `git add` plus `.` argument indicates that all your files & changes for tracking.
|
||||
The `git add` plus `.` argument indicates that all your files & changes for tracking.
|
||||
|
||||
1. **Add selected files for tracking**
|
||||
|
||||
```bash
|
||||
git add [file or folder name]
|
||||
```
|
||||
|
||||
This helps us to add only selected files to the staging area when we don't want to commit all files at once.
|
||||
|
||||
1. **Unstage all files**
|
||||
|
||||
```bash
|
||||
git reset
|
||||
```
|
||||
|
||||
This command helps us to unstage all files at once.
|
||||
|
||||
1. **Unstage a particular file**
|
||||
|
||||
```bash
|
||||
git reset [file or folder name]
|
||||
```
|
||||
|
||||
This command helps us to unstage only a particular file at once that we don't want to include for the next commit.
|
||||
|
||||
1. **Persisting your work**. At this point you've added the files to a so called _staging area_. A place where Git is tracking your files. To make the change permanent you need to _commit_ the files. To do so you create a _commit_ with the `git commit` command. A _commit_ represents a saving point in the history of your repo. Type the following to create a _commit_:
|
||||
|
||||
|
@@ -6,13 +6,13 @@
|
||||
- [ ] Pull Request (Tarik Permintaan)
|
||||
- [ ] Feature branch (Cabang fitur)
|
||||
|
||||
1. Bagaimana Anda mendapatkan semua komit dari cabang remote (jarak jauh)?
|
||||
2. Bagaimana Anda mendapatkan semua komit dari cabang remote (jarak jauh)?
|
||||
|
||||
- [ ] `git fetch`
|
||||
- [ ] `git pull`
|
||||
- [ ] `git commits -r`
|
||||
|
||||
1. Bagaimana Anda beralih ke sebuah cabang (branch)?
|
||||
3. Bagaimana Anda beralih ke sebuah cabang (branch)?
|
||||
|
||||
- [ ] `git switch [branch-name]`
|
||||
- [ ] `git checkout [branch-name]`
|
||||
|
@@ -6,7 +6,7 @@
|
||||
- [ ] git start
|
||||
- [ ] git init
|
||||
|
||||
1. Apa fungsi `git add`?
|
||||
2. Apa fungsi `git add`?
|
||||
|
||||
- [ ] Commit (menyerahkan) kode Anda
|
||||
- [ ] Menambahkan file Anda ke area pementasan (staging area) untuk dilacak
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
Esta lección cubre los conceptos básicos de GitHub, una plataforma para alojar y administrar cambios en su código.
|
||||
|
||||
## [Pre-lecture prueba](.github/pre-lecture-quiz.md)
|
||||
## [Pre-lecture prueba](../.github/pre-lecture-quiz.md)
|
||||
|
||||
### Introducción
|
||||
|
||||
@@ -266,7 +266,7 @@ Los proyectos también pueden tener discusiones en foros, listas de correo o can
|
||||
|
||||
🚀 Desafío: empareje con un amigo para trabajar en el código del otro. Cree un proyecto de forma colaborativa, bifurque el código, cree ramas y combine los cambios.
|
||||
|
||||
## [Post-lecture prueba](.github/post-lecture-quiz.md)
|
||||
## [Post-lecture prueba](../.github/post-lecture-quiz.md)
|
||||
|
||||
## Revisión y autoestudio
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
# Pengantar GitHub
|
||||
# Dasar-dasar GitHub
|
||||
|
||||
Pelajaran ini mencakup dasar-dasar GitHub, platform untuk menghosting dan mengelola perubahan pada kode Anda.
|
||||
|
||||

|
||||

|
||||
> Catatan sketsa oleh [Tomomi Imura](https://twitter.com/girlie_mac)
|
||||
|
||||
## Kuis Pra-Kuliah
|
||||
|
Reference in New Issue
Block a user