Welcome to the Open Sourcery GitHub Contest! π This contest will test your skills in Git and GitHub, including collaboration, branching, conflict resolution, and pushing code. Complete the tasks below and showcase your GitHub prowess! Good luck! π
Clone the contest repository to your local machine with the following command:
bash git clone <repository_url>
-
Open the names.txt file in your editor.
-
Add your name and batch at the bottom of the list. π« Do not edit or remove existing entries.
-
Create a new branch for this change:
bash git branch add-name-<your_name> git checkout add-name-<your_name>
-
Save your changes, add, commit, and push to GitHub:
bash git add names.txt git commit -m "Added my name to names.txt" git push origin add-name-<your_name>
-
Create a new branch for your code file:
bash git branch code-<your_name> git checkout code-<your_name>
-
Create a new file (e.g., hello_<your_name>.py) with a simple code snippet or script of your choice. π‘
-
Add, commit, and push your code file to the branch:
bash git add . git commit -m "Added my code file" git push origin code-<your_name>
- Cloned the repository
- Added name and batch to names.txt
- Created a new branch and added a code file
- Pushed all changes to respective branches
- Branch Naming Convention: Ensure each branch follows the naming format specified in each task.
- Commit Messages: Keep your commit messages clear and concise.
- Final Submission: Ensure that all changes are correctly pushed to GitHub.
Good luck, and may the best coder win! π₯β¨