Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

Can anybody tell me how to revert the commit and push the files for review?

Asked by Aaditya Srivastva Jul 25, 2023 779 views 1 answer
Share

About this question

I am totally unknown to git and I have included few files in git:

Git add
Git add

After that I wished to push it for review, but I comitetd an error

Git commit

Hence the files I have altered don’t go forr eviews.

On entering the command

Git status

I receive the message

# On Branch master
# Your branch i ahead of ‘origin/master’ by 1 commit.
#
Nothing to commit (working directory clean)

I wish to revert the commit and push th files for review. How do I do so?

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.