Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2004626
  • 博文数量: 433
  • 博客积分: 918
  • 博客等级: 准尉
  • 技术积分: 3218
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 18:21
个人简介

你是不是暗恋我,那就给我发个消息呀,让我知道o(∩∩)o

文章分类

全部博文(433)

分类: LINUX

2018-03-17 14:04:24

命令行指令

Git 全局设置
git config --global user.name "username"
git config --global user.email "username@host.com"
创建新版本库
git clone gitlab@gitlab.host.cn:test/tech-trainning.git cd tech-trainning
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
已存在的文件夹
cd existing_folder
git init
git remote add origin gitlab@gitlab.host.cn:test/tech-trainning.git 
git add .
git commit -m "Initial commit"
git push -u origin master
已存在的 Git 版本库
cd existing_repo
git remote add origin gitlab@gitlab.host.cn:test/tech-trainning.git git push -u origin --all
git push -u origin --tags
阅读(2362) | 评论(0) | 转发(0) |
0

上一篇:PHP编码规范(中文版)

下一篇:没有了

给主人留下些什么吧!~~