简体   繁体   English

android-studio项目git私有文件夹

[英]android-studio project git private folder

I have an android project I'm working on using android studio and a git repository. 我有一个正在使用android studio和git存储库的android项目。 I want to start working on separate files (graphic files) that will not originally be part of the app. 我想开始处理最初不属于应用程序的单独文件(图形文件)。 Later I will edit them and include them in the app (things like icons and background images). 稍后,我将对其进行编辑并将其包括在应用程序中(图标和背景图片之类的内容)。 I want to include them in the git repository somewhere. 我想将它们包含在git存储库中的某个位置。 What is the best place. 什么是最好的地方。 I was thinking of putting them in a folder at the very root of the git repository and giving it a descriptive name. 我正在考虑将它们放在git存储库根目录下的文件夹中,并为其指定一个描述性名称。 Is there a common way to do this? 有一种通用的方法吗?

git/
    personal/
    app/
    build/
    gen/
    gradle/
    other-files

Is 'personal' what I want? 我想要的是“个人”吗? Maybe I want 'assets' or 'personal-assets'. 也许我想要“资产”或“个人资产”。 What do people commonly do? 人们通常会做什么?

I would nest them in assets under another folder. 我会将它们嵌套在另一个文件夹下的资产中。 I don't know what domain you are working in but I think something as descriptive as possible would be best. 我不知道您在哪个领域工作,但我认为最好是描述性的。 I would just make sure you ignore that directory in git if you do not want to push those files to your repo. 如果您不想将这些文件推送到您的仓库中,我将确保您忽略git中的该目录。 Git hub has a link on how to do this. Git中心提供了有关如何执行此操作的链接。 https://help.github.com/articles/ignoring-files/ https://help.github.com/articles/ignoring-files/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM