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
Committing all files from Android Studio to GitHub
提问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
Check .gitignore file. http://git-scm.com/docs/gitignore
Right-click on directory of your project (in Android Studio) -> Git -> Add
检查 .gitignore 文件。http://git-scm.com/docs/gitignore
右键单击项目目录(在 Android Studio 中)-> Git -> 添加