clearcase - Confused on checking out in Git -


i have trouble understanding checkout process of git.
via cli do:
git log , history.
1) how know file/version 1 want check out? see hashes/author/comments/dates. not filename.
2) if git checkout -commitid- go previous version. same doing check-out in clearcase?
3) return latest changes do: git checkout master. returns latest version checkout latest element?

i think confusing terminologies used other version control systems. git checkout command used switch branch working on. git checkout master switch working on master branch. git checkout test cause work in branch named test. try answer questions:

  1. i don't understand question, think stems misunderstanding of checkout command. every version of file in git separate hash, git log show commits, can see each version of file there.
  2. to change branch previous state use git reset command. git checkout -commitid- detach head pointer , leave no branch checked out. can used see state @ time of commit
  3. git checkout master change working branch master. return latest changes there lots of things people do, stash existing changes delete stash example.

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -