conversations
listlengths
2
2
[ { "from": "human", "value": "Continue a rebase that was interrupted by a merge failure, after editing conflicting files via the `git-rebase` command" }, { "from": "gpt", "value": "`git rebase --continue`" } ]
[ { "from": "human", "value": "Continue a rebase that was paused due to merge conflicts, by skipping the conflicted commit via the `git-rebase` command" }, { "from": "gpt", "value": "`git rebase --skip`" } ]
[ { "from": "human", "value": "Abort a rebase in progress (e.g. if it is interrupted by a merge conflict) via the `git-rebase` command" }, { "from": "gpt", "value": "`git rebase --abort`" } ]
[ { "from": "human", "value": "Move part of the current branch onto a new base, providing the old base to start from via the `git-rebase` command" }, { "from": "gpt", "value": "`git rebase --onto {{new_base}} {{old_base}}`" } ]
[ { "from": "human", "value": "Reapply the last 5 commits in-place, stopping to allow them to be reordered, omitted, combined or modified via the `git-rebase` command" }, { "from": "gpt", "value": "`git rebase {{[-i|--interactive]}} {{HEAD~5}}`" } ]
[ { "from": "human", "value": "Auto-resolve any conflicts by favoring the working branch version (`theirs` keyword has reversed meaning in this case) via the `git-rebase` command" }, { "from": "gpt", "value": "`git rebase {{[-X|--strategy-option]}} theirs {{branch_name}}`" } ]
[ { "from": "human", "value": "Tell me about `git rebase-patch`." }, { "from": "gpt", "value": "Find the commit the patch applies to and do a rebase.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-rebase-patch>.\n" } ]
[ { "from": "human", "value": "Find the commit the patch applies to and do a rebase via the `git-rebase-patch` command" }, { "from": "gpt", "value": "`git rebase-patch {{patch_file}}`" } ]
[ { "from": "human", "value": "Tell me about `git reflog`." }, { "from": "gpt", "value": "Show a log of changes to local references like HEAD, branches or tags.\nMore information: <https://git-scm.com/docs/git-reflog>.\n" } ]
[ { "from": "human", "value": "Show the reflog for HEAD via the `git-reflog` command" }, { "from": "gpt", "value": "`git reflog`" } ]
[ { "from": "human", "value": "Show the reflog for a given branch via the `git-reflog` command" }, { "from": "gpt", "value": "`git reflog {{branch_name}}`" } ]
[ { "from": "human", "value": "Show only the 5 latest entries in the reflog via the `git-reflog` command" }, { "from": "gpt", "value": "`git reflog {{[-n|--max-count]}} 5`" } ]
[ { "from": "human", "value": "Tell me about `git release`." }, { "from": "gpt", "value": "Create a Git tag for a release.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-release>.\n" } ]
[ { "from": "human", "value": "Create and push a release via the `git-release` command" }, { "from": "gpt", "value": "`git release {{tag_name}}`" } ]
[ { "from": "human", "value": "Create and push a signed release via the `git-release` command" }, { "from": "gpt", "value": "`git release {{tag_name}} -s`" } ]
[ { "from": "human", "value": "Create and push a release with a message via the `git-release` command" }, { "from": "gpt", "value": "`git release {{tag_name}} -m \"{{message}}\"`" } ]
[ { "from": "human", "value": "Tell me about `git remote`." }, { "from": "gpt", "value": "Manage set of tracked repositories (\"remotes\").\nMore information: <https://git-scm.com/docs/git-remote>.\n" } ]
[ { "from": "human", "value": "List existing remotes with their names and URLs via the `git-remote` command" }, { "from": "gpt", "value": "`git remote {{[-v|--verbose]}}`" } ]
[ { "from": "human", "value": "Show information about a remote via the `git-remote` command" }, { "from": "gpt", "value": "`git remote show {{remote_name}}`" } ]
[ { "from": "human", "value": "Add a remote via the `git-remote` command" }, { "from": "gpt", "value": "`git remote add {{remote_name}} {{remote_url}}`" } ]
[ { "from": "human", "value": "Change the URL of a remote (use `--add` to keep the existing URL) via the `git-remote` command" }, { "from": "gpt", "value": "`git remote set-url {{remote_name}} {{new_url}}`" } ]
[ { "from": "human", "value": "Show the URL of a remote via the `git-remote` command" }, { "from": "gpt", "value": "`git remote get-url {{remote_name}}`" } ]
[ { "from": "human", "value": "Remove a remote via the `git-remote` command" }, { "from": "gpt", "value": "`git remote remove {{remote_name}}`" } ]
[ { "from": "human", "value": "Rename a remote via the `git-remote` command" }, { "from": "gpt", "value": "`git remote rename {{old_name}} {{new_name}}`" } ]
[ { "from": "human", "value": "Tell me about `git rename-branch`." }, { "from": "gpt", "value": "Rename a Git branch.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-branch>.\n" } ]
[ { "from": "human", "value": "Rename the branch you are currently on via the `git-rename-branch` command" }, { "from": "gpt", "value": "`git rename-branch {{new_branch_name}}`" } ]
[ { "from": "human", "value": "Rename a specific branch via the `git-rename-branch` command" }, { "from": "gpt", "value": "`git rename-branch {{old_branch_name}} {{new_branch_name}}`" } ]
[ { "from": "human", "value": "Tell me about `git rename-remote`." }, { "from": "gpt", "value": "Change remote for pulling and pushing.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-remote>.\n" } ]
[ { "from": "human", "value": "Change the upstream remote to origin via the `git-rename-remote` command" }, { "from": "gpt", "value": "`git rename-remote {{upstream}} {{origin}}`" } ]
[ { "from": "human", "value": "Tell me about `git rename-tag`." }, { "from": "gpt", "value": "Rename a Git tag.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-rename-tag>.\n" } ]
[ { "from": "human", "value": "Rename an existing Git tag locally and remotely via the `git-rename-tag` command" }, { "from": "gpt", "value": "`git rename-tag {{old_tag_name}} {{new_tag_name}}`" } ]
[ { "from": "human", "value": "Tell me about `git repack`." }, { "from": "gpt", "value": "Pack unpacked objects in a Git repository.\nMore information: <https://git-scm.com/docs/git-repack>.\n" } ]
[ { "from": "human", "value": "Pack unpacked objects in the current directory via the `git-repack` command" }, { "from": "gpt", "value": "`git repack`" } ]
[ { "from": "human", "value": "Also remove redundant objects after packing via the `git-repack` command" }, { "from": "gpt", "value": "`git repack -d`" } ]
[ { "from": "human", "value": "Tell me about `git replace`." }, { "from": "gpt", "value": "Create, list, and delete refs to replace objects.\nMore information: <https://git-scm.com/docs/git-replace>.\n" } ]
[ { "from": "human", "value": "Replace any commit with a different one, leaving other commits unchanged via the `git-replace` command" }, { "from": "gpt", "value": "`git replace {{object}} {{replacement}}`" } ]
[ { "from": "human", "value": "Delete existing replace refs for the given objects via the `git-replace` command" }, { "from": "gpt", "value": "`git replace --delete {{object}}`" } ]
[ { "from": "human", "value": "Edit an object’s content interactively via the `git-replace` command" }, { "from": "gpt", "value": "`git replace --edit {{object}}`" } ]
[ { "from": "human", "value": "Tell me about `git repl`." }, { "from": "gpt", "value": "Git REPL (read-evaluate-print-loop) - an interactive Git shell.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-repl>.\n" } ]
[ { "from": "human", "value": "Start an interactive Git shell via the `git-repl` command" }, { "from": "gpt", "value": "`git repl`" } ]
[ { "from": "human", "value": "Run a Git command while in the interactive Git shell via the `git-repl` command" }, { "from": "gpt", "value": "`{{git_subcommand}} {{command_arguments}}`" } ]
[ { "from": "human", "value": "Run an external (non-Git) command while in the interactive Git shell via the `git-repl` command" }, { "from": "gpt", "value": "`!{{command}} {{command_arguments}}`" } ]
[ { "from": "human", "value": "Exit the interactive Git shell (or press `<Ctrl d>`) via the `git-repl` command" }, { "from": "gpt", "value": "`exit`" } ]
[ { "from": "human", "value": "Tell me about `git request-pull`." }, { "from": "gpt", "value": "Generate a request asking the upstream project to pull changes into its tree.\nMore information: <https://git-scm.com/docs/git-request-pull>.\n" } ]
[ { "from": "human", "value": "Produce a request summarizing the changes between the v1.1 release and a specified branch via the `git-request-pull` command" }, { "from": "gpt", "value": "`git request-pull {{v1.1}} {{https://example.com/project}} {{branch_name}}`" } ]
[ { "from": "human", "value": "Produce a request summarizing the changes between the v0.1 release on the `foo` branch and the local `bar` branch via the `git-request-pull` command" }, { "from": "gpt", "value": "`git request-pull {{v0.1}} {{https://example.com/project}} {{foo:bar}}`" } ]
[ { "from": "human", "value": "Tell me about `git reset-file`." }, { "from": "gpt", "value": "Revert a file to HEAD or a commit.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-reset-file>.\n" } ]
[ { "from": "human", "value": "Reset a file to HEAD via the `git-reset-file` command" }, { "from": "gpt", "value": "`git reset-file {{path/to/file}}`" } ]
[ { "from": "human", "value": "Reset a file to a specific commit via the `git-reset-file` command" }, { "from": "gpt", "value": "`git reset-file {{path/to/file}} {{commit_hash}}`" } ]
[ { "from": "human", "value": "Tell me about `git reset`." }, { "from": "gpt", "value": "Undo commits or unstage changes, by resetting the current Git HEAD to the specified state.\nIf a path is passed, it works as \"unstage\"; if a commit hash or branch is passed, it works as \"uncommit\".\nMore i...
[ { "from": "human", "value": "Unstage everything via the `git-reset` command" }, { "from": "gpt", "value": "`git reset`" } ]
[ { "from": "human", "value": "Unstage specific file(s) via the `git-reset` command" }, { "from": "gpt", "value": "`git reset {{path/to/file1 path/to/file2 ...}}`" } ]
[ { "from": "human", "value": "Interactively unstage portions of a file via the `git-reset` command" }, { "from": "gpt", "value": "`git reset --patch {{path/to/file}}`" } ]
[ { "from": "human", "value": "Undo the last commit, keeping its changes (and any further uncommitted changes) in the filesystem via the `git-reset` command" }, { "from": "gpt", "value": "`git reset HEAD~`" } ]
[ { "from": "human", "value": "Undo the last two commits, adding their changes to the index, i.e. staged for commit via the `git-reset` command" }, { "from": "gpt", "value": "`git reset --soft HEAD~2`" } ]
[ { "from": "human", "value": "Discard any uncommitted changes, staged or not (for only unstaged changes, use `git checkout`) via the `git-reset` command" }, { "from": "gpt", "value": "`git reset --hard`" } ]
[ { "from": "human", "value": "Reset the repository to a given commit, discarding committed, staged and uncommitted changes since then via the `git-reset` command" }, { "from": "gpt", "value": "`git reset --hard {{commit}}`" } ]
[ { "from": "human", "value": "Tell me about `git restore`." }, { "from": "gpt", "value": "Restore working tree files. Requires Git version 2.23+.\nSee also `git checkout` and `git reset`.\nMore information: <https://git-scm.com/docs/git-restore>.\n" } ]
[ { "from": "human", "value": "Restore an unstaged file to the staged version via the `git-restore` command" }, { "from": "gpt", "value": "`git restore {{path/to/file}}`" } ]
[ { "from": "human", "value": "Restore an unstaged file to the version of a specific commit via the `git-restore` command" }, { "from": "gpt", "value": "`git restore --source {{commit}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Discard all unstaged changes to tracked files via the `git-restore` command" }, { "from": "gpt", "value": "`git restore :/`" } ]
[ { "from": "human", "value": "Unstage a file via the `git-restore` command" }, { "from": "gpt", "value": "`git restore --staged {{path/to/file}}`" } ]
[ { "from": "human", "value": "Unstage all files via the `git-restore` command" }, { "from": "gpt", "value": "`git restore --staged :/`" } ]
[ { "from": "human", "value": "Discard all changes to files, both staged and unstaged via the `git-restore` command" }, { "from": "gpt", "value": "`git restore --worktree --staged :/`" } ]
[ { "from": "human", "value": "Interactively select sections of files to restore via the `git-restore` command" }, { "from": "gpt", "value": "`git restore --patch`" } ]
[ { "from": "human", "value": "Tell me about `git revert`." }, { "from": "gpt", "value": "Create new commits which reverse the effect of earlier ones.\nMore information: <https://git-scm.com/docs/git-revert>.\n" } ]
[ { "from": "human", "value": "Revert the most recent commit via the `git-revert` command" }, { "from": "gpt", "value": "`git revert {{HEAD}}`" } ]
[ { "from": "human", "value": "Revert the 5th last commit via the `git-revert` command" }, { "from": "gpt", "value": "`git revert HEAD~{{4}}`" } ]
[ { "from": "human", "value": "Revert a specific commit via the `git-revert` command" }, { "from": "gpt", "value": "`git revert {{0c01a9}}`" } ]
[ { "from": "human", "value": "Revert multiple commits via the `git-revert` command" }, { "from": "gpt", "value": "`git revert {{branch_name~5..branch_name~2}}`" } ]
[ { "from": "human", "value": "Don't create new commits, just change the working tree via the `git-revert` command" }, { "from": "gpt", "value": "`git revert {{[-n|--no-commit]}} {{0c01a9..9a1743}}`" } ]
[ { "from": "human", "value": "Cancel a Git revert after a merge conflict via the `git-revert` command" }, { "from": "gpt", "value": "`git revert --abort`" } ]
[ { "from": "human", "value": "Tell me about `git rev-list`." }, { "from": "gpt", "value": "List revisions (commits) in reverse chronological order.\nMore information: <https://git-scm.com/docs/git-rev-list>.\n" } ]
[ { "from": "human", "value": "List all commits on the current branch via the `git-rev-list` command" }, { "from": "gpt", "value": "`git rev-list {{HEAD}}`" } ]
[ { "from": "human", "value": "Print the latest commit that changed (add/edit/remove) a specific file on the current branch via the `git-rev-list` command" }, { "from": "gpt", "value": "`git rev-list {{[-n|--max-count]}} 1 HEAD -- {{path/to/file}}`" } ]
[ { "from": "human", "value": "List commits more recent than a specific date, on a specific branch via the `git-rev-list` command" }, { "from": "gpt", "value": "`git rev-list --since \"{{2019-12-01 00:00:00}}\" {{branch_name}}`" } ]
[ { "from": "human", "value": "List all merge commits on a specific commit via the `git-rev-list` command" }, { "from": "gpt", "value": "`git rev-list --merges {{commit}}`" } ]
[ { "from": "human", "value": "Print the number of commits since a specific tag via the `git-rev-list` command" }, { "from": "gpt", "value": "`git rev-list {{tag_name}}..HEAD --count`" } ]
[ { "from": "human", "value": "Tell me about `git rev-parse`." }, { "from": "gpt", "value": "Display metadata related to revisions.\nMore information: <https://git-scm.com/docs/git-rev-parse>.\n" } ]
[ { "from": "human", "value": "Get the commit hash of a branch via the `git-rev-parse` command" }, { "from": "gpt", "value": "`git rev-parse {{branch_name}}`" } ]
[ { "from": "human", "value": "Get the current branch name via the `git-rev-parse` command" }, { "from": "gpt", "value": "`git rev-parse --abbrev-ref {{HEAD}}`" } ]
[ { "from": "human", "value": "Get the absolute path to the root directory via the `git-rev-parse` command" }, { "from": "gpt", "value": "`git rev-parse --show-toplevel`" } ]
[ { "from": "human", "value": "Tell me about `git rm`." }, { "from": "gpt", "value": "Remove files from repository index and local filesystem.\nMore information: <https://git-scm.com/docs/git-rm>.\n" } ]
[ { "from": "human", "value": "Remove file from repository index and filesystem via the `git-rm` command" }, { "from": "gpt", "value": "`git rm {{path/to/file}}`" } ]
[ { "from": "human", "value": "Remove directory via the `git-rm` command" }, { "from": "gpt", "value": "`git rm -r {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Remove file from repository index but keep it untouched locally via the `git-rm` command" }, { "from": "gpt", "value": "`git rm --cached {{path/to/file}}`" } ]
[ { "from": "human", "value": "Tell me about `git root`." }, { "from": "gpt", "value": "Print the root directory of the current Git repository.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-root>.\n" } ]
[ { "from": "human", "value": "Print the absolute path of the current Git repository via the `git-root` command" }, { "from": "gpt", "value": "`git root`" } ]
[ { "from": "human", "value": "Print the current working directory relative to the root of the current Git repository via the `git-root` command" }, { "from": "gpt", "value": "`git root --relative`" } ]
[ { "from": "human", "value": "Tell me about `git rscp`." }, { "from": "gpt", "value": "Reverse `git scp` - copy files from the working directory of a remote repository to the current working tree.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#...
[ { "from": "human", "value": "Copy specific files from a remote via the `git-rscp` command" }, { "from": "gpt", "value": "`git rscp {{remote_name}} {{path/to/file1 path/to/file2 ...}}`" } ]
[ { "from": "human", "value": "Copy a specific directory from a remote via the `git-rscp` command" }, { "from": "gpt", "value": "`git rscp {{remote_name}} {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Tell me about `git scp`." }, { "from": "gpt", "value": "Copy files from the current working tree to the working directory of a remote repository.\nPart of `git-extras`. Uses `rsync` to transfer files.\nMore information: <https://github.com/tj/git-extras/blob/master/C...
[ { "from": "human", "value": "Copy unstaged files to a specific remote via the `git-scp` command" }, { "from": "gpt", "value": "`git scp {{remote_name}}`" } ]
[ { "from": "human", "value": "Copy staged and unstaged files to a remote via the `git-scp` command" }, { "from": "gpt", "value": "`git scp {{remote_name}} HEAD`" } ]
[ { "from": "human", "value": "Copy files that has been changed in the last commit and any staged or unstaged files to a remote via the `git-scp` command" }, { "from": "gpt", "value": "`git scp {{remote_name}} HEAD~1`" } ]
[ { "from": "human", "value": "Copy specific files to a remote via the `git-scp` command" }, { "from": "gpt", "value": "`git scp {{remote_name}} {{path/to/file1 path/to/file2 ...}}`" } ]
[ { "from": "human", "value": "Copy a specific directory to a remote via the `git-scp` command" }, { "from": "gpt", "value": "`git scp {{remote_name}} {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Tell me about `git secret`." }, { "from": "gpt", "value": "Stores private data inside a Git repository. Written in Bash.\nMore information: <https://github.com/sobolevn/git-secret>.\n" } ]
[ { "from": "human", "value": "Initialize `git-secret` in a local repository via the `git-secret` command" }, { "from": "gpt", "value": "`git secret init`" } ]