git的簡單設定

2021-06-27 22:50:10 字數 410 閱讀 1184

git使用者名稱等的配置通常都用類似於下面的格式:

git config --global user.name yourname  ///配置使用者

git config --global core.pager 'less -x1,5'    //配置tab鍵的寬度,  寬度為5-1=4,可以自己修改這個值,例如:less -x1,3 等

當然也可以直接改.gitconfig檔案來配置:

vim ~/.gitconfig

[user]

name = yourname

email = [email protected]

[color]

ui = auto

[core]

pager = less -x1,5

git簡單設定

git是分布式的,因此不存在向使用者詢問姓名和郵件位址的 版本庫。通過命令git config,使用者可以把此類資訊提供給本地版本庫。git中最常用的三個全域性設定是姓名 郵件 視窗顏色。git config global user.name xx git config global user.em...

git初始化簡單設定

git config global user.name gaochaowie git config global user.email gaochaoweino qq.com git init git add readme.txt git commit m wrote a readme file g...

Wind IDE簡單設定

1 恢復初始設定。edit preferences factory defaults 2 py檔案中顯示中文。edit preferences user inte ce中 display font size修改為 use selected font size simsun 10 source cod...