https://github.com/naugtur/git-livecoding
a tool to show commits from history as if they were about to be made
https://github.com/naugtur/git-livecoding
Last synced: 6 months ago
JSON representation
a tool to show commits from history as if they were about to be made
- Host: GitHub
- URL: https://github.com/naugtur/git-livecoding
- Owner: naugtur
- License: mit
- Created: 2019-08-22T21:40:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-26T08:35:49.000Z (almost 3 years ago)
- Last Synced: 2025-02-15T07:44:05.008Z (8 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-livecoding
a tool to show commits from history as if they were about to be made## Usage
`gitnext` skips one commit forward and displays it as unstaged changes on a detached head
`gitback` goes back one commit and does the same### Livecoding without typing
Create history to go through step-by-step
Go through the livecoding without typing the code and risking typos
Still be able to show changes step by step in your IDE#### In terminal
```bash
git checkout -f INITIAL_REF_TO_START_WITH
gitnext
# show the code as if the next commit was written but not committed yet
gitnext
# switch to a newer commit and display it like it's just been written
# someone asked a question about the previous state, go back
gitback
# return to clean state
git checkout -f main```
#### VSCode tasks
- Copy the tasks and scripts from `.vscode` to your project's `.vscode`
- Set these keybindings for convenience```
{
"key": "ctrl+shift+.",
"command": "workbench.action.tasks.runTask",
"args": "gitnext"
},
{
"key": "ctrl+shift+,",
"command": "workbench.action.tasks.runTask",
"args": "gitback"
},
```