Update Tools/Git
+8
-1
@@ -30,7 +30,14 @@ git push origin 'refs/remotes/{name_of_remote}/:refs/heads/' --prune --tags
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Renaming Already Pushed Commits
|
### Renaming Already Pushed Commits
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Explanation</summary>
|
||||||
|
|
||||||
|
</details>
|
||||||
```
|
```
|
||||||
git rebase -i HEAD~{number_of_commits_to_go_back}
|
git rebase -i HEAD~{number_of_commits_to_go_back}
|
||||||
git push --force-with-lease
|
git push --force-with-lease
|
||||||
```
|
```
|
||||||
|
References:
|
||||||
|
- https://stackoverflow.com/questions/73528969/how-to-change-an-old-commit-message
|
||||||
Reference in New Issue
Block a user