git 将所有文件从 Android Studio 提交到 GitHub

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27765775/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 10:40:02  来源:igfitidea点击:

Committing all files from Android Studio to GitHub

androidgitgithubandroid-studio

提问by Artyom Okon

I'm new to the GitHub, and trying to push my project to the GitHub from VCS of Android Studio. When I do this it commits and pushes only .java files and no other files like resources etc.

我是 GitHub 的新手,正在尝试将我的项目从 Android Studio 的 VCS 推送到 GitHub。当我这样做时,它只提交和推送 .java 文件,没有其他文件,如资源等。

How can I push the rest of the files? Thanks.

如何推送其余文件?谢谢。

回答by John Smith

  1. Check .gitignore file. http://git-scm.com/docs/gitignore

  2. Right-click on directory of your project (in Android Studio) -> Git -> Add enter image description here

  1. 检查 .gitignore 文件。http://git-scm.com/docs/gitignore

  2. 右键单击项目目录(在 Android Studio 中)-> Git -> 添加 在此处输入图片说明