Git tips, dnf tips for hitting pets
When you enter the git command, you can press the tab key twice to view the candidate command.
For example:
Git co <tab>
Commit config
At this time, input m <tab> to automatically select and complete the command as git commit.
After entering the command, forget the name of the option. You can enter several letters at the beginning and press the tab key.
For example:
Git log -- s <tab>
-- Unzip stat -- since = -- src-prefix = -- stat -- summary
Ignore the. gitignore file during git version library import:
Use git add. add all project files to the version library for the first time. If there is a. gitignore file in the project file, files that comply with the. gitignore rule cannot be submitted to the version library.
There are two ways to add them:
1. Change gitignore rules
2. Force add: git add.-f (the-f parameter indicates force add, which forces all files to be added here)