如何把一个新的本地项目发布到github
IntelliJ IDEA 2020.1.3 (Ultimate Edition) Linux 5.7.7-arch1-1 Current
Desktop: GNOME
- 用idea自带的ignore插件设置ignore。
一定要在第一次push前设置ignore,不然的话,你上传github上之后,你再设置就晚了。血的教训
- 这是我的
gitignore
文件
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.gradle/
.idea/
.settings/
appcompat_v7/
bin/
build/
gen/
gradle/
out/
proguard/
ship/
target/
.classpath
.gitignore
.idea
.project
.update-config
*.iml
local.properties
- 直接利用idea的一键share。填好github的密码和账户。我把ssh密钥在此之前也添加到github里面了。
- 没问题的话应该是能在github上面看到了。