概述
其实这个命令在新建仓库的时候就会提供给你,不过放在这里我感觉更好找
简单的脚本
可以直接运行
BASH
1 |
|
ssh
从命令行创建一个新的仓库
BASH
1 | touch README.md |
从命令行推送已经创建的仓库
BASH
1 | git remote add origin ssh://git@demo.com/shell.git |
http
从命令行创建一个新的仓库
BASH
1 | touch README.md |
从命令行推送已经创建的仓库
BASH
1 | git remote add origin https://demo.com/shell.git |