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

Commit 9825ceb

Browse files
authored
Merge pull request #133 from sushantk1274/task15
Different delete task
2 parents 0576c9f + 9f99c5e commit 9825ceb

File tree

1 file changed

+19
-1
lines changed
  • CONTRIBUTORS/IIITA/Second Year/sushant_kumar

1 file changed

+19
-1
lines changed

CONTRIBUTORS/IIITA/Second Year/sushant_kumar/info.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
2+
we know that the fork and PR model is a version of git's own branch-and-merge functionality, in which commits can follow separate paths (called branches) and then be brought back together.
3+
4+
this is called branch and merge
5+
6+
step 1 first we will git checkout branch-2
7+
8+
then we will commit and push our changes
9+
10+
step 2. merge it to branch-1 and make a PR for original repo
11+
12+
# Different delete task
13+
14+
i will give description in first commit and delete my most recent commit that is my second commit using the command
15+
16+
git reset --hard HEAD^
17+
118
We should have to follow this as if the commmit is not pushed online yet the we have to follow only two of the strps but if the message is committed online then we have also to force push the value
219

320

@@ -7,4 +24,5 @@ step1)Type "git commit --amend" and press Enter...
724

825
step2)Use the push --force-with-lease command to force push over the old commit.
926

10-
step3)this is the command actually "$ git push --force-with-lease origin EXAMPLE-BRANCH"
27+
step3)this is the command actually "$ git push --force-with-lease origin EXAMPLE-BRANCH"
28+

0 commit comments

Comments
 (0)