GitHub 新建本地仓库并提交到远程仓库
来源:互联网 发布:收购淘宝评价 编辑:程序博客网 时间:2024/06/04 19:34
打开git bash.
一、github新建本地仓库并提交到远程仓库
1 cd projectDir
2 git init
3 git add .
#updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
4 git commit -m 'comment'5 git remote add origin https://github.xxx
6 git config --global http.sslVerify false
7 git pull --rebase origin master
8 git push -u origin master
二、 Push 到远程库的子目录dirName
1 git clone git://github.com/xx
2 cd /dirName #cd到对应的远程库子目录
3 git add .
4 git commit -m "160 build"
5 git push -u origin master
三、 删除远程库目录dirName
1 git rm -r --cached dirName
2 git commit -m "delete dirName"
3 git push
阅读全文
0 0
- GitHub 新建本地仓库并提交到远程仓库
- git 创建仓库并提交到github
- IDEA中如何初始化git本地仓库,并提交到远程仓库
- github新建本地仓库,远程仓库基本用法
- GitHub新建本地仓库
- 本地创建git仓库并提交到码云
- 本地创建git仓库并提交到码云
- git创建版本库并提交到远程仓库
- git回退到某个版本并提交到远程仓库
- gitc创建分支并提交到远程仓库以及合并分支
- 克隆远程仓库 并提交本地修改
- github远程仓库和本地仓库冲突
- Git本地仓库和github远程仓库
- 建立github本地仓库与远程仓库
- github本地仓库与远程仓库同步
- github新建本地仓库并将代码提交到远程仓库
- git链接远程仓库已经新建本地仓库
- 本地项目提交GitHub远程仓库
- schemaValidationMessages":[{"level":"error","message":"Can't read from file /swagger.json"}]
- workerman-chat linux安装
- kindeditor使用
- QT中窗口刷新事件总结
- poj 3037
- GitHub 新建本地仓库并提交到远程仓库
- 使用sublime快速书写前端代码
- SpringMVC与Struts2区别与比较总结
- 9.1树链剖分突击作战
- Fragment的基本使用(向布局中动态添加Fragment)
- inter x86 emulator accelerator(HAXM installer) not compatible with windows
- python函数
- Android消息处理机制(一):简介
- 关于在Spring配置特殊bean-分散配置的时候抛出的异常:无法找到元素 'context:component-scan' 的声明 的解决方法