浅浅的理解git的使用

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    //查看提交历史
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值