Changes between Version 26 and Version 27 of WorkingWithGit
- Timestamp:
- Aug 21, 2016, 7:30:37 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingWithGit
v26 v27 9 9 Start with some basic setup based on [https://community.kde.org/Infrastructure/Git/Configuration KDE's configuration hints] concerning user information: 10 10 {{{ 11 $git config --global user.name "Your Name"12 $git config --global user.email YOUR_MACPORTS_HANDLE@macports.org11 git config --global user.name "Your Name" 12 git config --global user.email YOUR_MACPORTS_HANDLE@macports.org 13 13 }}} 14 14 where you should use the email address you usually commit with at GitHub, even if you are not registered with a MacPorts handle (email address). … … 16 16 Additionally one should define a few (very likely not necessarily global) presets for working with your clone of the MacPorts repository: 17 17 {{{ 18 $git config --global push.default nothing19 $git config --global branch.autosetuprebase always20 $git config --global core.excludesfile ~/.gitignore_global21 $git config --global commit.template ~/.git-commit-template22 $git config --global color.ui true18 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 23 23 }}} 24 24 which 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.