Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !8710

Gitignore

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/JimmyMcBride/gitignore into master Mar 25, 2020
  • Overview 3
  • Commits 7
  • Pipelines 0
  • Changes 2

Created by: JimmyMcBride

I added yarn.lock, package-lock.json and .env to the git ignore for the base templates.

Yarn.lock and package-lock.json files are created during the npm/yarn install process, so they don't need to be uploaded. When they are uploaded they can not only cause annoying conflicts when working in a group on occasion but when left alone for a minute will cause GitHub to throw security warnings your way.

Having both of these files ignored also lets everybody on the team use their preference for npm or yarn without causing any hosting issues when trying to deploy.

Additionally, I have added the regular .env file to the git ignore. There are a few other types of .env files on the ignore, but not the vanilla .env file. Every time I add a .env file I end up accidentally uploading it to the repo and have to do some git magic to get it off again.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/JimmyMcBride/gitignore