Skip to content
apohl1111 edited this page Oct 20, 2011 · 5 revisions

Tags

Tags are used to mark a specific version. You can tag a revision by choosing Create New Tag in the commit log context menu. A dialog will ask for the name of the tag. You can also choose Create Tag from the Commands menu, which will show a dialog to choose the revision and enter the tag name. Once a tag is created, it cannot be moved again. You need to delete the tag and create it again to move it.

For some operations it is very useful to create tags for temporary usage. When you want to merge with an unnamed branch it is good practise to tag the unnamed branch, merge with the tag and then delete the tag again.

Patches

Every commit contains a change-set, a commit date, the committer name, the commit message, and a cryptograph SHA1 hash. Local commits can be published by pushing it to a remote repository. To be able to push you need to have sufficient rights and you need to have access to the remote repository. When you cannot push directly you can create patches. Patches can be e-mailed to someone with access to the repository. Each patch contains an entire commit including the commit message and the SHA1.

You can format(create) a single patch or patch series using the format patch dialog. To create a patch, go to Commands -> Format Patch. Then you can select a directory to save it to or send it in an email. Then select the newest commit first and then select the oldest commit using ctrl-click. You can also select an interrupted patch series, but this is not recommended because the files will not be numbered.

To apply a patch to a file, you can either right-click on the file and select Apply Patch, or go to Commands -> Apply Patch in the Git Extensions window. Then you select the destination of the patch and click Apply Patch.

It is possible to apply a single patch file or all patches in a directory. If there are merge conflicts while applying the patch, you need to resolve them before you can continue. Git Extensions will help you applying all patches by marking the next recommended step.

Clone this wiki locally