Changes between Version 47 and Version 48 of WorkingWithGit


Ignore:
Timestamp:
Aug 26, 2016, 6:21:51 PM (8 years ago)
Author:
neverpanic (Clemens Lang)
Comment:

Move commit.template config option to commit message section, remove global ignore option, which I don't think we need for MacPorts

Legend:

Unmodified
Added
Removed
Modified
  • WorkingWithGit

    v47 v48  
    1818}}}
    1919If you work on multiple Git projects and do not want to modify your email address for those, these commands can also be run without `--global` in a clone of MacPorts' repositories to only change the option for these repositories. If you are not a MacPorts committer, use any email address.
    20 
    21 Additionally one should define a few (very likely not necessarily global) presets for working with your clone of the MacPorts repository:
    22 {{{
    23 git config --global core.excludesfile ~/.gitignore_global
    24 git config --global commit.template ~/.git-commit-template
    25 }}}
    26 which adds an excludes file as well as a commit template.
    27 
    28 '''T.B.D.:''' A MacPorts'ish ignore file {{{.gitignore_global}}} should be supplied here, perhaps based on [https://quickgit.kde.org/?p=macports-kde.git&a=blob&h=bb618b30d4daba183823b797fa56ae65b207c569&hb=120899f859eefbe0bf669685352e7c44a834e23f&f=contrib%2Fgit-setup%2F.gitignore_global this]?!!
    29 
    30 '''T.B.D.:''' A git commit template file {{{.git-commit-template}}} should be supplied here, perhaps based on [https://quickgit.kde.org/?p=macports-kde.git&a=blob&h=14f952f776b9f54263671cc2aba5886c6ebee75b&hb=120899f859eefbe0bf669685352e7c44a834e23f&f=contrib%2Fgit-setup%2F.git-commit-template this]?!!
    3120
    3221'''T.B.D.:''' MacPorts ports contributors should be encouraged to fork the original MacPorts {{{git}}} repository and introduce changes only in their forked repos. Contributions can then be "filed" to the original repo using GitHub's pull requests (PR). These PRs allow for user-friendly reviewing, commenting and in the future possibly also immediate issuing of CI builds.
     
    206195 1. Use the body to explain what and why vs. how
    207196
    208 '''T.B.D.:''' See todo on {{{~/.git-commit-template}}} [#Initialsetup above].
     197If you don't want to remember these rules, you can configure your git client to load a template whenever it prompts you for a commit message by setting the `commit.template` `git-config(1)` option. The KDE developers [https://quickgit.kde.org/?p=macports-kde.git&a=blob&h=14f952f776b9f54263671cc2aba5886c6ebee75b&f=contrib%2Fgit-setup%2F.git-commit-template&o=plain have a nice example].
    209198
    210199=== Reverting changes === #revert