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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.