简体   繁体   中英

How do you create a gitignore file in pycharm? (windows)

我可以找到与 pycharm 上的 git 设置相关的内容

Create a file with name .gitignore in the root directory of your project. Add all the files which you want git to ignore while versioning, in it.

  1. Open Git Bash from git for windows

  2. Run command:

    cd '{your_root_directory_path}'

  3. Run command:

    touch .gitignore

In the Project tool window, select one or more files you wish to be ignored, then right click on the selection, then Git > Add to .gitignore > Add to .gitignore . If the .gitignore file does not exist, you will be asked for confirmation to create it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM