https://github.com/dbjpanda/my-git-config
Globally exclude some files/folders generated by various popular applications
https://github.com/dbjpanda/my-git-config
Last synced: 4 months ago
JSON representation
Globally exclude some files/folders generated by various popular applications
- Host: GitHub
- URL: https://github.com/dbjpanda/my-git-config
- Owner: dbjpanda
- Created: 2018-05-13T00:26:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T11:03:20.000Z (over 6 years ago)
- Last Synced: 2025-07-30T08:37:58.266Z (11 months ago)
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configure gitignore globally
```
cd ~
wget https://raw.githubusercontent.com/dbjpanda/global-gitignore/master/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
```
# Configure gitconfig
```
cd ~
Edit your existing .gitconfig or directly download this file
wget https://raw.githubusercontent.com/dbjpanda/global-gitignore/master/.gitconfig
```
# Available Aliases in .gitconfig
Create a temp branch and apply the PR to that branch
`````
git pr PR_NO
``````
Delete the PR branch and checkout to master branch
`````````
git pr-clean BRANCH_NAME
`````````
Add all and commit
`````````
git add-commit "your messages"
`````````
Apply a patch from an URL.
````````
git apply-url http://blah.com/issue.patch [OPTIONAL_GIT_APPLY_ARGS](https://git-scm.com/docs/git-apply)