git - 1.基础

配置

C:\Users\Administrator
λ git config --global user.name 'tangsansan'

C:\Users\Administrator
λ git config --global user.email '[email protected]'

config 三个作用域

建设仓库

$ git init aurelia_learning

$ cd aurelia_learning

$ dir -all
total 8
drwxr-xr-x 1 Administrator 197121 0 四月   26 22:23 .
drwxr-xr-x 1 Administrator 197121 0 四月   26 22:23 ..
drwxr-xr-x 1 Administrator 197121 0 四月   26 22:23 .git   ## 这里是.git文件夹

## 为了区别local和global,在这里设置
$ git config --local  user.name 'tangge'

$ git config --local --list
user.name=tangge
...

$ git config --global --list
user.name='tangsansan'
user.email='[email protected]'
...

猜你喜欢

转载自www.cnblogs.com/tangge/p/10776809.html