windows git

先在国内的镜像 下载git windows https://npm.taobao.org/mirrors/git-for-windows/

下载完,直接安装

先在github上面创建仓库,然后在代码所在文件使用git bash如下推送代码

git init
git remote add origin https://xxx@xx.git
git fetch
git branch master origin/master
git checkout master
然后你就可以用
git add .
git commit -m “提交信息”
git push origin master

原文地址:https://www.cnblogs.com/Jomini/p/12275289.html