Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CheatSheets/git-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ created: 2022-10-18
| `git checkout [file]` | Matches the file with last commit |
| `git help -a` | Shows the list of all available Git commands |
| `git restore .` | To restore all files in the current directory |
| `git config --global core.excludesfile [file]` | System wide ignore patern for all local repositories |
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `git config --global core.excludesfile [file]` | System wide ignore patern for all local repositories |
| `git config --global core.excludesfile [file]` | - Set up your global `core.excludesfile` configuration file to point to this global ignore file <br /> - `git config --global core.excludesFile '~/.gitignore'` |
Command Description
git config --global core.excludesfile [file] - Set up your global core.excludesfile configuration file to point to this global ignore file
- git config --global core.excludesFile '~/.gitignore'



**[🔼Back to Top](#table-of-contents)**

Expand Down