So if you clone a repo, then
git branch
will give a list of branches, and a star next to the active one.
git log
will give a specific commit (at the top) which is on that branch (depending on when the code was downloaded). Assuming no other changes to the code have been made, it is always possible to revert to any commit in the entire repo (across all branches) with
git checkout #gitcommithash
where #gitcommithash is usually some random thing for each commit in the list from git status, like 0b505a0d71b66319ffb5d33b67537b0a495ce8d3. However, this will delete any modified directories in the folder.
All the best,
Richard