我正在用Android开发一个应用程序。为了控制我的代码,我正在使用GitLab。因此,我创建了以下.gitignore文件以避免提交所有内容:
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# built native files (uncomment if you build your own)
# *.o
# *.so
# generated files
bin/
gen/
# Ignore gradle files
.gradle/
b
在我当前的项目中,我已经在项目的app目录中添加了一个libs文件夹。在库中,我添加了一个.aar格式的SDK。但目前的问题是,当我把我所有的更新推到一个git库中时,我所有的更新都被完美推送了,除了那个libs文件夹。但我需要将libs文件夹推送到git存储库。我将如何做到这一点。这是我的.gitignore文件- # Built application files
*.apk
*.aar
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
git总是为我的AS项目显示这些文件。
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .idea/.name
modified: .idea/compiler.xml
deleted: .i
我在集成开发环境中有一个隐藏的文件夹/.idea,我想忽略它。我遵循了https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore的模式,但它并没有被忽视。 // .gitignore
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
package-lock.json
**/node_modules
# testing
/coverage
我在git下有一个本地文件夹,当我在不同的IDES中玩一些git东西时,它被添加到git中,但我不想让它在git控制下,我只是想让它现在成为一个普通的文件夹!直到我决定稍后将其添加到某个repo中。
我是git的新手,所以不知道很多命令,但是如果我运行一个git status命令,我会得到如下结果:
git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# ne
我目前正在为安卓开发一个游戏项目,在Windows10上使用。Git管理部门正在使用Github桌面。
在完成游戏制作之后,我尝试设置.gitignore上传到Github,我连接到gitignore.io并选择了窗口、统一、jetbrains + all,然后在屏幕上显示的.gitignore中输入了.gitignore。到代码的链接是。
下面的代码是我写下的.gitignore代码。
# Created by https://www.gitignore.io/api/unity,windows,jetbrains+all
# Edit at https://www.gitignore.