Noob question regarding Commits

SuitsYouSir
SuitsYouSir
My experience with GIT is very limited so please forgive the simple question... Am I right in thinking that, if you make changes to multiple files... and commit them as 'a single commit', and then realise later that [I]one[/I] of the changes you made needs to be reversed - rolling back that file to an earlier state would mean rolling back [I]all[/I] of your files (thus losing all the changes to the other files too) ? So if this is indeed the case...would mean that a developer would never for example... make changes to the CSS, JS and an HTML and commit those files as a [I]single commit[/I]?

Last updated

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
368 views