https://www.youtube.com/watch?v=eVo2lmkXaDc&list=PLuHgQVnccGMA8iwZwrGyNXCGy2LAAsTXk&index=12&t=0s
================================================================================
When the latest state is "commit 5", if you want to go back to "commit 3"
there are 2 ways you can use
Those 2 ways are simialar but they are actually different
================================================================================
When you need to perform dangerous attemps, backup directory to prevent the accident
================================================================================
1. reset
It's an easy way.
# When you go towards "3" from "5",
# that is, you would like to remove "5" and "4" to go to "3", run
git reset hash-value-of-commit3 --hard
Even if you're heard that you remove "5" and "4", but git generally doesn't remove data
Even if "5" and "4" look removed, but they're actually preserved, so that you can recover them
================================================================================
You can do colaborating working by using remote repository
You can share your own versioned code of remote repository to other locations
Note that you shouldn't use "reset" after you share your versioned code
You only should use "reset" on your own code in your local PC
specifically when you don't share your code but when you work by yourself.
--hard is dangerous way,
so that there is other ways like the one using "soft"
================================================================================
2. revert