ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • How to rollback if my Macbook makes duplicate files automatically
    GitLab 2024. 5. 15. 15:44

    I have had some issues that Macbook creates duplicate files names.

    For example, I have a file in src/domain/client and then later I also have src/domain/client 2 even though I didn't create.

    It seems very simple to delete the one file, but imagine it copied 10k folders or files itself.

    How would you rollback to the prior time that I didn't have duplicates ?

    I found this command and I am not afraid this issue anymore.

     

    If I am working on my local branch, named my-local-branch, then I can use the below command to syncronize local version with remote one.

    git reset --hard origin/my-branch-name

     

    Boom! ezpz!

Designed by Tistory.