美文网首页
github命令

github命令

作者: reco171 | 来源:发表于2018-09-04 14:25 被阅读0次
  1. 在github新建repository后,github会提示远程提交的命令
    echo "# springtest" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/reco171/springtest.git
    git push -u origin master
  2. 登录git与查看登录信息
    在远程提交前需要配置git用户信息
    git config --global user.name 'userName' //设置git账户,userName为你的git账号,
    git config --global user.email 'email'
    查看当前登录用户与邮箱
    git config --global user.name //获取当前登录的用户
    git config --global user.email //获取当前登录用户的邮箱
    参考:
    Git 常用命令总结
    https://blog.csdn.net/tomatozaitian/article/details/73515849

相关文章

  • github命令

    在github新建repository后,github会提示远程提交的命令echo "# springtest" ...

  • github 命令

    区别于作用 git reset --hard xxx git reset --soft xxx git rever...

  • GitHub命令

    (1)创建、配置、查看信息 .git config --list 配置信息; . git config --glo...

  • Github命令

    删除已经push的commit: 如何将一个分支的修改同步到另一个分支?: 如果还是不行,可以采用如下办法: Cr...

  • GitHub命令小结

    Git init 初始化仓库 .git目录存储着管理当前目录内容所需要的仓库数据 Git status 用于显示仓...

  • github常见命令

    (链接)[https://blog.csdn.net/pandamax/article/details/78534...

  • Github命令+用法

    Git的主要作用和功能 实现协同开发。 目前已使用的Git的四个命令,这四个命令已经代替本地多个文件保存版本的方式...

  • github简单命令

    从远程仓库拉取:git clone https://github.com/InnoCEnCEI/demo.git ...

  • Github命令简记

    安装github windows版本后 打开git bash 配置身份: git config --global ...

  • github终端命令

    github版本会退的方法

网友评论

      本文标题:github命令

      本文链接:https://www.haomeiwen.com/subject/thvgwftx.html