[github]——git add

Preface

I was educated [enthusiastically instructed] the first time git push, and there are two main problems. 1. I uploaded the .pyc file, which is the result of compiling the py program. 2. I uploaded the json file, which is generally not necessary

Solve the problem one: ignore the .pyc file

Add in the .gitignore file: *.jsonl

Solve problem two: do not upload .json files in a single step

Use git add -uto submit only all deleted and modified data files to the staging area, and generally do not modify .json file ~

Guess you like

Origin blog.csdn.net/jokerxsy/article/details/115005472