mirror of
https://github.com/namibia/tips.git
synced 2024-12-31 21:21:51 +00:00
branch.autosetuprebase
This commit is contained in:
parent
7078656d7c
commit
3c31eac721
@ -73,6 +73,7 @@
|
||||
* [Undo assume-unchanged.](https://github.com/git-tips/tips#undo-assume-unchanged)
|
||||
* [Clean the files from `.gitignore`.](https://github.com/git-tips/tips#clean-the-files-from-gitignore)
|
||||
* [Restore deleted file.](https://github.com/git-tips/tips#restore-deleted-file)
|
||||
* [Always rebase instead of merge on pull.](https://github.com/git-tips/tips#always-rebase-instead-of-merge-on-pull)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -509,5 +510,10 @@ git clean -X -f
|
||||
git checkout <deleting_commit>^ -- <file_path>
|
||||
```
|
||||
|
||||
## Always rebase instead of merge on pull.
|
||||
```sh
|
||||
git config --global branch.autosetuprebase always
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
Loading…
Reference in New Issue
Block a user