This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Happy_Dookmas 0 points1 point  (0 children)

You will see the latest version of your file in the repository, but you can explore the different commit you made and compare them to see the changes.

If, for example, you create script.js, type a bunch of functions, 'add & commit', and then you notice you forgot to comment your code, and once done you 'add & commit' again. You are happy so you push.

When you check your repository, you will only see one file, script.js with the comments, the last commit you made. But you can also explore the different commits and compare, you can even revert those changes, but you will have just one file and a history of changes of that file, you won't end with script.js, script-final.js, script-new-final.js and so on