Linux shell提交github安装以及使用
来源:互联网 发布:站内优化 编辑:程序博客网 时间:2024/06/18 10:09
•安装yum install gitgit config //git配置修改•Linux中创建pub key,导入github•git init 创建新项目并上传(或者git clone)•建立新文件,git add•git commit•git push
两项基本配置:
#配置使用git仓库的人员姓名git config --globaluser.name “Mike"#配置使用git仓库的人员emailgit config --global user.emailyou@xyz.com
本地无项目是这样操作(与clone有点区别):
#初始化一个版本仓库git initcd existing_foldergit initgit remote add origin git@DX2:kennethxian/testproject.git//remote add重命名指令git add . git commit git push -u origin master
遇到的错误以及解决办法:
[root@HTY-1 SortedPriceName]# git pushTo git@github.com:crazyyanchao/SortedNmaePrice.git ! [rejected] master -> master (non-fast-forward)error: failed to push some refs to 'git@github.com:crazyyanchao/SortedNmaePrice.git'To prevent you from losing history, non-fast-forward updates were rejectedMerge the remote changes before pushing again. See the 'Note aboutfast-forwards' section of 'git push --help' for details.
以上报错通过更新本地仓库解决,之后重新提交ok!
[root@HTY-1 SortedPriceName]# git pull originYou asked to pull from the remote 'origin', but did not specifya branch. Because this is not the default configured remotefor your current branch, you must specify a branch on the command line.[root@HTY-1 SortedPriceName]# git pull origin masterFrom github.com:crazyyanchao/SortedNmaePrice * branch master -> FETCH_HEADMerge made by recursive. README.md | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 README.md
0 0
- Linux shell提交github安装以及使用
- Github客户端以及Git shell的使用
- git安装与使用提交到github
- linux 下fish shell的安装、设置、以及使用
- 定时编译提交工具(shell脚本)以及linux cron的使用
- github安装提交心得
- Linux github提交方法
- 使用github提交代码
- github提交代码使用
- git安装与使用提交到github(2)
- 【GitHub】使用Eclipse提交代码到github
- linux下使用git仓库,以及使用github
- 使用Eclipse提交到github
- git使用(github代码提交)
- 使用github来提交代码
- Windows下,Git的安装,使用,以及远程github
- Ubuntu下安装及使用Git以及Github
- 【Git】安装以及第一次使用Git和GitHub傻瓜教程
- 【Arduino官方教程第一辑】示例程序 6-2 用压电元件检测振动
- 士兵杀敌(一)nyoj
- Android源码分析之Builder模式
- 排序算法之——冒泡排序(一)
- 敏捷开发,英文是Agile,我所理解的敏捷
- Linux shell提交github安装以及使用
- nagios插件之监控tcp的established数量
- 【每天学一点】JAVASE02
- Educational Codeforces Round 13——D. Iterated Linear Function(矩阵快速幂或普通快速幂水题)
- Zynq入门基础实验一之Helloworld
- 信息增益
- java缩小图片
- 如何在Oracle中使用Java存储过程(详解)
- Python内建函数与对象方法