Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git_cheatsheet_added #227

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 4 additions & 0 deletions CheatSheets/git-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ 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-submodule` | Initialize, update or inspect submodules |
Copy link
Owner

Choose a reason for hiding this comment

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

This isn't the correct command. Please, follow this referral link and modify it with the correct command.

| `git-gui` | A portable graphical interface to Git |
Copy link
Owner

Choose a reason for hiding this comment

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

This isn't the correct command. Please, follow this referral link and modify it with the correct command.

| `git config --global core.excludesfile [file]` | System wide ignore patern for all local repositories |
Copy link
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