Hello, I'm having a problem I got a project in the middle of a wordpress site, but this project has no database, I need to know how I can get back to the version that the site worked on. It's versioned on bitbucket
Thank you
Hi Arthur! I'm not sure I understand what you want? Do you need to rever your code to a previous version? You can achieve that by doing a git-revert, you can learn more about it at Undoing changes: git-revert. I'd also recommend checking the official Git documentation at git-revert.
An alternative would be to use the git-reset command, but keep in mind that this will undo all the commits that came after the commit you reset to. You can learn more at Undoing changes: git-reset and visit the official doc at git-reset.
These are both sensitive operations, make sure you have a backup of your code before you go ahead with them.
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.