gIT步骤

来源:互联网 发布:os x 卸载软件 编辑:程序博客网 时间:2024/05/20 07:17

git config --global user.name "<first name> <last name>"
git config --global user.email <first name>.<last name>@thomsonreuters.com
git config --global core.autocrlf false
git config --global core.longpaths true
git config --global push.default simple
git config --global commit.message ~/.gitmessage

This will add these properties to your .gitconfig file, which is usually found in H:\.

 

These settings prevent merge situations where you have local changes and want to get remote changes, these are 99.99% safe to use:

git config --global branch.autosetuprebase always
git config --global pull.rebase preserve

git config --global rebase.autostash true




ssh-keygen -t rsa -C "<first name>.<last name>@thomsonreuters.com"

0 0
原创粉丝点击