File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 73
73
* [ Undo assume-unchanged.] ( https://github.com/git-tips/tips#undo-assume-unchanged )
74
74
* [ Clean the files from ` .gitignore ` .] ( https://github.com/git-tips/tips#clean-the-files-from-gitignore )
75
75
* [ Restore deleted file.] ( https://github.com/git-tips/tips#restore-deleted-file )
76
+ * [ Always rebase instead of merge on pull.] ( https://github.com/git-tips/tips#always-rebase-instead-of-merge-on-pull )
76
77
77
78
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
78
79
<!-- @doxie.inject end toc -->
@@ -509,5 +510,10 @@ git clean -X -f
509
510
git checkout < deleting_commit> ^ -- < file_path>
510
511
```
511
512
513
+ ## Always rebase instead of merge on pull.
514
+ ``` sh
515
+ git config --global branch.autosetuprebase always
516
+ ```
517
+
512
518
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
513
519
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 292
292
{
293
293
"title" : " Restore deleted file." ,
294
294
"tip" : " git checkout <deleting_commit>^ -- <file_path>"
295
+ },
296
+ {
297
+ "title" : " Always rebase instead of merge on pull." ,
298
+ "tip" : " git config --global branch.autosetuprebase always"
295
299
}
296
300
]
You can’t perform that action at this time.
0 commit comments