git创建仓库并提交代码(首次)/拉取远程代码(首次)
2017-02-14 23:17
260 查看
先配置信息
1. git config --global user.name "linlianhuao"
2. git config --global user.email "linlianhuao@qq.com"
创建仓库并提交代码
1. git init
2. git remote add origin git@gitlab.***.com:linlianhuao/**.git
3. git add -A
4. git commit -m 建立项目
5. git push -u origin master
拉取远程代码
1. git clone git@gitlab.***.com:linlianhuao/**.git
2. cd **
3. git add -A
4. git commit -m 提交信息
5. git push -u origin master
1. git config --global user.name "linlianhuao"
2. git config --global user.email "linlianhuao@qq.com"
创建仓库并提交代码
1. git init
2. git remote add origin git@gitlab.***.com:linlianhuao/**.git
3. git add -A
4. git commit -m 建立项目
5. git push -u origin master
拉取远程代码
1. git clone git@gitlab.***.com:linlianhuao/**.git
2. cd **
3. git add -A
4. git commit -m 提交信息
5. git push -u origin master
相关文章推荐
- git创建仓库并提交代码(首次)/拉取远程代码(首次)
- 【git】在git远程仓库中创建一个新项目并把本地代码提交上去
- Git在另一个电脑上创建仓库并向远程仓库提交代码
- git创建本地仓库,并关联远程仓库,提交代码
- 版本控制git 下载,安装,创建代码仓库,提交本地代码
- git创建仓库,并提交代码(第一次创建并提交) .
- git提交代码到多个远程仓库(github.com、git.oschina.net)
- git创建版本库并提交到远程仓库
- 项目管理---git----快速使用git笔记(五)------本地项目代码提交到远程仓库---新建项目
- git 克隆远程仓库并创建分支、提交分支、获取分支
- git仓库创建:远程初始化仓库、本地clone远程库、本地获取提交新内容
- 【Git】git将本地代码提交到远程仓库
- Myeclipse如何使用自带git工具向远程仓库提交代码
- windows下使用GUI 把本地代码提交到git远程仓库
- git创建仓库,并提交代码(第一次创建并提交) .
- 如何使用git命令同步代码到github或提交到多个远程仓库
- windows下使用GUI 把本地代码提交到git远程仓库
- git提交代码至远程仓库
- 【git】SSH keys 生成,管理多个 SSH keys ,代码第一次提交到远程仓库
- 项目管理---git----快速使用git笔记(五)------本地项目代码提交到远程仓库---新建项目