gitee 使用

gitee 使用

首先在码云仓库创建对应的仓库

当你输入错误用户名和密码 需要
清掉配置 git config --system --unset credential.helper

设置账号

git config --global user.name "名称"

git config --global user.email "邮箱"

初始化版本库
git init
提交暂存
git add -A
提交修改内容
git commit -m "first commit”

指定云端的项目地址

git remote add origin https://gitee.com/项目地址/项目名称.git

拉取云端文件
git pull origin master --allow-unrelated-histories

《提示》:如果密码或用户名输入错误可以在windows 凭据中删除重新执行

推送同步到远端
git push -u origin master


Git 忽略文件(不想上传的文件)

使用git bash 在项目根目录下创建 .gitignore文件

猜你喜欢

转载自www.cnblogs.com/xcsg/p/10425379.html