Hello dev's

Currently while working in feature branch i have done some mistake so due 
to which i have to come behind one commit (git reset ---hard HEAD^ ) but 
the problem i was facing now is that the deleted commit is on remote 
feature branch. So now when after changes on local feature branch and try 
to push the git thows error that my remote branch is behind one commit. 

Now the solution i have in mind is to force push (git push -f origin 
feature branch) but i was strongly discouraged by my project community to 
not to do force pushing and i know it's dangerous too.

So please help me to find alternative solution for that.
Thanks

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to