Key Concepts Learned
- Repositories: Creating a project container on GitHub to track history.
- Branching: Creating an isolated environment (
readme-edits) to test new ideas without affecting themaincode. - Commits: Saving "checkpoints" in the project with descriptive messages.
- Pull Requests (PR): Proposing changes to the project and starting a discussion before merging.
- Merging: Successfully incorporating changes from a branch back into the master project.
To complete this task, I performed the following steps:
- Initialized Repository: Created the
hello-worldrepository. - Created Branch: Created a branch named
readme-editsto follow the branching strategy. - Modified Content: Updated the
README.mdwith professional information. - Committed Changes: Used the Conventional Commits format for the commit message.
- Opened Pull Request: Documented the changes and submitted them for review.
- Merged PR: Finalized the changes into the
mainbranch.
During this task, I practiced the following CLI commands:
# 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