oh-my-git/resources/cards.json

183 lines
5.9 KiB
JSON
Raw Normal View History

[
2021-02-18 17:29:48 +01:00
{
2021-09-14 15:16:20 +02:00
"id": "init",
"command": "git init",
"description": "Drag this card into the empty space above to initialize the time machine!"
2021-02-18 17:29:48 +01:00
},
{
"id": "clone",
2021-09-14 15:16:20 +02:00
"command": "git clone ../[remote] .",
"description": "Create your own copy of someone else's repo."
2021-02-18 17:29:48 +01:00
},
{
"id": "config-name",
2021-09-14 15:16:20 +02:00
"command": "git config --global user.name [string]",
"description": "Set your name.\n\n(Will not change anything outside of this game.)"
2021-02-18 17:29:48 +01:00
},
{
"id": "config-email",
2021-09-14 15:16:20 +02:00
"command": "git config --global user.email [string]",
"description": "Set your email address."
2021-02-18 17:29:48 +01:00
},
{
"id": "checkout",
2021-09-14 15:16:20 +02:00
"command": "git checkout [commit, ref]",
"description": "Drag this card to a commit or to a branch to travel to it!"
2021-02-18 17:29:48 +01:00
},
{
"id": "checkout-file",
2021-09-14 15:16:20 +02:00
"command": "git checkout [file]",
"description": "Reset changes in a local file."
2021-02-18 17:29:48 +01:00
},
{
"id": "checkout-from",
2021-09-14 15:16:20 +02:00
"command": "git checkout [commit, ref] [file]",
"description": "Get the file contents from the specified commits, and reset both the working directory, as well as the index, to it."
2021-02-18 17:29:48 +01:00
},
{
2021-09-14 15:16:20 +02:00
"id": "commit-a",
"command": "git commit -a",
"description": "Make a new commit, after automatically adding all changes to the index.\nYou'll be asked to enter a short description of what you changed."
2021-02-18 17:29:48 +01:00
},
{
2021-09-14 15:16:20 +02:00
"id": "commit-auto",
"command": "git add .; git commit",
"description": "Make a new commit containing your current environment! Type in a description of what changed!"
2021-02-18 17:29:48 +01:00
},
{
"id": "merge",
2021-09-14 15:16:20 +02:00
"command": "git merge [commit, ref]",
"description": "Merge the specified timeline into yours. If necessary, will create a merge commit."
2021-02-18 17:29:48 +01:00
},
{
"id": "merge-abort",
2021-09-14 15:16:20 +02:00
"command": "git merge --abort",
"description": "Abort the current merge attempt, and reconstruct the previous state."
2021-02-18 17:29:48 +01:00
},
{
"id": "rebase",
2021-09-14 15:16:20 +02:00
"command": "git rebase [commit]",
"description": "Put the events in your current timeline on top of the specified one."
2021-02-18 17:29:48 +01:00
},
{
"id": "pull",
2021-09-14 15:16:20 +02:00
"command": "git pull",
"description": "Get someone else's version of the current timeline, and try to merge it into yours."
2021-02-18 17:29:48 +01:00
},
{
"id": "fetch",
2021-09-14 15:16:20 +02:00
"command": "git fetch [remote]",
"description": "Get a someone else's version of the current timeline."
2021-02-18 17:29:48 +01:00
},
{
"id": "push",
2021-09-14 15:16:20 +02:00
"command": "git push",
"description": "Give the current timeline to someone else."
2021-02-18 17:29:48 +01:00
},
{
"id": "rebase-interactive",
2021-09-14 15:16:20 +02:00
"command": "git rebase -i [commit]",
"description": "Make changes to the events in your current timeline, back to the commit you drag this to."
2021-02-18 17:29:48 +01:00
},
{
"id": "rebase-continue",
2021-09-14 15:16:20 +02:00
"command": "git rebase --continue",
"description": "Continue the current rebasing process."
2021-02-18 17:29:48 +01:00
},
{
"id": "reset-hard",
2021-09-14 15:16:20 +02:00
"command": "git reset --hard [commit]",
"description": "Move the branch you're on to the specified commit."
2021-02-18 17:29:48 +01:00
},
{
"id": "reset",
2021-09-14 15:16:20 +02:00
"command": "git reset [commit]",
"description": "Jump to the commit, and update the index. Keep the current environment."
2021-02-18 17:29:48 +01:00
},
{
"id": "reset-file",
2021-09-14 15:16:20 +02:00
"command": "git reset [file]",
"description": "Reset the index version of a file to the version in the commit you're on."
2021-02-18 17:29:48 +01:00
},
{
"id": "cherry-pick",
2021-09-14 15:16:20 +02:00
"command": "git cherry-pick [commit]",
"description": "Repeat the specified action on top of your current timeline."
2021-02-18 17:29:48 +01:00
},
{
"id": "revert",
2021-09-14 15:16:20 +02:00
"command": "git revert [commit]",
2021-05-15 04:58:01 +02:00
"description": "Make a new commit that reverts the changes of the specified commit."
2021-02-18 17:29:48 +01:00
},
{
"id": "bisect-start",
2021-09-14 15:16:20 +02:00
"command": "git bisect start",
"description": "Start looking for the commit where things got bad."
2021-02-18 17:29:48 +01:00
},
{
"id": "bisect-good",
2021-09-14 15:16:20 +02:00
"command": "git bisect good",
"description": "State that the current commit is good! When you're automatically transferred, keep playing the `good` and `bad` cards!"
2021-02-18 17:29:48 +01:00
},
{
"id": "bisect-bad",
2021-09-14 15:16:20 +02:00
"command": "git bisect bad",
"description": "State that the current commit is bad! When you're automatically transferred, keep playing the `good` and `bad` cards!"
2021-02-18 17:29:48 +01:00
},
{
"id": "add",
2021-09-14 15:16:20 +02:00
"command": "git add [file]",
"description": "Update the index version of the file to its current real content."
2021-02-18 17:29:48 +01:00
},
{
"id": "rm",
2021-09-14 15:16:20 +02:00
"command": "git rm [file]",
"description": "Delete a file both in the working directory, as well as the index."
2021-02-18 17:29:48 +01:00
},
{
2021-09-14 15:16:20 +02:00
"id": "commit",
"command": "git commit",
"description": "Make a commit from the current index."
2021-02-18 17:29:48 +01:00
},
{
"id": "show",
2021-09-14 15:16:20 +02:00
"command": "git show [commit]",
"description": "Show what changed in the commit."
2021-02-18 17:29:48 +01:00
},
{
"id": "branch",
2021-09-14 15:16:20 +02:00
"command": "git branch [string]",
"description": "Create a new branch at your current location."
2021-02-18 17:29:48 +01:00
},
{
"id": "branch-delete",
2021-09-14 15:16:20 +02:00
"command": "git branch -D [ref]",
"description": "Delete a branch."
2021-02-18 17:29:48 +01:00
},
{
"id": "reflog",
2021-09-14 15:16:20 +02:00
"command": "git reflog [ref, head]",
"description": "Display a log of where the ref pointed to in the past."
2021-02-18 17:29:48 +01:00
},
{
"id": "file-new",
"command": "touch [string]",
"description": "Create a new file."
2021-02-18 17:29:48 +01:00
},
{
"id": "file-delete",
"command": "rm [file]",
"description": "Delete a file."
2021-02-18 17:29:48 +01:00
},
{
2021-09-14 15:16:20 +02:00
"id": "file-rename",
2021-02-18 17:29:48 +01:00
"command": "mv [file] [string]",
"description": "Rename a file."
2021-02-18 17:29:48 +01:00
},
{
"id": "file-copy",
"command": "cp [file] [string]",
"description": "Make a copy of a file."
2021-02-18 17:29:48 +01:00
}
]