Can anyone clarify some things things for me. If I go back a previous commit using
git checkout HASH
- Running
git branch
shows(no branch)
. What does this mean? - If I edit a file then commit. Will it create a new branch or will it simply update the entire branch so when I go back to the current commit the file will also be updated?
- Related to #2, is the purpose of checking out a previous commit so you can make a branch out of it or something more? I'm guessing something more but I can't see it since my project isn't all that complex.