Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add file to gitignore

touch .gitignore
$ git config --global core.excludesfile ~/.gitignore
$ echo '.idea' >> ~/.gitignore
Comment

git add gitignore

$ touch .gitignore
Comment

how to setup a gitignore

### Terraform ###
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate

# Crash log files
crash.log

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
#
# example.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# End of https://www.toptal.com/developers/gitignore/api/terraform
Comment

what is add.gitignore

The purpose of gitignore files is to ensure that certain files not tracked by git remain untracked.
Comment

PREVIOUS NEXT
Code Example
Shell :: command to update ubuntu 
Shell :: ubuntu delete contents of folder 
Shell :: linux delete files older than 
Shell :: bash length of array 
Shell :: see network trafic linux 
Shell :: kuberentes get nodes 
Shell :: como desfazer um git add . 
Shell :: plesk clear mail queue 
Shell :: how to fast forward git 
Shell :: download nodejs debian linux 
Shell :: how to set global github username and password in git 
Shell :: powershell active directory script examples 
Shell :: copy folder linux command line 
Shell :: how to install docker in ubuntu 
Shell :: create directory linux 
Shell :: delete add git 
Shell :: ubuntu port ping 
Shell :: install and import gsap in vue 
Shell :: docker-compose command multiple 
Shell :: Install specific node version and update node to lastest stable version 
Shell :: conda command not found 
Shell :: parent branch 
Shell :: docker redis set username and password 
Shell :: hostname change inux 
Shell :: create folder with shell/bash 
Shell :: Using git reset to Undo a Merge 
Shell :: send post request webhook bash scipt 
Shell :: installer microsoft teams ubuntu 
Shell :: batch color 
Shell :: remove gitignore files 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =