From 34d0f93ea4b8ee52f1b7398c973dedd984d38e2b Mon Sep 17 00:00:00 2001 From: shivaylamba Date: Thu, 7 Sep 2023 11:41:38 +0530 Subject: [PATCH 1/2] challenge 7 --- Challenges/challenge7.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Challenges/challenge7.md diff --git a/Challenges/challenge7.md b/Challenges/challenge7.md new file mode 100644 index 000000000..f523e0d13 --- /dev/null +++ b/Challenges/challenge7.md @@ -0,0 +1,23 @@ +## Welcome to Challenge 7 + +Welcome to the 7th challenge! Today we will learn about the concept of Git Reset. + +Today's the task focus is to create an additional commit in your branch. And then remove that commit that has been pushed from the pull request created in previous challenges. The main purpose of this is because there can be times when you might push an unncessary or wrong commit and you way want to remove it from your pull request. + +This can be done by using the following command: ``git reset`` + +Here is an article you can refer to for understanding how git reset works: https://www.atlassian.com/git/tutorials/undoing-changes/git-reset#:~:text=a%20shared%20repository.-,Summary,Index%2C%20and%20the%20Working%20Directory. + +So the task is to identity the commit id of the commit you want to remove, use the git reset command, and remove the commit from the pull request by force pushing into it. + + +Task: +1. Inside the branch you created during the prior challenges in your local forked repository, make a new file by the name of ``your-github-username-2.md`` and add any details you may want to add to this markdown file and push the change to your forked repository. + +2. Ensure the change appears in the Pull request created in previous challenges + +3. Identify the commit id for the commit you just made and use the git reset command to remove the commit from your local branch. Note: Use git reset and force push, to remove the commit from your pull request. + +4. Share a screenshot of this, in the issue you created in previous challenges. + +5. Update your Discord forum post you created with the Challenge 7. From 3f15cac39f07404e5afb4386dd4778019d313e67 Mon Sep 17 00:00:00 2001 From: shivaylamba Date: Fri, 8 Sep 2023 11:46:49 +0530 Subject: [PATCH 2/2] add challenge 8 --- Challenges/challenge8.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Challenges/challenge8.md diff --git a/Challenges/challenge8.md b/Challenges/challenge8.md new file mode 100644 index 000000000..ab4478feb --- /dev/null +++ b/Challenges/challenge8.md @@ -0,0 +1,35 @@ +## Welcome to Challenge 8 + +Congratulations on successfully completing the 7th challenge! This marks the completion of the first milestone of the challenge. + +Before you proceed with the 8th challenge, ensure you are required to have completed the following tasks to successfully mark the completion of the 1st milestone: + +## Preqrequisites to mark completion of 1st Checkpoint (Milestone): + +1. Use the creative shared for the successful completion of the first milestone: [First Milestone Creative](https://github-production-user-asset-6210df.s3.amazonaws.com/19529592/266515279-9696f91e-138d-44b0-b42b-08c5e679f4ac.jpg) to share on any social platform: LinkedIn, Twitter, Facebook, Instagram, etc. marking the completion of the first milestone. + +2. Fill the Google form the following Google form: [Google Form](https://forms.gle/n6VL2xCSeP6vgtgL6) to mark the completion of the first milestone. Note: This is a mandatory task to be eligible for the prize at the end of the challenge as it allows us to evaluate the submissions in the challenge so far. + + +Once you have completed the above, you can proceed with the 8th challenge. + + +## Task: +Welcome to the eighth challenge! + +This is a two part challenge to cover the concepts of Git Rebase and Git Squash. + +Resources to refer to: +1. [Git Rebase](https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase) +2. [Git Squash](https://www.freecodecamp.org/news/git-squash-explained/) +3. [Git Merge](https://www.atlassian.com/git/tutorials/using-branches/git-merge) + +Step 1: Ensure you have covered all the previous challenges properly and have completed the tasks in the previous challenges. + +Step 2: Today's goal is to understand the concept of Git Rebase and Git Squash. Go through these resources to understand the concept of Git Rebase and Git Squash as this will be used in the subsequent tasks. + +Step 3: Create a new branch in your forked repository by the name of ``challenge8`` and switch to that branch. + +Step 4: Add a new file by the name of ``your-github-username-3.md`` and add any details you may want to add to this markdown file and push the change to your forked repository. + +That's it for the first part of the challenge.