Compare commits
26 Commits
48ea960bab
...
a2aff0171e
Author | SHA1 | Date | |
---|---|---|---|
a2aff0171e | |||
6872e0e4e0 | |||
5359811cb5 | |||
424603343c | |||
29cf143caa | |||
84e1d2a381 | |||
0debd6477d | |||
17319d9ac1 | |||
512282e379 | |||
e846cf0e6c | |||
7f68d6d364 | |||
ca0be58e2c | |||
b91591a402 | |||
ee1b119cdf | |||
037a352095 | |||
205312ef3c | |||
cb82c51f8c | |||
94a03df352 | |||
54f937ad96 | |||
5959b16b78 | |||
688762a9c5 | |||
4d9cde4339 | |||
49ebcae5ea | |||
09ce26cbde | |||
aded939a5d | |||
5d412184a8 |
18
git.md
18
git.md
@ -8,7 +8,7 @@ tags: [ linux, programming, git ]
|
||||
|
||||
# Fix detached head
|
||||
|
||||
From https://stackoverflow.com/a/10229202 :
|
||||
From <https://stackoverflow.com/a/10229202>:
|
||||
|
||||
## To Delete Changes
|
||||
|
||||
@ -24,3 +24,19 @@ git checkout main
|
||||
git pull . temp
|
||||
git branch -D temp
|
||||
```
|
||||
|
||||
# Retroactively Sign Commits
|
||||
|
||||
From <https://webdevstudios.com/2020/05/26/retroactively-sign-git-commits/>:
|
||||
|
||||
1.
|
||||
```
|
||||
git rebase -i HEAD~<number of commits to sign>
|
||||
```
|
||||
|
||||
2. Replace `pick` with `reword`:
|
||||
|
||||
In vim: `:%s/^pick/reword/:wq`
|
||||
|
||||
3. Save all commit messages
|
||||
4. Force push to remote
|
||||
|
Loading…
Reference in New Issue
Block a user