Git安装完毕,来启动一下~!
git config --list 命令是查看git的环境变量~!
在使用git管理仓库之前要设置环境变量user.name / user.email
Administrator@jiang MINGW32 /d/WX/test
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw32/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
pack.packsizelimit=2g
添加环境变量
$ git config user.name “name”
$ git config user.email “###@**.com”
搞到这个地方开始实测一番 了吧~!
来吧~!反正是测试环境,,
网站下载了,tar打包的源代码,,积累好多次的了。
新建文件夹test
git初始化 git init
出现了.git 隐藏的文件夹,20多k的大小吧~!挺小的。。。
解压后的源代码放进 test目录里
查看git status 好多的文件在里面了。。都是红色的,,
那就把这些源代码都放进git的仓库吧。。
首先,git add -A 命令 ,,把所有的文件放进跟进的暂存区
git commit -m "commit readme" 把所有文件提交到git仓库。。