Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 083fa89

Browse files
authored
Create challenge_9.md
1 parent 9f6fbbb commit 083fa89

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Challenges/challenge_9.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Welcome to Challenge 9
2+
3+
Welcome to the ninth challenge!
4+
5+
Today's task is a continuation of yesterday's task [Task 8](https://github.com/scaleracademy/scaler-september-open-source-challenge/blob/main/Challenges/challenge_8.md?plain=1).
6+
7+
Yesterday the task was to create an additional commit in your branch. And today's focus will be to 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.
8+
9+
This can be done by using the following command: ``git reset``
10+
11+
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.
12+
13+
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.
14+
15+
16+
Task:
17+
1. Identify the commit id that needs to be removed (you should have created this in the 8th Challenge)
18+
2. Use git reset and force push, to remove the commit from your pull request.
19+
3. Share a screenshot of this, in the issue you created in previous challenges.

0 commit comments

Comments
 (0)