![]() To use you move or add a new bookmark to the latest commit that’s represented by the branch. has no bookmark pointing to it or a descendant, will not get pushed or pulled (they will still appear in the outgoing changesets preview though but don’t actually get pushed). Hggit also creates a local tag labelled default/ to mimic git’s origin/ default is the alias name for the remote repository url as specified in the settings files. ![]() To activate a bookmark means this is the bookmark that will be automatically brought forward when you make your next commit.Īfter rewriting the public history under View > Show Console execute the command: In the bookmark dialog the new name field is used for renaming an existing bookmark to add a new bookmark enter the name under the bookmark field and click add. Then restart TortoiseHg, and perform a pull. This will restore the original commit you had modified, move the bookmark to the tip of the newly created commit (only needed if using the deleted bookmarks workaround). Then perform a forced push:Īfterwards the original commit can be stripped if hg strip extension is enabled by right clicking the commit and selecting strip under modify history context menu. Note if you’re doing this to remove a password accidentily commited and pushed, it is strongly recommended to change the password as well. Using the above, commits are not removed in Git they’re just hidden (as mentioned here to remove instead of hide on Github involves creating a new repo) so while people can no longer see the original commit in the repository online or pull it down, they can still see it in the activity log sites like Github and Bitbucket provides and click the link to see the hidden commit. Note #2, if you import a commit into MQ and then unapply and reapply that commit it will have a different hash id even if you made no changes. This only happens with commits you pulled down, commits made locally will have the same hash id if no changes are made. Windows / Linux Issues Refreshing working directory file status is slow Sometimes refreshing the status of the files in working directory in TortoiseHg workbench can take a while, especially if you have a large number of ignored files like a node_modules folder. ![]() gitignore is no longer processed so you may miss changes when performing a pull, the solution is to symlink. Note you may need to change the ignore syntax to work with Hg since there are differences, also you can add. Push restores old branches that others have deleted hgignore into itself so you won’t be shown. Pre-pull = hg bookmarks | tr -d '*' | tr -s ' ' | cut -d ' ' -f 2 | xargs hg bookmark -d The workaround is to add the following to your global settings file File > Settings > Edit File: 1 Note when you perform a pull hggit does not delete branches locally that others have deleted from the remote repository, so the next time you do a push you end up restoring the deleted branches (Hg by default pushes all branches unlike Git which by default only pushes the current branch, this can be changed via File > Settings > Sync > Default Push). This deletes all the local bookmarks on pre-pull so that pull will restore only the bookmarks that exist on the remote repository. It does mean you will have to re-do any bookmark changes you’ve made like moving a bookmark to the tip that normally happens automatically when you make a commit before pushing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |