git

GIT首次提交项目

2019-11-18 Hubert

首次提交项目命令

1
2
3
4
5
6
7
8
9
10
# 初始化git项目
git init
# 把所有文件加入版本管理
git add -A
# 提交到本地仓库
git commit -m "初始化项目"
# 添加远程仓库,[email protected]:aceHubert/ace-vue.git为远程仓库地址
git remote add origin [email protected]:aceHubert/ace-vue.git
# 推送到远程仓库
git push -u origin master

设置映射远程分支

1
git branch --set-upstream-to=origin/master master