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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.