git:correcting-git-commits
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| git:correcting-git-commits [2026/02/11 15:39] – [How to Do It (Command Line)] odefta | git:correcting-git-commits [2026/02/11 15:40] (current) – [How to Do It (Command Line)] odefta | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| Because you have changed a commit that already exists on the remote server, you must force the update. **Always** use the safer `--force-with-lease` option. | Because you have changed a commit that already exists on the remote server, you must force the update. **Always** use the safer `--force-with-lease` option. | ||
| <code bash> | <code bash> | ||
| - | # Varianta scurtă | + | # Short version |
| git push --force-with-lease | git push --force-with-lease | ||
| - | # Varianta completă | + | # Full version |
| git push --force-with-lease origin < | git push --force-with-lease origin < | ||
| </ | </ | ||
| <note tip> | <note tip> | ||
| - | 💡 **Tip: | + | 💡 **Tip: |
| </ | </ | ||
| < | < | ||
git/correcting-git-commits.txt · Last modified: by odefta
