What is the recommended and easiest way to get some local code to be the new head of a repository? That includes
- no merging required, just use the version of the local code
- files which are not present at local code shouldn't be in the repository either
The result should be quite similar to initializing a new repository with the current local code, while keeping the information of past checkins.