coding
1、第一次上传
git add .
git commit -m "初次提交"
git remote add origin https://.......
git push -u origin master
2、本地修改代码后,执行命令,cd 到当前项目
git add .
git commit -m "增加了..."
git remote add origin https://......
git push -u origin master
==============================================================================
码云
1、进入当前项目,创建 git 仓库:
git init
touch README.md
git add README.md
git commit -m "初次提交"
git remote add origin https://........
git push -u origin master
2、已有项目
cd 当前项目
git add .
git commit -m "增加了..."
git remote add origin https://.........
git push -u origin master
====================================================================================
码云创建项目
largn进入项目
1、初始化 git init
2、暂存 git add .
3、提交 git commit -m "初次提交" git commit -m "first commit"
4、git remote add origin https:.......
5、git push -u origin master
6、输入用户名 密码提交。
7、每次编辑前先同步项目 git pull
修改后提交
1、git add .
2、git commit -m "first commit"
3、提交推送 git push 完事