Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lasse 49 posts 161 karma points
    Apr 26, 2019 @ 16:25
    Lasse
    0

    Umbraco version control revert changes (github)

    Hello forum,

    Don't mind the title if it is inaccurate, i am not sure what the issue is called specifically but i will try to describe it as good as i can. This question will not have any illustrations until Monday, as the project is for work and i cannot access the db at home.

    PS: if anyone is wondering why i ask this question now, as i cannot fix it until Monday anyway, is simply because i don't wanna show up at work on Monday without a fix (hopefully)

    .

    The issue

    Earlier today i decided to make some dramatic changes to my navigation tree, changing some document templates (removing, changing and deleting), so my tree was better organized yet as functional as before.

    It all seemed to work just fine, but as i wanted to test it out there was something that wasn't working correctly (big surprise), i could not fix this issue either but it is not related to this question i need help with (issue name 'iconator').

    As this had nothing to do with my changes in document types i figured: "okay, lets just reset my local version to a previous commit i made with my version control" - to figure out when the issue occurred, and compare old vs new to find a fix for that. - Anyhow, as i reset my local machine to a previous commit, i noticed my files got changed but in my localhost:xxxx/umbraco/ everything was exactly the same as before i changed my local machine.

    e.g: My content was containing say 2 folders and 6 pages (don't get fooled when i say folders, it is simply a document type that does nothing but organizing my content page), after the changes my content was 1 folder and 4 pages. When i reset my local machine in gitkraken, my content was still 1 folder and 4 pages (it did not change at all)

    What am i doing wrong, or is changes in /umbraco/ permanent even with version control?

  • Lasse 49 posts 161 karma points
    Apr 27, 2019 @ 19:02
    Lasse
    0

    Anyone?

    Could it be my gitignore that i have configured wrong?

  • Mayur Deore 13 posts 146 karma points c-trib
    Apr 28, 2019 @ 05:24
    Mayur Deore
    0

    Hi Lasse, As per my understanding, Contents are stored in database,. So rollback to previous commit will revert the file changes,not database changes.

    To rollback content changes you can use rollback option for root node from umbraco back-office itself with "diff" option selected.

  • Lasse 49 posts 161 karma points
    Apr 28, 2019 @ 06:44
    Lasse
    0

    so, if you delete your root node, you are no longer able to roll back?

  • Mayur Deore 13 posts 146 karma points c-trib
    Apr 28, 2019 @ 07:32
    Mayur Deore
    0

    Deleted nodes can be found in recycle bin, from there you can rollback.

Please Sign in or register to post replies

Write your reply to:

Draft