Run this command to get into your predefined git editor with your previous commit message in focus that you can edit and then save again.
git commit --amend --no-verify
To update a pushed commit you start rebasing from the commit before the commit you want change. This is tricky, although certainly possible.
git rebase -i [COMMIT_HASH]...pick my-commit-message > reword my-new-commit-message...git push --force
Sometimes you want easily browse the entire git history in your code editor or IDE. Run one of the following commands for easily accomplishing this.
git log | code -
git log | vim
You often might start out building on the master branch, but when it times to create a pr you need a separate branch. …
Are you building an app that needs to be snappy for its users? Then you should probably consider doing optimistic updates. This will greatly improve the customer experience and the overall feel of your app. It will also better mimic the experience you have on a native desktop app.
Optimistic updates are a way of updating data in your app. You generally want to have a local state inside of your app, and before making the HTTP request to update in the backend, you want to update the local state with the data you assume will be returned by the backend. …
I have been in charge of setting up a new frontend at work for a new project. …