Cấp độ: elementary 25 phútmin Miễn phí Free Young Creator Young Creator

Git: Quản lý phiên bản code Git: Version control your code

Repo Git với 5 commit lịch sử A Git repo with 5 commits

Bạn sẽ học gì What you will learn

  • Khởi tạo repo với git init Initialize a repo with git init
  • Stage và commit với git add/commit Stage and commit with git add/commit
  • Xem lịch sử với git log View history with git log

Bạn sẽ tạo gì What you will build

Repo Git với 5 commit lịch sử A Git repo with 5 commits

Code mẫu Sample code

bash
# Các lệnh Git cơ bản / Basic Git commands
git init                         # Tạo repo mới
git add .                        # Stage tất cả file
git commit -m "feat: first page" # Tạo commit
git log --oneline                # Xem lịch sử
git status                       # Kiểm tra trạng thái