The document tries to collect useful information to make life easier working with the GIT repository of SIP Router Project.
GIT allows setting global configuration parameters by using the command git config –global
. These settings are stored into $HOME/.gitconfig
and are global for all our local GIT repositories.
git config
without –global
option must be executed in the root directory of a local GIT repository. Such settings are stored in .git/config
within the repository and are just specific for current GIT repository. They take preference over global settings (in case the same configuration parameter exists in both $HOME/.gitconfig
and REPOSITORY/.git/config
).
git config --global user.name 'your_name' git config --global user.email 'your email address'
Some other recommended git config setting:
git config --global merge.log true git config --global merge.summary true # same as above, for older git versions
git config --global branch.autosetupmerge always
git config branch.master.rebase true
git config branch.autosetuprebase always # or remote
# _not_ recommended, use _only_ if you do a _lot_ of merges between public # branches (see Note: above), otherwise you're better off without it # git config branch.master.mergeoptions "--no-ff"
Please see GIT commit into master howto
Please see GIT merge into master howto