Git命令

1.   git init 初始化版本库
2.   git config --global user.name (your name)  配置
      git config --global user.email (your email)
3.   git add (file name)  将文件放置到缓存区
4.   git commit -m (describe) 将缓存区的文件提交到分支上
5.   git status 查看版本库状态
6.   git diff 查看具体修改内容
7.   git log 查看提交记录
8.   git reset  -- hard HEAD^ 退回上一次提交、  HEAD^^ 退回前两次、  HEAD~n 退回到前n次 、 commit id  退回到指定的位置
9.   git reflog 查看命令记录
10. git checkout -- (file name)  撤销修改
11. git rm (file name)  删除文件
12. git remote set-url origin [URL] 修改远程仓库地址
13. git config --global credential.helper store 永久记录Https用户名密码

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值