Git初始化本地项目并提交远程仓库基础操作

首先将本地项目初始化

1 git init

然后添加一个远程仓库

 1 git remote add origin https://gitee.com/yooeyeshot/woodafeng-admin.git

要先从远程库更新

1 git pull origin master

之后先标记,提交到本地仓库,再推送到远程仓库

git add .
git commit .
git push origin master

猜你喜欢

转载自www.cnblogs.com/woodafeng/p/10485808.html