Skip to content

Commit fc9cacc

Browse files
committed
ENH: Update Git client side hooks for GitHub
The hooks help migrate existing repositories configured to contribute through Gerrit. The setup scripts walk the user through creating an account on GitHub, setting up SSH keys, creating a fork, configuring their fork to the `origin` remote, and the InsightSoftwareConsortium repository as the `upstream` remote. The old aliases `gerrit-push`, `gerrit-merge` are removed and new aliases for appropriate for GitHub are created, `review-push`, `pr`, `pr-clean` are created. New Git tips are created, pointing out the `pr` alias, `git series`, and `hub`. Change-Id: I752fc24db6ed3ef3cbb403a7f4fd7c75cf7d47eb
1 parent 1501574 commit fc9cacc

21 files changed

Lines changed: 674 additions & 942 deletions

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Before you begin, perform initial setup:
3333
This script helps configure your GitHub fork remote, Git client-side hooks,
3434
and useful Git aliases. The default Git remote names for your fork and
3535
`InsightSoftwareConsortium/ITK` are `origin` and `upstream`, respectively.
36-
However, other remote names can be used. Note that ITK defines some useful
37-
Git aliases, such as `pullall` or `prepush`, through the
38-
[`SetupGitAliases.sh`] script for general Git tasks in ITK.
36+
However, other remote names can be used. Note that ITK defines some useful
37+
Git aliases, such as `review-push`, `pr`, `pr-clean`, and `prepush`, through
38+
the [`setup-git-aliases`] script for general Git tasks in ITK.
3939

4040
Visit the *Pro Git: Setup* resource in [GitHelp] for further
4141
information on setting up your local Git environment.
@@ -274,7 +274,7 @@ branch (*warning*: you could lose commits).
274274
[UpdatingThirdParty]: Documentation/UpdatingThirdParty.md
275275

276276
[`SetupForDevelopment.sh`]: https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/SetupForDevelopment.sh
277-
[`SetupGitAliases.sh`]: https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/DevelopmentSetupScripts/SetupGitAliases.sh
277+
[`setup-git-aliases`]: https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/GitSetup/setup-git-aliases
278278

279279
[ITK's Discourse]: https://discourse.itk.org/
280280

Utilities/DevelopmentSetupScripts/GitTips.sh

Lines changed: 0 additions & 78 deletions
This file was deleted.

Utilities/DevelopmentSetupScripts/SetupGerrit.sh

Lines changed: 0 additions & 106 deletions
This file was deleted.

Utilities/DevelopmentSetupScripts/SetupGitAliases.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

Utilities/DevelopmentSetupScripts/SetupHooks.sh

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)