Reputation: 25949
Is it possible in subversion to let a commit be part of a previous commit. Say you forgot to commit a certain file, can you commit this file like you would have committed it in the previous commit?
Upvotes: 4
Views: 183
Reputation: 146350
I'm afraid you cannot. Other version control systems allow to do so, but not Subversion.
Your only chance would be to dump the complete repository, remove the last commit from the dump, restore the dump and start again... but I would not even consider the idea.
Upvotes: 2
Reputation: 31637
Upvotes: 1
Reputation: 34398
If you have access to the server/repository location, you can remove your initial commit.
After that, you can do your commit again, but adding the new file first. If this is a multi-person team, you'll need to get anyone who's updated to the new revision to "update" to an old one and then update again.
This is unrelated, but a project I'm on has a 'pre-commit-check' script we run before committing. Among other things, it catches when we forget to add files.
Upvotes: 1