Horje
git edit last commit message Code Example
change git commit message
git commit --amend -m "New commit message"
git edit last commit message
# with file changes
git commit --amend -m "Commit Message"

# without file changes, update only commit message
git commit --amend -m "Updated Commit Message" --no-edit
change message from last pushed commit
git commit --amend
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
bash check diff starting at specific line Code Example bash check diff starting at specific line Code Example
how to close serveice on perticular port number Code Example how to close serveice on perticular port number Code Example
pull changes from dev to remote ranch without merging branch Code Example pull changes from dev to remote ranch without merging branch Code Example
almofire  pod install Code Example almofire pod install Code Example
mdi 5.6.55 Code Example mdi 5.6.55 Code Example

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