0%

配置一个新的 git 环境

Configuration for a new git environment

User

1
git config --global user.name "John Doe"

Email

1
git config --global user.email johndoe@example.com

Editor

1
git config --global core.editor vim

Disable pager

1
2
git config --global pager.branch false
git config --global pager.log false

Check the current configuration

1
git config --list

Timezone

1
tzselect

Clone the repository

Add the remote upstream