idea 部署git总结
github密匙快捷获取方法
简单的步骤就不记录了,记录几个问题
idea将本地项目上传到远程仓库GitHub
idea里面使用命令行,直接上传本地项目到远程仓库,
命令行入口
中途会有弹窗可以输入密码或者网页认证
WiFi如果上传不了就连手机热点
从命令行创建一个仓库
touch READNE.md
git init
git add README.md
git comit -m
“fist commit” git remote add origin 仓库地址
git push -u origin master
报错-》error: src refspec master does not match any.
利用git add xxx.py 指令,将所有的文件全部都添加,然后再进行git commit -m "init"将所有的文件commit,
git commit -m “init”
git remote add origin xxxxxxxx.git
Everything up-to-date
push之前必须要写commit。
git commit -m “wiki”
specify commit message
在红框里面写上描述就行了,比如这是我第一次提交文件,再点击Commit就可以了
hint: Updates were rejected because the tip of your current branch is behind
强制推送并且覆盖远程git仓库:git push -f origin master