# Git Foundation Lab

## Student Information

* Name: Hồ Tăng Nhật Hiếu
* Major: Data Science and Artificial Intelligence

## Project Objective

This repository was created to practice Git and GitHub fundamentals before participating in AI-assisted Vibe Coding activities.

## Git Commands Used

* git clone
* git status
* git add
* git commit
* git push
* git pull
* git branch
* git checkout
* git merge
* git log
* git revert

## Branches Created

* main
* feature/git-notes
* feature/github-flow
* feature/conflict-practice

## Pull Requests

* Pull Request #1: Add Git notes
* Pull Request #2: Add GitHub flow notes

## Conflict Practice

A merge conflict was intentionally created by modifying the same file (`conflict-demo.txt`) in both the `main` branch and the `feature/conflict-practice` branch.

The conflict was resolved manually and committed successfully.

## Rollback/Revert Practice

A faulty commit (`Add buggy content`) was created and then reverted using:

```bash
git revert HEAD
```

The repository was successfully restored to the previous stable state.

## Learning Outcomes

Through this project, I learned how to:

* Create and manage Git repositories
* Work with branches
* Create Pull Requests
* Resolve merge conflicts
* Revert faulty commits
* Follow GitHub Flow
* Collaborate safely using Git and GitHub

## How I Will Use Git When Vibe Coding With AI

I will use Git as a safety mechanism when working with AI-generated code. I will create separate branches for experiments, review AI-generated changes through pull requests, resolve conflicts carefully, and use revert or rollback techniques whenever generated code introduces problems. This helps maintain project stability, traceability, and collaboration quality.
