git基本使用
来源:互联网 发布:tcl l48e5000e软件升级 编辑:程序博客网 时间:2024/06/07 16:00
==================================
配置密钥
==================================
gitlab的官网上添加(所有的)对应的密钥
本地的gitlab也需要添加(所有的)对应的密钥
添加发布的固定人员,并且给定固定的权限
==================================
配置用户并且创建本地仓库和提交的地址
==================================
git config --global user.name "sss"
git config --global user.email "1411942704@qq.com"
git init
git remote add origin git@10.101.110.13:root/gitlab.git
==================================
添加文件并且提交
==================================
vim readme.md
git add .
git commit -m 'test'
git push origin master
==================================
提交失败,先拉去代码,然后上传
==================================
git pull --rebase origin master
git add .
git commit -m 'test'
git push origin master
==================================
git合并,提示历史无关
==================================
git merge origin/master --allow-unrelated-histories
http://blog.csdn.net/sela0708/article/details/71480076
配置密钥
==================================
gitlab的官网上添加(所有的)对应的密钥
本地的gitlab也需要添加(所有的)对应的密钥
添加发布的固定人员,并且给定固定的权限
==================================
配置用户并且创建本地仓库和提交的地址
==================================
git config --global user.name "sss"
git config --global user.email "1411942704@qq.com"
git init
git remote add origin git@10.101.110.13:root/gitlab.git
==================================
添加文件并且提交
==================================
vim readme.md
git add .
git commit -m 'test'
git push origin master
==================================
提交失败,先拉去代码,然后上传
==================================
git pull --rebase origin master
git add .
git commit -m 'test'
git push origin master
==================================
git合并,提示历史无关
==================================
git merge origin/master --allow-unrelated-histories
http://blog.csdn.net/sela0708/article/details/71480076
阅读全文
0 0
- Git使用-基本使用
- GIT 基本使用
- Git基本使用
- GIT的基本使用
- Git基本使用
- git基本使用
- GIT的基本使用
- Git GUI基本使用
- Git基本使用
- Git的基本使用
- git 基本命令使用
- git基本使用
- git基本使用
- git remote 基本使用
- git基本使用
- git基本使用命令
- Git基本使用总结
- Git基本使用
- 面试/笔试第二弹 —— 操作系统面试问题集锦
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL
- 日期的汇总
- WIN32服务----SC命令使用
- EXCHANGE PERFORMANCE COUNTER AND THRESHOLD
- git基本使用
- Unity UGUI——Image
- 将一元人民币兑换成1分、2分、5分,有几种兑换办法?
- 组织设计的逻辑和规范
- 内联函数2
- windows下socket 多线程服务器
- 用dom4j解析xml文件并执行增删改查操作
- 最优二叉搜索树
- 常用排序算法