如何将本地项目添加到远程(新的项目)

1.在gitlab上创建项目

标题

2.参考博客(https://www.cnblogs.com/yaoxc/p/3946280.html

git init  //在本地想提交项目下执行此命令
git remote add origin [email protected]:zhouwen/ss.git //在本地想提交项目下执行此命令
git add . //在本地想提交项目下执行此命令
git commit -m "Initial commit" //在本地想提交项目下执行此命令
git push -u origin master //在本地想提交项目下执行此命令

完成提交任务!

猜你喜欢

转载自blog.csdn.net/qq_30264689/article/details/81417292