Changes between Version 26 and Version 27 of WorkingWithGit


Ignore:
Timestamp:
Aug 21, 2016, 7:30:37 AM (8 years ago)
Author:
mkae (Marko Käning)
Comment:

remove command line prompts for consistency with residual text

Legend:

Unmodified
Added
Removed
Modified
  • WorkingWithGit

    v26 v27  
    99Start with some basic setup based on [https://community.kde.org/Infrastructure/Git/Configuration KDE's configuration hints] concerning user information:
    1010{{{
    11 $ git config --global user.name "Your Name"
    12 $ git config --global user.email YOUR_MACPORTS_HANDLE@macports.org
     11git config --global user.name "Your Name"
     12git config --global user.email YOUR_MACPORTS_HANDLE@macports.org
    1313}}}
    1414where you should use the email address you usually commit with at GitHub, even if you are not registered with a MacPorts handle (email address).
     
    1616Additionally one should define a few (very likely not necessarily global) presets for working with your clone of the MacPorts repository:
    1717{{{
    18 $ git config --global push.default nothing
    19 $ git config --global branch.autosetuprebase always
    20 $ git config --global core.excludesfile ~/.gitignore_global
    21 $ git config --global commit.template ~/.git-commit-template
    22 $ git config --global color.ui true
     18git config --global push.default nothing
     19git config --global branch.autosetuprebase always
     20git config --global core.excludesfile ~/.gitignore_global
     21git config --global commit.template ~/.git-commit-template
     22git config --global color.ui true
    2323}}}
    2424which avoids that you accidentally push changes into a wrong branch at {{{origin}}}, makes sure that your current changes get always auto-rebased ontop of the pulled changes from {{{origin}}}, adds an excludes file as well as a commit template and enables colorizing {{{git}}}'s console output.