GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — github-tutorial/exercise2 at master · InsightDataScience/github-tutorial

Expand file tree

/

exercise2

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

exercise2

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 

README.md

Outline

exercise 2

Purpose

In several cases you will encounter files that don't belong in the repository. Typical examples include:

  • credentials (passwords, usernames, keys)
  • cached files (.pyc)

Git allows users to add a .gitignore file to their top level directory to ignore these specific files

Tasks

  1. create a file in your repository called my_super_secret_stuff.txt
  2. run a git status and see that my_super_secret_stuff.txt is untracked but can be added
  3. create a .gitignore file if it does not already exist in your top level directory
  4. at the top, add my_super_secret_stuff.txt to the file and save it
  5. run a git status and see that my_super_secret_stuff.txt doesn't show up anymore!
  6. git add your changes
  7. git commit with a useful message
  8. git push to the remote repository
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.