gitgit branchgit mergegit rebasegit stashgit cherry-pickgit taggit forkgit pull requestgit stacked prs
Bước 1 trên 5. Bạn sửa app.js trong working directory. Working Directory: app.js; Staging Area: trống; Local Repository: e4a1, 9c2f; Remote — origin: e4a1, 9c2f
GIT HOẠT ĐỘNG THẾ NÀO
một thay đổi đi qua đúng 4 chặng — sửa file → add → commit → push, không chặng nào nhảy cóc được
project — zsh
~/project $ git status
On branch main Changes not staged for commit: modified: app.js
ĐÃ SỬA
Working Directory
file bạn đang sửa
app.jsM+12 -3
function login(user) {
-// TODO: auth
+return auth(user)
}
Staging Area
git add
Local Repository
git commit
e4a1
9c2f
Remote — origin
git push
e4a1
9c2f
BƯỚC 1 / 5
Bạn sửa app.js trong working directory
0:00 / 0:20