https://github.com/pwildenhain/git-custom-commands
https://github.com/pwildenhain/git-custom-commands
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pwildenhain/git-custom-commands
- Owner: pwildenhain
- Created: 2022-07-20T19:28:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T17:39:08.000Z (over 2 years ago)
- Last Synced: 2025-03-29T14:14:13.225Z (6 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-custom-commands
## Commands
### `git done`
:hammer: Workflow: Working on a local branch, pushing to GitHub, and merging the PR. We want the updates to our main branch, and want to remove the clutter of the old local branch where we did all the work.
:memo: Steps:
1. Note the current branch
2. Note the main branch
3. Checkout the main branch
3. Pull any updates
4. Hard delete the previous branch### `git append`
:hammer: Workflow: We thought we had finished the work and pushed it to GitHub. But then we discover a typo, bug, etc and want to fix it, include it in the last commit and then force push the updates to GitHub.
:memo: Steps:
1. Add the most recent changes into the last commit cleanly
2. Force push to GitHub (`origin`)