我有以下简单的.gitignore文件。 # Local .terraform directories. Here .terraform is a folder
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# .tfvars files
*.tfvars
# .tfplan files
*.tfplan
# .pem files
*.pem
# .hcl files from Terraform v0.14 and newer
*.hcl
# working directory for web app
/glob
尽管在Windows操作系统上有一个全局的gitignore,但我仍然得到了一堆“未跟踪的文件”。
下面是一个截短的列表,内容如下:
Untracked files:
(use "git add <file>..." to include in what will be committed)
foo/bar/__pycache__/
foo/pkg_name.egg-info/
scripts/MainProcess.log
scripts/__pycache__/
test/foo
我的.gitignore似乎不像预期的那样正确。
$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: win_2016_datacentre_vm/.terraform/plugins/linux_amd64/lock.json
new file: win_20
我是Github的一个新手(刚刚开始),我想要创建一个新的存储库,几乎我在本地拥有的所有东西。我的本地文件结构是:
project name to post on github
**assets**
css
images
index.html
other_html_files.html
README.txt
scripts
我想发布所有的,除了资产。该目录包含设计资产、photoshop和插图文件。github推送是不必要的,也是对带宽的浪费,因为这些都是较大的文件。我确实希望将该目录保存在本地项目文件夹中,因为它对我来说更容易管理(我希望所有东西都在一起)。我只是
通过运行以下命令: GITIGNORE_CONTENTS = $(shell while read -r line; do printf "$$line "; done < "$(.gitignore)")
all:
echo $(GITIGNORE_CONTENTS) 变量GITIGNORE_CONTENTS的内容是我的.gitignore文件中ignore patterns的扩展版本,即myfile.txt而不是*.txt 我之所以使用这个解决方案,是因为because Create a variable in a makefile by
我正在尝试使用terraform的一种方式,这是在Terraform启动和运行的书的末尾描述的。描述的模式说,您可以通过对每个环境(例如prod、dev、ad开发人员环境等)使用*.tfvars文件来定义您的活动环境。这些*.tfvars文件引用另一个回购中的模块,如下所示:
source = "git::https://github.com/github-user/my-module.git?ref=v0.0.1"
# required variables for `my-module` defined here
foo="bar"
这种模式对我来说很有意义