Final Submission #14764
open[Nguyen Van Minh Khanh] Git Foundation Final Submission
100%
Description
GitHub Repository¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation
1. Commits (10 commits)¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/commits/main
- init: setup repository with project overview and learning objectives
- docs: add complete git commands reference sheet
- feat: add conflict and rollback demo documentation
- docs: update Git role description with production context
- docs: update Git role description from main branch
- fix: resolve merge conflict in README.md
- feat: add AI generated feature (contains bug - will be reverted)
- Revert feat: add AI generated feature (contains bug - will be reverted)
- chore: add .gitignore to prevent committing secrets and build artifacts
- docs: add learning summary with statistics and key takeaways
2. Branches (3 branches)¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/branches
- feature/learn-git-basics
- feature/collaboration
- feature/conflict-demo
3. Pull Requests (2 PRs)¶
- PR #1: https://github.com/MinhKhanh-EternAI/git-safety-foundation/pull/1
- PR #2: https://github.com/MinhKhanh-EternAI/git-safety-foundation/pull/2
4. Conflict scenario¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/commit/84229fb
Hai branch (main va feature/conflict-demo) cung sua mot dong trong README.md tao conflict that su. Resolve thu cong, sau do commit.
File mo ta: https://github.com/MinhKhanh-EternAI/git-safety-foundation/blob/main/notes/conflict-demo.md
5. Rollback / Revert¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/commit/21cd3db
Dung git revert HEAD de rollback commit AI sinh code loi. Lich su git duoc giu nguyen, chi them mot commit moi dao nguoc thay doi.
File mo ta: https://github.com/MinhKhanh-EternAI/git-safety-foundation/blob/main/notes/rollback-demo.md
6. README.md¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/blob/main/README.md
7. Danh sach lenh Git¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/blob/main/git-commands-reference.md
8. Minh chung Microsoft Learn¶
https://github.com/MinhKhanh-EternAI/git-safety-foundation/tree/main/evidence
- microsoft-learn-part1.png - Hoan thanh GitHub Foundations Part 1
- microsoft-learn-part2.png - Hoan thanh GitHub Foundations Part 2
Toi se dung Git nhu the nao khi Vibe Code voi AI?¶
- Tao branch moi truoc moi tinh nang do AI sinh ra, khong commit thang vao main
- Commit nho thuong xuyen de de rollback neu co loi
- Review git diff ky truoc khi commit code AI sinh
- Dung git revert khi AI tao ra bug nghiem trong
- Tao Pull Request de mentor review truoc khi merge
- Dung git log de theo doi lich su thay doi cua AI
Git la cau noi an toan giua AI va codebase, bao ve su on dinh truoc toc do sinh code cua AI.