git提交项目到码云

提交代码:

git init
git remote add origin 远程仓库地址
git pull --rebase origin master
git add -A
git commit -m "备注"
git push -u origin master


Git 全局设置:

git config --global user.name "xxxxt"
git config --global user.email "xxxx@qq.com"

创建 git 仓库:

mkdir core_22_privilege_system
cd core_22_privilege_system
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin 远程地址
git push -u origin master

已有仓库?

cd existing_git_repo
git remote add origin  远程地址
git push -u origin master

 

github项目提交失败 master -> master (non-fast-forward)

git add -A
git commit -m "备注"

先执行git pull

然后再执行 git push --force origin master 替换原先的git push -u origin master

 

解决git 提交报fatal: unable to access ’ ': The requested URL returned error: 403 错(亲测可行)

 编辑或者删除删除账号

 

posted @ 2019-09-07 19:07  世人皆萌  阅读(363)  评论(0编辑  收藏  举报