Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Working tree, staging area?

Dikenal juga sebagai: working tree · staging area · index (Git)

Definition 9.3 University Computer Science — Year 1 · Bab 9 — Version Control with Git

The working tree is the folder of the project, the files as you edit them. The staging area (also called the index) holds the snapshot that the next commit will record; git add copies a file of the working tree into it, and git commit records it in the repository.

The three places a file lives in. git add and git commit move changes to the right; git restore brings a file back from the staging area, and git restore --staged unstages it. Each diff compares two neighbouring places.
The three places a file lives in. git add and git commit move changes to the right; git restore brings a file back from the staging area, and git restore --staged unstages it. Each diff compares two neighbouring places.
Baca dalam konteks →