1、首先去官网下载git 地址:https://git-scm.com/downloads
2、下载完git后就根据next去安装
3、安装以后就可以拉项目了 拉项目的命令
$ git clone 项目所属地址的url
4、设置你的身份命令
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
5、设置你的编辑器,如果没有设置,那就使用系统默认的编辑器
git config --global core.editor "'D:\Program Files (x86)\Notepad++/notepad++.exe' -multiInst -nosession"
6、检查你的设置 命令是 git config –list
$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
http.sslcainfo=D:/Program Files (x86)/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
user.nam=pei
user.email=269687444@qq.com
core.editor='D:\Program Files (x86)\Notepad++/notepad++.exe' -multiInst -nosession
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=你项目的地址
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
7、更新的你项目,进入到你的项目的根目录,右键选择git base,打开命令窗, 输入$git pull更新你的项目
$ git stutas //查看项目的状态
$ git diff //查看修改
$ git commit //提交
$ git add * //添加所有文件
$ git log //查看提交历史