Science, asked by adsf9882, 1 year ago

How the GIT checkout differ from the clearcase checkout ?

Answers

Answered by Anonymous
1
don't understand this question, but I think it stems from the misunderstanding of the checkout command. Every version of a file in git is a separate hash, git log will show you all the commits, so you can see each version of the file there.

to change your branch to a previous state you use the git resetcommand. git checkout -commitid- will actually detach your HEAD pointer and leave you with no branch checked out. This can be used to see what the state was like at the time of that commit

git checkout master will change your working branch to master. To return to the latest changes there are lots of things people do, sometimes they stash their existing changes then delete the stash for example.

HOPE HELPS ✌️✌️
Similar questions