美文网首页
git/github使用

git/github使用

作者: 文艺女青年爱做饭 | 来源:发表于2020-03-11 07:12 被阅读0次

fork //复制仓库到自己的github账号

添加ssh keys ;   ~/.git后再查找id_rsa.pub文件并copy里面的私钥

git clone //clone到本地

git init 初始化本地仓库

git add README.md //添加文件

git commit -m "first commit" //提交改动,commit为:first commit

git remote add origin https://github.com/matengbing/gitrepositytest.git //与远端仓库建立连接

git push -u origin master //推送到master

git checkout -b feature-develop//新建feature-develop分支

git push origin test //推送到test分支,如果远端不存在test分支就新建test分支

git branch -a //查看所有分支

git branch -r //查看远端分支

git status

1.解决 fatal: Not a git repository (or any of the parent directories): .git 问题

使用git init初始化一下

相关文章

  • Github

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

  • GitHub超简单小白入门详细教程(1)——了解Git与Gith

    了解Git与Github 和 使用GitHub的目的 一、了解Git与Github 1.1 什么是Git Git是...

  • git

    git和GitHub托管工具使用 通过git上传文件到GitHub上:git与GitHub 如何将GitHub上的...

  • Mac上将本地项目上传到Github

    首先使用git上传文件到GitHub需要git客户端以及注册GitHub账号 git官网:https://git-...

  • git+sourceTree+gitLab 代码管理

    使用过 git +github, git+sourceTree +coding ,git+sourceTree+g...

  • ios git的使用

    git本地操作 git团队开发操作 git分支管理 gitHub使用

  • git与github的正确使用姿势

    git与github 在学习如何使用git和github前我们先详细了解下什么是git?而github又是什么? ...

  • git的使用

    Git连接github的详细使用 安装git [git下载地址]: https://git-for-windows...

  • git使用

    Git github gitlab使用 Git是版本控制系统 Github是在线基于git的代码托管服务 Gitl...

  • git学习

    git下载使用说明 请转跳github查看文档 https://github.com/lxlr/git/blob/...

网友评论

      本文标题:git/github使用

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