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.
Open Git Bash from git for windows
Run command:
cd '{your_root_directory_path}'
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.