mirror of
https://github.com/namibia/tips.git
synced 2025-02-02 19:48:24 +00:00
tip to amend last commit
This commit is contained in:
parent
5c85e36770
commit
97ea96885a
@ -52,6 +52,7 @@
|
|||||||
* [Rename a branch](https://github.com/git-tips/tips#rename-a-branch)
|
* [Rename a branch](https://github.com/git-tips/tips#rename-a-branch)
|
||||||
* [rebases 'feature' to 'master' and merges it in to master ](https://github.com/git-tips/tips#rebases-feature-to-master-and-merges-it-in-to-master)
|
* [rebases 'feature' to 'master' and merges it in to master ](https://github.com/git-tips/tips#rebases-feature-to-master-and-merges-it-in-to-master)
|
||||||
* [Archive the `master` branch](https://github.com/git-tips/tips#archive-the-master-branch)
|
* [Archive the `master` branch](https://github.com/git-tips/tips#archive-the-master-branch)
|
||||||
|
* [Modify previous commit without modifying the commit message](https://github.com/git-tips/tips#modify-previous-commit-without-modifying-the-commit-message)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- 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 -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -365,5 +366,10 @@ git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1
|
|||||||
git archive master --format=zip --output=master.zip
|
git archive master --format=zip --output=master.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Modify previous commit without modifying the commit message
|
||||||
|
```sh
|
||||||
|
git add --all && git commit --amend --no-edit
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -204,5 +204,9 @@
|
|||||||
{
|
{
|
||||||
"title": "Archive the `master` branch",
|
"title": "Archive the `master` branch",
|
||||||
"tip": "git archive master --format=zip --output=master.zip"
|
"tip": "git archive master --format=zip --output=master.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Modify previous commit without modifying the commit message",
|
||||||
|
"tip": "git add --all && git commit --amend --no-edit"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user