Skip to content
This repository was archived by the owner on Dec 10, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ CONTRIBUTORS/IIITA/Second\ Year/bhumika-kalaru/info.md
CONTRIBUTORS/IIITA/Second Year/Koshal/info.md
CONTRIBUTORS/IIITA/Second\ Year/Ananya/info.md
CONTRIBUTORS/IIITA/First Year/C Karthik Reddy/info.md
CONTRIBUTORS/IIITA/Second Year/sushant_kumar/info.md

20 changes: 20 additions & 0 deletions CONTRIBUTORS/IIITA/Second Year/sushant_kumar/info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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


On the command line, navigate to the repository that contains the commit you want to amend.

step1)Type "git commit --amend" and press Enter...

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

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


# Different Delete task

first i have written information regarding how i will delete my second commit and for that
i used my command for deleting recently commit that is my second commit

command is "git reset --hard HEAD^"

and in first commit i have explain it and in that commit i explain the same thing