美文网首页
2019-05-20 GitHub常用命令

2019-05-20 GitHub常用命令

作者: Sy1024 | 来源:发表于2019-05-20 16:22 被阅读0次

Git 常用命令

ps:git config –global 参数,有了这个参数,表示你这台机器上所有的Git仓库都会使用这个配置,当然你也可以对某个仓库指定的不同的用户名和邮箱

git config --global user.name "用户名"
git config --global user.email "注册的邮箱账号"

为Github账户设置SSH key

通过命令生成公私钥

ssh-keygen -t rsa -C  "12345678@qq.com"
image.png

[图片上传中...(image.png-739392-1558339976818-0)]

--把这个目录下变成git可以管理的仓库-------------------------------------------------
git init 
--文件添加到仓库------------------------------------------------------------------------------
git add test.md 
--不但可以跟单一文件,还可以跟通配符,更可以跟目录。一个点就把当前目录下所有未追踪的文件全部add了 
git  add .
-- 把文件提交到仓库--------------------------------------------------
git commit -m "first commit" 
关联远程仓库
git remote add origin  你的仓库地址 git@github.com:SamZcy/practice.git

image.png

相关文章

  • 2019-05-20 GitHub常用命令

    Git 常用命令 ps:git config –global 参数,有了这个参数,表示你这台机器上所有的Git仓...

  • Github

    Github使用教程一Github使用教程二Github使用教程三 Git常用命令Git之使用GitHub搭建远程仓库

  • Git快捷键

    转载自https://github.com/mzlogin/mzlogin.github.io 常用命令 Q&A ...

  • git命令(1)

    Git常用命令stackoverflow:全球最大的程序员问答网站github:www.github.comgit...

  • ❄️恍如遇见

    2019-05-20

  • Flutter 混合(1)

    https://github.com/fengxing1234/Flutter 常用命令 创建moduleflut...

  • Git操作记录

    Git的使用常用命令GitHub远程仓库 Git的使用 常用命令 创建仓库 添加命令 提交命令 查看状态 查看修改...

  • git cmd

    GitHub Commands git 常用命令 注册 SSH key 以便git bash 可以push req...

  • github使用2018-01-04

    一、学习网站 github官网使用说明github常用命令 二、笔记 1)一次创建过程 git statuslsc...

  • 2019-05-21

    2019-05-20 2019-05-20 姓名:周国挺 公司:宁波华光 《六项精进》第403期 15期 感谢二组...

网友评论

      本文标题:2019-05-20 GitHub常用命令

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