Github使用

一.Github使用

  1. 注册github
    https://github.com/dkwangxfzhang

  2. 环境配置

#!/bin/bash
ssh-keygen -t rsa  -C "注册邮箱"
  1. copy公钥到github Account settings/SSH and GPG keys

  2. git config --global user.name “username”
    git config --global user.email mail

  3. git clone “http://…”
    cd project
    git push

  4. 输入账号密码
    Username for ‘https://github.com’: xxx
    Password for ‘https://xxx@github.com’: aaa

二.git常用命令

  1. git add ./file
  2. git commit -m “”
  3. git commit -am “”
  4. git push origin main
  5. git checkout -b dev //创建选择dev分支
  6. git push origin dev //push dev分支
  7. git checkout main //选择分支
  8. git branch -d test //删除分支
  9. git branch -a //分支列表
  10. git push origin :test //删除GitHub上面的远程分支
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值