Revert feature branch

HI team, 

I could not create a pull request, If I push feature branch and code in initial commit. If I create a pull request, there is nothing to compare and that is my issue. So, I am thinking to revert current feature branch without loosing changes, create another branch , push this branch to remote and then commit my changes. So at first there will be empty feature branch in remote and after code push, pull request has something to compare and I can give that pull request to my lead to reveiw that code.

I have opened my issue in stackoverflow also. below is the link:

https://stackoverflow.com/questions/58018038/revert-feature-branch

Someone replied in stackoverflow to rename feature branch , delete in remote and push again. It did not help me as I have pushed code and feature branch at the same time. So pull request has nothing to compare.

Hi @javaprofile,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our community organized so users can more easily find information.

As you’ll notice, your topic is now here in the How to use Git and GitHub board. No action is needed on your part; you can continue the conversation as normal here.

Cheers!