2020-10-27 11:55:47 +01:00
[
2021-02-18 17:29:48 +01:00
{
2021-09-14 15:16:20 +02:00
"id" : "init" ,
"command" : "git init" ,
2022-08-18 14:40:30 +02:00
"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] ." ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"description" : "Create a new file."
2021-02-18 17:29:48 +01:00
} ,
{
"id" : "file-delete" ,
"command" : "rm [file]" ,
2022-08-18 14:40:30 +02:00
"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]" ,
2022-08-18 14:40:30 +02:00
"description" : "Rename a file."
2021-02-18 17:29:48 +01:00
} ,
{
"id" : "file-copy" ,
"command" : "cp [file] [string]" ,
2022-08-18 14:40:30 +02:00
"description" : "Make a copy of a file."
2021-02-18 17:29:48 +01:00
}
2020-10-27 11:55:47 +01:00
]