File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
<!-- @doxie.inject start toc -->
5
5
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
6
+ * [ Everyday Git in twenty commands or so] ( https://github.com/git-tips/tips#everyday-git-in-twenty-commands-or-so )
6
7
* [ Overwrite pull] ( https://github.com/git-tips/tips#overwrite-pull )
7
8
* [ List of all files till a commit] ( https://github.com/git-tips/tips#list-of-all-files-till-a-commit )
8
9
* [ Git reset first commit] ( https://github.com/git-tips/tips#git-reset-first-commit )
63
64
* [ Import from a bundle] ( https://github.com/git-tips/tips#import-from-a-bundle )
64
65
* [ Get the name of current branch.] ( https://github.com/git-tips/tips#get-the-name-of-current-branch )
65
66
* [ Ignore one file on commit (e.g. Changelog).] ( https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog )
67
+ * [ Stash changes before rebasing] ( https://github.com/git-tips/tips#stash-changes-before-rebasing )
66
68
67
69
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
68
70
<!-- @doxie.inject end toc -->
69
71
70
72
71
73
<!-- @doxie.inject start -->
72
74
<!-- Don’t remove or change the comment above – that can break automatic updates. -->
75
+ ## Everyday Git in twenty commands or so
76
+ ``` sh
77
+ git help everyday
78
+ ```
79
+
73
80
## Overwrite pull
74
81
``` sh
75
82
git fetch --all && git reset --hard origin/master
@@ -443,5 +450,10 @@ git rev-parse --abbrev-ref HEAD
443
450
git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog
444
451
```
445
452
453
+ ## Stash changes before rebasing
454
+ ``` sh
455
+ git rebase --autostash
456
+ ```
457
+
446
458
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
447
459
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 1
1
[
2
+ {
3
+ "title" : " Everyday Git in twenty commands or so" ,
4
+ "tip" : " git help everyday"
5
+ },
2
6
{
3
7
"title" : " Overwrite pull" ,
4
8
"tip" : " git fetch --all && git reset --hard origin/master"
241
245
"tip" : " git bundle create <file> <branch-name>"
242
246
},
243
247
{
244
- "title" : " Import form a bundle" ,
248
+ "title" : " Import from a bundle" ,
245
249
"tip" : " git clone repo.bundle <repo-dir> -b <branch-name>"
246
250
},
247
251
{
251
255
{
252
256
"title" : " Ignore one file on commit (e.g. Changelog)." ,
253
257
"tip" : " git update-index --assume-unchanged Changelog; git commit -a; git update-index --no-assume-unchanged Changelog"
258
+ },
259
+ {
260
+ "title" : " Stash changes before rebasing" ,
261
+ "tip" : " git rebase --autostash"
254
262
}
255
263
]
You can’t perform that action at this time.
0 commit comments