I am looking to remove a directory from local and central repository. I managed to do it locally by
hg remove name_directoriy
hg commit
However, after pushing my changes to the central repository the deleted folder is still in the central repository while it is gone locally.
How to remove directory in central repository?
Thank you
p.s. with 'remove' i mean that it does not appear but still it is in the history
What you want to do on the remote repository is:
hg update
What you've described above removes the files in that directory, and then pushes the change the removes the files up to the remote repository, but it doesn't update the working directory files on the remote repository. To update the working directory on that remote repository you need to run the update command there.
As everyone else is pointing out those files, of course, still exist in history, but if you want them out of the working dir it's the update
you're missing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With