Skip to content

Commit

Permalink
Merge pull request #3 from anattadesign/feature/useful_git_config
Browse files Browse the repository at this point in the history
add a bunch of useful git configuration options
  • Loading branch information
monkviper authored Oct 25, 2018
2 parents bdaf50c + 354043a commit 36ecf1b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ Similar to finishing a feature branch, a hotfix branch gets merged into both `ma
`git push origin staging`


## Useful git configuration
Git configuration can help you a lot with the projects. Here are a few useful options-
* `push.default=current` - When typing `git push` without any branch name, it will push the current branch automatically.
* `core.excludesfile=~/.gitignore` - Useful to create a global .gitignore file.
* `core.autocrlf=input` - Helps to set the line-endings to the unix standard. Useful for anyone who might have windows-style line-endings for some reason.
* `pull.rebase=true` - Automatically rebase if needed, when doing a fast-forward pull from remote.
* `help.autocorrect=50` - If you make a spelling mistake in the git command, git will automatically guess which command you wanted to run, and run it for you correctly.


## Summary

- A `staging` branch is created from `master`
Expand Down

0 comments on commit 36ecf1b

Please sign in to comment.