前提条件安装git和配置,比较简单这里就不介绍了。
右击菜单中"Git Bash Here"输入如下命令
1.初始化
git init
2. 设置提交地址
git remote add origin https://gitee.com/GitJackLiu/Money.git
注意:如果新建 git 仓库时选择了创建某文件,则需要合并才能提交,使用如下命令合并
git pull --rebase origin master
3.添加文件
git add .
4. 设置提交说面
git commit -m "first commit"
5. 推送
git push -u origin master