将自己的本地项目上传到远程git仓库

1. git init

初始化git仓库

2.配置远程仓库

git remote add origin https://gitee.com/…/znj.git

可以查看当前关联的远程仓库的地址
git remote -v

git add .

本地代码暂存本地git

git commit -m 描述

添加描述文字

git push

推送远程仓库

你可能感兴趣的:(git,git,github)