commit number 347
What if the commit 333 and 340 have the same text? Can I still go back to 333?
I'm talking about GitHub version control
Yes
Text? Commits have unique hashes, so yes. You could. Google „reflog“ but you can achieve basically the same with „reset“ or „rebase“. It depends on the end goal... Also keep in mind that you‘d have to force push then... Depending on who you work with, what the project (vcs) structure (git) is, this can lead to huge problems. If something is on origin/master that does not belong there, you revert the commit. You don‘t make it „disappear“. One does not simply change the past.
Обсуждают сегодня