I copied my project and make a new folder, I delete some files from copied folder and push agian it on bitbucket, but its change my oringinal folder code and update the code on bitbucket, now how I revert my previous code on bitbucket?
Hi Zaffar, welcome to the Community!
This is more of a Git question, rather than a Bitbucket question. If you want to revert the last commit you can just do
git revert <unwanted commit hash>
then you can push this new commit, which undid your previous commit. To fix the detached head do
git checkout <current branch>
If you want to go further in time, you can follow several tutorials online like for example this or this one.
Hope that helps!
Ana
It looks like you're new here. Sign in or register to get started.