Horje
change git commit message Code Example
change git commit message
git commit --amend -m "New commit message"
git amend commit message
git checkout branch_name
git commit --amend -m "Modified message"
# if previous commit is not pushed yet
git push
# or if previous comment was pushed in a previous commit:
git push --force-with-lease branch_name
github change last commit message
# for the most recent commit
git commit --amend -m "changed commits"
git push -f
# for n older commits
git rebase -i HEAD~n
# use r for reword to edit older commits
# removing a line means THAT COMMIT WILL BE LOST. 
git rebase --continue
# solve conflicts if exist
git push -f
# git push --force-with-lease origin <branch> is safer




Shell

Related
github show current branch Code Example github show current branch Code Example
what brach am i in git Code Example what brach am i in git Code Example
mui install Code Example mui install Code Example
what branch git Code Example what branch git Code Example
install sdl2 linux Code Example install sdl2 linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14