conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Change the committer and author of a commit via the `git-blame-someone-else` command"
},
{
"from": "gpt",
"value": "`git blame-someone-else \"{{author <someone@example.com>}}\" {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git branch`."
},
{
"from": "gpt",
"value": "Main Git command for working with branches.\nMore information: <https://git-scm.com/docs/git-branch>.\n"
}
] |
[
{
"from": "human",
"value": "List all branches (local and remote; the current branch is highlighted by `*`) via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch {{[-a|--all]}}`"
}
] |
[
{
"from": "human",
"value": "List which branches include a specific Git commit in their history via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch {{[-a|--all]}} --contains {{commit_hash}}`"
}
] |
[
{
"from": "human",
"value": "Show the name of the current branch via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch --show-current`"
}
] |
[
{
"from": "human",
"value": "Create new branch based on the current commit via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Create new branch based on a specific commit via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch {{branch_name}} {{commit_hash}}`"
}
] |
[
{
"from": "human",
"value": "Rename a branch (you must switch to a different branch before doing this) via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch {{[-m|--move]}} {{old_branch_name}} {{new_branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Delete a local branch (you must switch to a different branch before doing this) via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git branch {{[-d|--delete]}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Delete a remote branch via the `git-branch` command"
},
{
"from": "gpt",
"value": "`git push {{remote_name}} {{[-d|--delete]}} {{remote_branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git browse-ci`."
},
{
"from": "gpt",
"value": "Open the current `git` repository's CI website in the default web browser.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-browse-ci>.\n"
}
] |
[
{
"from": "human",
"value": "Open the current repository's CI configuration on its upstream website via the `git-browse-ci` command"
},
{
"from": "gpt",
"value": "`git browse-ci`"
}
] |
[
{
"from": "human",
"value": "Open the current repository's CI configuration on its upstream website for a specific remote via the `git-browse-ci` command"
},
{
"from": "gpt",
"value": "`git browse-ci {{remote}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git browse`."
},
{
"from": "gpt",
"value": "View an upstream repository in the default browser.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-browse>.\n"
}
] |
[
{
"from": "human",
"value": "Open the first upstream in the default browser via the `git-browse` command"
},
{
"from": "gpt",
"value": "`git browse`"
}
] |
[
{
"from": "human",
"value": "Open a specific upstream in the default browser via the `git-browse` command"
},
{
"from": "gpt",
"value": "`git browse {{upstream}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git brv`."
},
{
"from": "gpt",
"value": "Print a list of branches, sorted by last commit date.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-brv>.\n"
}
] |
[
{
"from": "human",
"value": "List each branch showing date, latest commit hash and message via the `git-brv` command"
},
{
"from": "gpt",
"value": "`git brv`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git bug`."
},
{
"from": "gpt",
"value": "A distributed bug tracker that uses Git's internal storage, so no files are added in your project.\nYou may submit your problems to the same Git remote you use to interact with others, much like commits and bran... |
[
{
"from": "human",
"value": "Create a new identity via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug user create`"
}
] |
[
{
"from": "human",
"value": "Create a new bug via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug add`"
}
] |
[
{
"from": "human",
"value": "Push a new bug entry to a remote via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug push`"
}
] |
[
{
"from": "human",
"value": "Pull for updates via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug pull`"
}
] |
[
{
"from": "human",
"value": "List existing bugs via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug ls`"
}
] |
[
{
"from": "human",
"value": "Filter and sort bugs using a query via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug ls \"{{status}}:{{open}} {{sort}}:{{edit}}\"`"
}
] |
[
{
"from": "human",
"value": "Search for bugs by text content via the `git-bug` command"
},
{
"from": "gpt",
"value": "`git bug ls \"{{search_query}}\" baz`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git bugreport`."
},
{
"from": "gpt",
"value": "Captures debug information from the system and user, generating a text file to aid in the reporting of a bug in Git.\nMore information: <https://git-scm.com/docs/git-bugreport>.\n"
}
] |
[
{
"from": "human",
"value": "Create a new bug report file in the current directory via the `git-bugreport` command"
},
{
"from": "gpt",
"value": "`git bugreport`"
}
] |
[
{
"from": "human",
"value": "Create a new bug report file in the specified directory, creating it if it does not exist via the `git-bugreport` command"
},
{
"from": "gpt",
"value": "`git bugreport {{[-o|--output-directory]}} {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Create a new bug report file with the specified filename suffix in `strftime` format via the `git-bugreport` command"
},
{
"from": "gpt",
"value": "`git bugreport {{[-s|--suffix]}} {{%m%d%y}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git bulk`."
},
{
"from": "gpt",
"value": "Execute operations on multiple Git repositories.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-bulk>.\n"
}
] |
[
{
"from": "human",
"value": "Register the current directory as a workspace via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --addcurrent {{workspace_name}}`"
}
] |
[
{
"from": "human",
"value": "Register a workspace for bulk operations via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/repository}}`"
}
] |
[
{
"from": "human",
"value": "Clone a repository inside a specific directory, then register the repository as a workspace via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/parent_directory}} --from {{remote_repository_locatio... |
[
{
"from": "human",
"value": "Clone repositories from a newline-separated list of remote locations, then register them as workspaces via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --addworkspace {{workspace_name}} {{/path/to/root/directory}} --from {{/path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "List all registered workspaces via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --listall`"
}
] |
[
{
"from": "human",
"value": "Run a Git command on the repositories of the current workspace via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk {{command}} {{command_arguments}}`"
}
] |
[
{
"from": "human",
"value": "Remove a specific workspace via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --removeworkspace {{workspace_name}}`"
}
] |
[
{
"from": "human",
"value": "Remove all workspaces via the `git-bulk` command"
},
{
"from": "gpt",
"value": "`git bulk --purge`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git bundle`."
},
{
"from": "gpt",
"value": "Package objects and references into an archive.\nMore information: <https://git-scm.com/docs/git-bundle>.\n"
}
] |
[
{
"from": "human",
"value": "Create a bundle file that contains all objects and references of a specific branch via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git bundle create {{path/to/file.bundle}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Create a bundle file of all branches via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git bundle create {{path/to/file.bundle}} --all`"
}
] |
[
{
"from": "human",
"value": "Create a bundle file of the last 5 commits of the current branch via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git bundle create {{path/to/file.bundle}} -5 {{HEAD}}`"
}
] |
[
{
"from": "human",
"value": "Create a bundle file of the latest 7 days via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git bundle create {{path/to/file.bundle}} --since 7.days {{HEAD}}`"
}
] |
[
{
"from": "human",
"value": "Verify that a bundle file is valid and can be applied to the current repository via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git bundle verify {{path/to/file.bundle}}`"
}
] |
[
{
"from": "human",
"value": "Print to `stdout` the list of references contained in a bundle via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git bundle unbundle {{path/to/file.bundle}}`"
}
] |
[
{
"from": "human",
"value": "Unbundle a specific branch from a bundle file into the current repository via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git pull {{path/to/file.bundle}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Create a new repository from a bundle via the `git-bundle` command"
},
{
"from": "gpt",
"value": "`git clone {{path/to/file.bundle}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git cat-file`."
},
{
"from": "gpt",
"value": "Provide content or type and size information for Git repository objects.\nMore information: <https://git-scm.com/docs/git-cat-file>.\n"
}
] |
[
{
"from": "human",
"value": "Get the [s]ize of the HEAD commit in bytes via the `git-cat-file` command"
},
{
"from": "gpt",
"value": "`git cat-file -s HEAD`"
}
] |
[
{
"from": "human",
"value": "Get the [t]ype (blob, tree, commit, tag) of a given Git object via the `git-cat-file` command"
},
{
"from": "gpt",
"value": "`git cat-file -t {{8c442dc3}}`"
}
] |
[
{
"from": "human",
"value": "Pretty-[p]rint the contents of a given Git object based on its type via the `git-cat-file` command"
},
{
"from": "gpt",
"value": "`git cat-file -p {{HEAD~2}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git changelog`."
},
{
"from": "gpt",
"value": "Generate a changelog report from repository commits and tags.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-changelog>.\n"
}
] |
[
{
"from": "human",
"value": "Update existing file or create a new `History.md` file with the commit messages since the latest Git tag via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog`"
}
] |
[
{
"from": "human",
"value": "List commits from the current version via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog --list`"
}
] |
[
{
"from": "human",
"value": "List a range of commits from the tag named `2.1.0` to now via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog --list --start-tag {{2.1.0}}`"
}
] |
[
{
"from": "human",
"value": "List pretty formatted range of commits between the tag `0.5.0` and the tag `1.0.0` via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog --start-tag {{0.5.0}} --final-tag {{1.0.0}}`"
}
] |
[
{
"from": "human",
"value": "List pretty formatted range of commits between the commit `0b97430` and the tag `1.0.0` via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog --start-commit {{0b97430}} --final-tag {{1.0.0}}`"
}
] |
[
{
"from": "human",
"value": "Specify `CHANGELOG.md` as the output file via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog {{CHANGELOG.md}}`"
}
] |
[
{
"from": "human",
"value": "Replace contents of current changelog file entirely via the `git-changelog` command"
},
{
"from": "gpt",
"value": "`git changelog --prune-old`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git check-attr`."
},
{
"from": "gpt",
"value": "For every pathname, list if each attribute is unspecified, set, or unset as a gitattribute on that pathname.\nMore information: <https://git-scm.com/docs/git-check-attr>.\n"
}
] |
[
{
"from": "human",
"value": "Check the values of all attributes on a file via the `git-check-attr` command"
},
{
"from": "gpt",
"value": "`git check-attr --all {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Check the value of a specific attribute on a file via the `git-check-attr` command"
},
{
"from": "gpt",
"value": "`git check-attr {{attribute}} {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Check the values of all attributes on specific files via the `git-check-attr` command"
},
{
"from": "gpt",
"value": "`git check-attr --all {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Check the value of a specific attribute on one or more files via the `git-check-attr` command"
},
{
"from": "gpt",
"value": "`git check-attr {{attribute}} {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git check-ignore`."
},
{
"from": "gpt",
"value": "Analyze and debug Git ignore/exclude (\".gitignore\") files.\nMore information: <https://git-scm.com/docs/git-check-ignore>.\n"
}
] |
[
{
"from": "human",
"value": "Check whether a file or directory is ignored via the `git-check-ignore` command"
},
{
"from": "gpt",
"value": "`git check-ignore {{path/to/file_or_directory}}`"
}
] |
[
{
"from": "human",
"value": "Check whether multiple files or directories are ignored via the `git-check-ignore` command"
},
{
"from": "gpt",
"value": "`git check-ignore {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Use pathnames, one per line, from `stdin` via the `git-check-ignore` command"
},
{
"from": "gpt",
"value": "`git check-ignore --stdin < {{path/to/file_list}}`"
}
] |
[
{
"from": "human",
"value": "Do not check the index (used to debug why paths were tracked and not ignored) via the `git-check-ignore` command"
},
{
"from": "gpt",
"value": "`git check-ignore --no-index {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Include details about the matching pattern for each path via the `git-check-ignore` command"
},
{
"from": "gpt",
"value": "`git check-ignore --verbose {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git check-mailmap`."
},
{
"from": "gpt",
"value": "Show canonical names and email addresses of contacts.\nMore information: <https://git-scm.com/docs/git-check-mailmap>.\n"
}
] |
[
{
"from": "human",
"value": "Look up the canonical name associated with an email address via the `git-check-mailmap` command"
},
{
"from": "gpt",
"value": "`git check-mailmap \"<{{email@example.com}}>\"`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git checkout-index`."
},
{
"from": "gpt",
"value": "Copy files from the index to the working tree.\nMore information: <https://git-scm.com/docs/git-checkout-index>.\n"
}
] |
[
{
"from": "human",
"value": "Restore any files deleted since the last commit via the `git-checkout-index` command"
},
{
"from": "gpt",
"value": "`git checkout-index --all`"
}
] |
[
{
"from": "human",
"value": "Restore any files deleted or changed since the last commit via the `git-checkout-index` command"
},
{
"from": "gpt",
"value": "`git checkout-index --all --force`"
}
] |
[
{
"from": "human",
"value": "Restore any files changed since the last commit, ignoring any files that were deleted via the `git-checkout-index` command"
},
{
"from": "gpt",
"value": "`git checkout-index --all --force --no-create`"
}
] |
[
{
"from": "human",
"value": "Export a copy of the entire tree at the last commit to the specified directory (the trailing slash is important) via the `git-checkout-index` command"
},
{
"from": "gpt",
"value": "`git checkout-index --all --force --prefix={{path/to/export_directory/}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git checkout`."
},
{
"from": "gpt",
"value": "Checkout a branch or paths to the working tree.\nMore information: <https://git-scm.com/docs/git-checkout>.\n"
}
] |
[
{
"from": "human",
"value": "Create and switch to a new branch via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout -b {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references) via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout -b {{branch_name}} {{reference}}`"
}
] |
[
{
"from": "human",
"value": "Switch to an existing local branch via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Switch to the previously checked out branch via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout -`"
}
] |
[
{
"from": "human",
"value": "Switch to an existing remote branch via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout --track {{remote_name}}/{{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Discard all unstaged changes in the current directory (see `git reset` for more undo-like commands) via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout .`"
}
] |
[
{
"from": "human",
"value": "Discard unstaged changes to a given file via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Replace a file in the current directory with the version of it committed in a given branch via the `git-checkout` command"
},
{
"from": "gpt",
"value": "`git checkout {{branch_name}} -- {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git check-ref-format`."
},
{
"from": "gpt",
"value": "Check if a reference name is acceptable, and exit with a non-zero status if it is not.\nMore information: <https://git-scm.com/docs/git-check-ref-format>.\n"
}
] |
[
{
"from": "human",
"value": "Check the format of the specified reference name via the `git-check-ref-format` command"
},
{
"from": "gpt",
"value": "`git check-ref-format {{refs/head/refname}}`"
}
] |
[
{
"from": "human",
"value": "Print the name of the last branch checked out via the `git-check-ref-format` command"
},
{
"from": "gpt",
"value": "`git check-ref-format --branch @{-1}`"
}
] |
[
{
"from": "human",
"value": "Normalize a refname via the `git-check-ref-format` command"
},
{
"from": "gpt",
"value": "`git check-ref-format --normalize {{refs/head/refname}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git cherry`."
},
{
"from": "gpt",
"value": "Find commits that have yet to be applied upstream.\nMore information: <https://git-scm.com/docs/git-cherry>.\n"
}
] |
[
{
"from": "human",
"value": "Show commits (and their messages) with equivalent commits upstream via the `git-cherry` command"
},
{
"from": "gpt",
"value": "`git cherry {{[-v|--verbose]}}`"
}
] |
[
{
"from": "human",
"value": "Specify a different upstream and topic branch via the `git-cherry` command"
},
{
"from": "gpt",
"value": "`git cherry {{origin}} {{topic}}`"
}
] |
[
{
"from": "human",
"value": "Limit commits to those within a given limit via the `git-cherry` command"
},
{
"from": "gpt",
"value": "`git cherry {{origin}} {{topic}} {{base}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git cherry-pick`."
},
{
"from": "gpt",
"value": "Apply the changes introduced by existing commits to the current branch.\nTo apply changes to another branch, first use `git checkout` to switch to the desired branch.\nMore information: <https://git-scm.... |
[
{
"from": "human",
"value": "Apply a commit to the current branch via the `git-cherry-pick` command"
},
{
"from": "gpt",
"value": "`git cherry-pick {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Apply a range of commits to the current branch (see also `git rebase --onto`) via the `git-cherry-pick` command"
},
{
"from": "gpt",
"value": "`git cherry-pick {{start_commit}}~..{{end_commit}}`"
}
] |
[
{
"from": "human",
"value": "Apply multiple (non-sequential) commits to the current branch via the `git-cherry-pick` command"
},
{
"from": "gpt",
"value": "`git cherry-pick {{commit1 commit2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Add the changes of a commit to the working directory, without creating a commit via the `git-cherry-pick` command"
},
{
"from": "gpt",
"value": "`git cherry-pick --no-commit {{commit}}`"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.