Tree [9faa2b] /
History



File Date Author Commit
.gitattributes 2012-09-27 Brad King Brad King [341043] Add 'git-gerrit-push' script
LICENSE 2012-02-08 Brad King Brad King [de67e3] Add LICENSE and NOTICE
NOTICE 2012-02-08 Brad King Brad King [de67e3] Add LICENSE and NOTICE
README 2012-03-02 Brad King Brad King [7e293a] Exclude from source archives files specific to ...
config.sample 2012-02-08 Brad King Brad King [2f79eb] Add README instructions and sample configuration
git-gerrit-push 2012-09-27 Brad King Brad King [341043] Add 'git-gerrit-push' script
setup-gerrit 2012-05-18 Brad King Brad King [d2d17f] setup-gerrit: Allow ssh-only repo URLs
setup-hooks 2012-02-08 Brad King Brad King [fbd4a7] Add 'setup-hooks' script to install local hooks
setup-sourceforge 2013-04-23 Brad King Brad King [9faa2b] Add 'setup-sourceforge' script to configure Sou...
setup-ssh 2012-02-08 Brad King Brad King [1aeea9] Add 'setup-ssh' script to configure ssh push ac...
setup-stage 2012-06-08 Brad King Brad King [c950cd] setup-stage: Allow 'url' without 'pushurl'
setup-user 2012-02-08 Brad King Brad King [d022a4] Add 'setup-user' script to configure authorship...
tips 2012-02-08 Brad King Brad King [5e60d7] Add 'tips' script to suggest local configuration

Read Me

Kitware Local Git Setup Scripts


Introduction
------------

This is a collection of local Git development setup scripts meant for
inclusion in project source trees to aid their development workflow.
Project-specific information needed by the scripts may be configured
in a "config" file added next to them in the project.


Import
------

A project may import these scripts into their source tree by
initializing a subtree merge.  Bring up a Git prompt and set the
current working directory inside a clone of the target project.
Fetch the "setup" branch from the GitSetup repository:

 $ git fetch ../GitSetup setup:setup

Prepare to merge the branch but place the content in a subdirectory.
Any prefix (with trailing '/') may be chosen so long as it is used
consistently within a project through the rest of these instructions:

 $ git merge -s ours --no-commit setup
 $ git read-tree -u --prefix=Utilities/GitSetup/ setup

Commit the merge with an informative message:

 $ git commit
 ------------------------------------------------------------------------
 Merge branch 'setup'

 Add Utilities/GitSetup/ directory using subtree merge from
 the general GitSetup repository "setup" branch.
 ------------------------------------------------------------------------


Configuration
-------------

Read the "Project configuration instructions" comment in each script.
Add a "config" file next to the scripts with desired configuration
(optionally copy and modify "config.sample").  For example, to
configure the "setup-hooks" script:

 $ git config -f Utilities/GitSetup/config hooks.url "$url"

where "$url" is the project repository publishing the "hooks" branch.
When finished, add and commit the configuration file:

 $ git add Utilities/GitSetup/config
 $ git commit


Update
------

A project may update these scripts from the GitSetup repository.
Bring up a Git prompt and set the current working directory inside a
clone of the target project.  Fetch the "setup" branch from the
GitSetup repository:

 $ git fetch ../GitSetup setup:setup

Merge the "setup" branch into the subtree:

 $ git merge -X subtree=Utilities/GitSetup setup

where "Utilities/GitSetup" is the same prefix used during the import
setup, but without a trailing '/'.


License
-------

Distributed under the Apache License 2.0.
See LICENSE and NOTICE for details.