Version Control with Git

This commit is contained in:
2026-02-23 23:35:45 +05:30
parent 04a0768c5c
commit 568af4c5b1

36
Week-02/Day_05/README.md Normal file
View File

@@ -0,0 +1,36 @@
### Key Concepts Learned
1. **Repositories:** Creating a project container on GitHub to track history.
2. **Branching:** Creating an isolated environment (`readme-edits`) to test new ideas without affecting the `main` code.
3. **Commits:** Saving "checkpoints" in the project with descriptive messages.
4. **Pull Requests (PR):** Proposing changes to the project and starting a discussion before merging.
5. **Merging:** Successfully incorporating changes from a branch back into the master project.
### To complete this task, I performed the following steps:
- [x] **Initialized Repository:** Created the `hello-world` repository.
- [x] **Created Branch:** Created a branch named `readme-edits` to follow the branching strategy.
- [x] **Modified Content:** Updated the `README.md` with professional information.
- [x] **Committed Changes:** Used the Conventional Commits format for the commit message.
- [x] **Opened Pull Request:** Documented the changes and submitted them for review.
- [x] **Merged PR:** Finalized the changes into the `main` branch.
### During this task, I practiced the following CLI commands:
```bash
# Clone the repository locally
git clone https://github.com/[username]/hello-world.git
# Create a new branch
git checkout -b readme-edits
# Stage changes
git add .
# Commit changes
git commit -m "docs: add intern profile and workflow log"
# Push to GitHub
git push origin readme-edits