git学习笔记

参考: 莫烦git教程 廖雪峰的git教程

所有之前

git config --global user.email
git config --global user.name

创建

git init

基本语句

git status 查看状态
git add 添加
git commit 注释
git rm name -r -f/–cached
//-recursive remove file 当是文件夹时
//-f force remove 强制删除,–cached to keep the file 保留文件

链接

git remote add origin git@example //一般是origin,自己起名也行

推送和下载

git push -u origin master
git clone git@example

和github链接方法

  1. 设置ssr
  2. 设置config --global
  3. git clone git@example 你自己的项目
  4. 修改文件后提交 commit
  5. 提交 git push -u origin master
  6. git用ssr提交,因为你电脑上的ssr key和github的一样,所以github会接受你电脑上的提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值