git把本地项目push到远程仓库
2017-12-19 19:22
411 查看
环境
系统:windows目录:D:/workspace/idea/spark-test
远程仓库:https://github.com/HanlaoTwo/SparkStudy.git
协议:https
创建版本库
#初始化 git init Reinitialized existing Git repository in D:/workspace/idea/spark-test/.git/ #用命令git add告诉Git,把文件添加到仓库: git add * warning: LF will be replaced by CRLF in src/main/scala/sql/SparkSQLExample.scala. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/compiler.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/encodings.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/misc.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/modules.xml. ... #提交 git commit -m "all is new" [master (root-commit) 521cf14] all is new warning: LF will be replaced by CRLF in .idea/compiler.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/encodings.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/misc.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/modules.xml.
提交到远程仓库
#添加 git remote add origin https://github.com/HanlaoTwo/SparkStudy.git #报错,已存在 fatal: remote origin already exists. #删除 git remote rm origin #再添加 git remote add origin https://github.com/HanlaoTwo/SparkStudy.git #提交 git push -u origin master Username for 'https://github.com': hanlaotwo Password for 'https://hanlaotwo@github.com': Counting objects: 294, done. Delta compression using up to 4 threads. Compressing objects: 100% (279/279), done. Writing objects: 99% (292/294), 1.10 MiB | 68.00 KiB/s
相关文章推荐
- Eclipse使用git提交本地项目到远程git仓库
- git 本地项目推送到远程仓库(或者仓库分支)Window版-01
- Git使用手册/Git教程:git clone 克隆下载远程仓库项目工程到本地工作区
- 项目管理---git----快速使用git笔记(六)------本地开发与远程仓库的交互----常用git命令
- 用命令将本地项目上传到git 远程仓库
- windows下多个git账号配置并且将本地仓库项目推送到远程仓库
- Git实现从本地添加项目到远程仓库
- git 本地项目推送到远程仓库(或者仓库分支)Window版-01
- Git实现从本地添加项目到远程仓库
- Git实现从本地添加项目到远程仓库
- 怎么把本地项目和远程git仓库相连通
- 创建局域网内远程git仓库,并将本地仓库push推到远程仓库中
- Git本地仓库push至GitHub远程仓库每次输入账户密码问题解决
- 用命令将本地项目上传到git 远程仓库
- windows下多个git账号配置并且将本地仓库项目推送到远程仓库
- 使用Git时,本地仓库向远程仓库push失败问题解决
- Git从本地添加项目到远程仓库
- Git实现从本地添加项目到远程仓库
- windows下多个git账号配置并且将本地仓库项目推送到远程仓库
- windows下多个git账号配置并且将本地仓库项目推送到远程仓库