gitgithub
Ben Gorman

Ben Gorman

Life's a garden. Dig it.

Setup

You're developing a phone app that detects when a phone is dropped and shouts "Ow!" at the moment of impact. Run the following setup commands.

cd path/to/parent/dir/
mkdir ow && cd ow
git init
echo "DATABASE_PWD=kitty123" > .env
mkdir ideas
echo "multiple voice options" > ideas/ideas.txt
echo "$5 fixed price??" > ideas/pricing.txt
touch app.py
path/to/parent/dir/
  ow/
    .env
    app.py
    ideas/
      ideas.txt
      pricing.txt
bill@gates:~$ git status -u
On branch main
 
No commits yet
 
Untracked files:
  (use "git add <file>..." to include in what will be committed)
    .env
    app.py
    ideas/ideas.txt
    ideas/pricing.txt

Challenge

Create a .gitignore file that ignores

  1. The .env file
  2. The ideas/ directory

Solution

This content is gated

Subscribe to one of the products below to gain access