zoukankan      html  css  js  c++  java
  • [Practical Git] Remove unnecessary git tracking with .gitignore files

    Most projects have automatically generated files or folders from the operating system, applications, package managers etc. Usually, we don't want to include these types of things in our remote repos because they can clutter the git history/storage and are not applicable to everyone that works on the project. In this lesson, we show how to create a .gitignore file to ignore files and folders from being tracked by git.

    If before the files or folders are added staging area, we can add those into .gitingore file, so it won't be tracked.

    But If we also add those file or folder into the staging area, we can run:

    git rm --cached
  • 相关阅读:
    day4
    day3
    day2
    day1
    spring-boot-note
    spring-boot-cli
    jquery ajax rest invoke
    spring-boot
    docker mysql
    jpa OneToMany
  • 原文地址:https://www.cnblogs.com/Answer1215/p/5763471.html
Copyright © 2011-2022 走看看