美文网首页
github简单命令

github简单命令

作者: 强降雨天气 | 来源:发表于2017-07-18 10:16 被阅读0次

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

查看git状态:git status -s

将文件放到暂存区,准备提交:git add filename; git add .

从暂存区移除:git rm filename; git rm .

提交到本地git库: commit -m "1st commit"

查看远程仓库:git remote 这里如果是使用clone命令直接拉取的项目,会有一个默认的origin仓库

移除远程仓库:git remote rm respname

添加远程仓库:git remote add origin git@192.168.1.119:ndshow

提交到远程仓库https方式:git push

提交到远程仓库ssh方式:git push -u origin master 第一次这么实用了之后,之后提交就可以用git push 直接提交了

相关文章

网友评论

      本文标题:github简单命令

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