用Git上传项目时存在的一些问题

fatal: remote origin already exists.

解决办法:

git remote rm origin

git 上传项目的基本步骤

初始化git

git init

建立远成仓库连接

git remote add origin git@192.168.2.250:collins/front.git 

添加文件

git add 

提交

git commit -m "备注"   

push到远程仓库

git push  origin master

这中间可能有其他的步骤,比如让你设置邮箱名

git config --global user.email "[email protected]"

以及让你设置姓名

git config --global user.name "wangdaopeng"

猜你喜欢

转载自blog.csdn.net/dpengwang/article/details/81394213