- Interactive Git Learning Platform (No need to do advanced topics in both remote/main)
- Git Cheatsheet
- Fork the repository and create a new branch (
Task1
). - Create a new file named
<your-github-username>.txt
. - Add your name inside the file using the format:
Your Name [GitHub Username](http://github.com/username)
- Commit the changes.
- Merge
Task1
into themain
branch.
- Switch back to main branch.
- Create a file with same name you created in Task 1.
- Add some other text in the file (maybe your friend's name ;) ).
- Commit the changes.
- Merge
Task1
intomain
(this should result in a merge conflict). - Resolve the conflict manually and commit the merge resolution.
- Create a new branch
Task3
frommain
in your fork. - Add a dummy piece of code and commit it.
- Realizing it was incorrect, push another commit that reverts the changes.
Keeping the history ensures integrity and improves collaboration.
- Create a new branch
Task4
fromTask3
in your fork. - Use
git reset
to remove the previous commit permanently. - Push the changes to a new branch
Task4-verify
so that it can be verified.
- Create a new branch
Task5
frommain
in your fork. - Add a dummy piece of code and commit it.
- Repeat this process five more times.
- Rebase
main
branch into this. - Push all commits into
Task5
.
- Each commit message must be clear and descriptive.
- Example for Task 1:
Add name to my file (Your Name)
.
- Example for Task 1:
- Follow proper Git branching and merging strategies.