Relative Content

Tag Archive for gitversion-control

How to roll back to a previous commit without losing further ones?

Say, I want to roll back to a commit by git reset --hard <commit's ID> to see how the project’s structure looked like. But I don’t want to lose the commits that go after that one commit that I want to roll back to. I just want to roll it back if needed and see how everything looked and then go back to my latest commit.

Storing locally on Git: do I still need to push?

I’m very new to Git, so excuse if this does not make any sense. I want to use Git for version control, so my setup would be to just have a local Git (no Github or anything). I can then add/change files with git add and git commit. From previous experience with Github I know that you have to git push to upload my files and ‘finalize’ the commit.