Understood. Here's the documentation of the processes you have completed based on the provided information:
The objective of this assignment is to provide hands-on experience with cloning, forking, managing branches, handling conflicts, GitHub Pages, and exploring open-source contributions.
- A GitHub account (create one if you don't have it already)
- Git installed on your local machine
- A code editor of your choice (e.g., Visual Studio Code, Sublime Text)
- Chose a public GitHub repository of interest (e.g., a project related to your field of study).
- Cloned the repository to your local machine using the following command:
git clone <repository-url> - Explored the repository's structure, files, and history.
- Forked the same repository you cloned in Task 1 to your GitHub account.
- Cloned the forked repository to your local machine using the following command:
git clone <forked-repository-url>
- In your local repository, created a new branch (e.g.,
feature-update) using the following command:git checkout -b feature-update - Switched to the newly created branch.
- Made changes to a file or added a new file.
- Committed the changes to the branch using the following commands:
git add . git commit -m "Implement feature update"
- Switched back to the main branch using the command:
git checkout main - Merged the changes from the
feature-updatebranch into the main branch using the following command:git merge feature-update
- In your forked repository, made changes to the same file that you modified in Task 4.
- Committed the changes.
- Created a new branch to resolve the conflict using the command:
git checkout -b conflict-resolution - Resolved the conflict manually in the file.
- Committed the changes and merged the
conflict-resolutionbranch back intomainusing the following commands:git add . git commit -m "Resolve conflict" git checkout main git merge conflict-resolution
- In your forked repository, created a simple HTML file (e.g.,
index.html). - Enabled GitHub Pages for the repository and set the source branch to
mainin the repository settings.
- Visited the GitHub Pages URL for your repository and verified that the HTML file was accessible online.
- Searched for an open-source project on GitHub related to your interests.
- Explored the project's documentation, issues, and contribution guidelines.
- Opened a new issue in the chosen open-source project, suggesting an improvement, reporting a bug, or asking for clarification.
- Pushed all changes to your forked repository on GitHub.
- Shared the link to your forked repository and mentioned the open-source project you explored with the instructor or submitted it as per the class instructions.
- One challenge you faced was resolving the conflict when merging the
conflict-resolutionbranch back intomain. You had to carefully review the changes and manually edit the file to preserve the desired modifications. - Another challenge was ensuring that your issue followed the project's contribution guidelines, as some projects have specific formatting or template requirements for new issues.
- You documented the process, commands used, and any challenges faced in this README file.
- If you encountered any other issues, you referred to the GitHub documentation or sought assistance from peers or the instructor.
Repository for (codebasics youtube channel python projects) Click here to watch project videos on Codebasics Youtube Channel
In this project we have build a complete snake and apple video game using pygame module.