You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTORS/IIITA/Second Year/sushant_kumar/info.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
+
1
18
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
0 commit comments