Skip to content

Instantly share code, notes, and snippets.

@gertcuykens
Last active May 9, 2020 08:12
Show Gist options
  • Save gertcuykens/c3079b2b1239e2e8c00f5ef4b8c1fa6d to your computer and use it in GitHub Desktop.
Save gertcuykens/c3079b2b1239e2e8c00f5ef4b8c1fa6d to your computer and use it in GitHub Desktop.
Git Live

.vscode/live.sh

#!/bin/zsh
# git branch live
# git checkout live
# git push --set-upstream origin live
git commit -am live
git push
# git rebase master
# git checkout master
# git merge --squash live
# git push origin :live

.vscode/tasks.json

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Git Live",
      "type": "shell",
      "command": ".vscode/live.sh",
      "args": [],
      "presentation": {
        "showReuseMessage": false,
        "clear": true,
        "reveal": "never",
        "panel": "shared"
      },
      "problemMatcher": []
    }
 }

keybindings

[
 {
   "key": "ctrl+shift+s",
   "command": "workbench.action.tasks.runTask",
   "args": "Git Live",
   "when": "editorTextFocus"
 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment