conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Tell me about `git delete-branch`."
},
{
"from": "gpt",
"value": "Delete local and remote Git branches.\nPart of `git-extras`. If deleting the checked out branch, only the remote branch will be deleted.\nMore information: <https://github.com/tj/git-extras/blob/master... |
[
{
"from": "human",
"value": "Delete one or more local and remote Git branches via the `git-delete-branch` command"
},
{
"from": "gpt",
"value": "`git delete-branch {{branch_name1 branch_name2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git delete-merged-branches`."
},
{
"from": "gpt",
"value": "Delete branches that are listed in `git branch --merged` excluding master.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-delete-merged... |
[
{
"from": "human",
"value": "Delete merged branches via the `git-delete-merged-branches` command"
},
{
"from": "gpt",
"value": "`git delete-merged-branches`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git delete-squashed-branches`."
},
{
"from": "gpt",
"value": "Delete branches that have been \"squashed-merged\" into a specified branch and checkout. If no branch is specified, default to the currently checked out branch.\nPart of `git-extras`.\nMore ... |
[
{
"from": "human",
"value": "Delete all branches that were \"squash-merged\" into the current checked out branch via the `git-delete-squashed-branches` command"
},
{
"from": "gpt",
"value": "`git delete-squashed-branches`"
}
] |
[
{
"from": "human",
"value": "Delete all branches that were \"squash-merged\" into a specific branch via the `git-delete-squashed-branches` command"
},
{
"from": "gpt",
"value": "`git delete-squashed-branches {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git delete-submodule`."
},
{
"from": "gpt",
"value": "Delete a submodule from a `git` repository.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-delete-submodule>.\n"
}
] |
[
{
"from": "human",
"value": "Delete a specific submodule via the `git-delete-submodule` command"
},
{
"from": "gpt",
"value": "`git delete-submodule {{path/to/submodule}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git delete-tag`."
},
{
"from": "gpt",
"value": "Delete existing local and remote tags.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-delete-tag>.\n"
}
] |
[
{
"from": "human",
"value": "Delete a tag via the `git-delete-tag` command"
},
{
"from": "gpt",
"value": "`git delete-tag {{tag_version}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git delta`."
},
{
"from": "gpt",
"value": "List files that differ from another branch.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-delta>.\n"
}
] |
[
{
"from": "human",
"value": "List files from the current checked out branch that differ from the `main` branch via the `git-delta` command"
},
{
"from": "gpt",
"value": "`git delta {{main}}`"
}
] |
[
{
"from": "human",
"value": "List files from a specific branch that differ from another specific branch via the `git-delta` command"
},
{
"from": "gpt",
"value": "`git delta {{branch_1}} {{branch_2}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git describe`."
},
{
"from": "gpt",
"value": "Give an object a human-readable name based on an available ref.\nMore information: <https://git-scm.com/docs/git-describe>.\n"
}
] |
[
{
"from": "human",
"value": "Create a unique name for the current commit (the name contains the most recent annotated tag, the number of additional commits, and the abbreviated commit hash) via the `git-describe` command"
},
{
"from": "gpt",
"value": "`git describe`"
}
] |
[
{
"from": "human",
"value": "Create a name with 4 digits for the abbreviated commit hash via the `git-describe` command"
},
{
"from": "gpt",
"value": "`git describe --abbrev={{4}}`"
}
] |
[
{
"from": "human",
"value": "Generate a name with the tag reference path via the `git-describe` command"
},
{
"from": "gpt",
"value": "`git describe --all`"
}
] |
[
{
"from": "human",
"value": "Describe a Git tag via the `git-describe` command"
},
{
"from": "gpt",
"value": "`git describe {{v1.0.0}}`"
}
] |
[
{
"from": "human",
"value": "Create a name for the last commit of a given branch via the `git-describe` command"
},
{
"from": "gpt",
"value": "`git describe {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git diff-files`."
},
{
"from": "gpt",
"value": "Compare files using their sha1 hashes and modes.\nMore information: <https://git-scm.com/docs/git-diff-files>.\n"
}
] |
[
{
"from": "human",
"value": "Compare all changed files via the `git-diff-files` command"
},
{
"from": "gpt",
"value": "`git diff-files`"
}
] |
[
{
"from": "human",
"value": "Compare only specified files via the `git-diff-files` command"
},
{
"from": "gpt",
"value": "`git diff-files {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Show only the names of changed files via the `git-diff-files` command"
},
{
"from": "gpt",
"value": "`git diff-files --name-only`"
}
] |
[
{
"from": "human",
"value": "Output a summary of extended header information via the `git-diff-files` command"
},
{
"from": "gpt",
"value": "`git diff-files --summary`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git diff-index`."
},
{
"from": "gpt",
"value": "Compare the working directory with a commit or tree object.\nMore information: <https://git-scm.com/docs/git-diff-index>.\n"
}
] |
[
{
"from": "human",
"value": "Compare the working directory with a specific commit via the `git-diff-index` command"
},
{
"from": "gpt",
"value": "`git diff-index {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Compare a specific file or directory in working directory with a commit via the `git-diff-index` command"
},
{
"from": "gpt",
"value": "`git diff-index {{commit}} {{path/to/file_or_directory}}`"
}
] |
[
{
"from": "human",
"value": "Compare the working directory with the index (staging area) to check for staged changes via the `git-diff-index` command"
},
{
"from": "gpt",
"value": "`git diff-index --cached {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Suppress output and return an exit status to check for differences via the `git-diff-index` command"
},
{
"from": "gpt",
"value": "`git diff-index --quiet {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git diff`."
},
{
"from": "gpt",
"value": "Show changes to tracked files.\nMore information: <https://git-scm.com/docs/git-diff>.\n"
}
] |
[
{
"from": "human",
"value": "Show unstaged changes via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff`"
}
] |
[
{
"from": "human",
"value": "Show all uncommitted changes (including staged ones) via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff HEAD`"
}
] |
[
{
"from": "human",
"value": "Show only staged (added, but not yet committed) changes via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff --staged`"
}
] |
[
{
"from": "human",
"value": "Show changes from all commits since a given date/time (a date expression, e.g. \"1 week 2 days\" or an ISO date) via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff 'HEAD@{3 months|weeks|days|hours|seconds ago}'`"
}
] |
[
{
"from": "human",
"value": "Show diff statistics, like files changed, histogram, and total line insertions/deletions via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff --stat {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Output a summary of file creations, renames and mode changes since a given commit via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff --summary {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Compare a single file between two branches or commits via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Compare different files from the current branch to other branch via the `git-diff` command"
},
{
"from": "gpt",
"value": "`git diff {{branch}}:{{path/to/file2}} {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git difftool`."
},
{
"from": "gpt",
"value": "Show file changes using external diff tools. Accepts the same options and arguments as `git diff`.\nSee also: `git diff`.\nMore information: <https://git-scm.com/docs/git-difftool>.\n"
}
] |
[
{
"from": "human",
"value": "List available diff tools via the `git-difftool` command"
},
{
"from": "gpt",
"value": "`git difftool --tool-help`"
}
] |
[
{
"from": "human",
"value": "Set the default diff tool to meld via the `git-difftool` command"
},
{
"from": "gpt",
"value": "`git config --global diff.tool \"{{meld}}\"`"
}
] |
[
{
"from": "human",
"value": "Use the default diff tool to show staged changes via the `git-difftool` command"
},
{
"from": "gpt",
"value": "`git difftool --staged`"
}
] |
[
{
"from": "human",
"value": "Use a specific tool (opendiff) to show changes since a given commit via the `git-difftool` command"
},
{
"from": "gpt",
"value": "`git difftool --tool={{opendiff}} {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git diff-tree`."
},
{
"from": "gpt",
"value": "Compares the content and mode of blobs found via two tree objects.\nMore information: <https://git-scm.com/docs/git-diff-tree>.\n"
}
] |
[
{
"from": "human",
"value": "Compare two tree objects via the `git-diff-tree` command"
},
{
"from": "gpt",
"value": "`git diff-tree {{tree-ish1}} {{tree-ish2}}`"
}
] |
[
{
"from": "human",
"value": "Show changes between two specific commits via the `git-diff-tree` command"
},
{
"from": "gpt",
"value": "`git diff-tree -r {{commit1}} {{commit2}}`"
}
] |
[
{
"from": "human",
"value": "Display changes in patch format via the `git-diff-tree` command"
},
{
"from": "gpt",
"value": "`git diff-tree {{[-p|--patch]}} {{tree-ish1}} {{tree-ish2}}`"
}
] |
[
{
"from": "human",
"value": "Filter changes by a specific path via the `git-diff-tree` command"
},
{
"from": "gpt",
"value": "`git diff-tree {{tree-ish1}} {{tree-ish2}} -- {{path/to/file_or_directory}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git effort`."
},
{
"from": "gpt",
"value": "Display how much activity a file has had, showing commits per file and \"active days\" i.e. total number of days that contributed to the file.\nPart of `git-extras`.\nMore information: <https://github.com/tj/... |
[
{
"from": "human",
"value": "Display each file in the repository, showing commits and active days via the `git-effort` command"
},
{
"from": "gpt",
"value": "`git effort`"
}
] |
[
{
"from": "human",
"value": "Display files modified by a specific number of commits or more, showing commits and active days via the `git-effort` command"
},
{
"from": "gpt",
"value": "`git effort --above {{5}}`"
}
] |
[
{
"from": "human",
"value": "Display files modified by a specific author, showing commits and active days via the `git-effort` command"
},
{
"from": "gpt",
"value": "`git effort -- --author=\"{{username}}\"`"
}
] |
[
{
"from": "human",
"value": "Display files modified since a specific time/date, showing commits and active days via the `git-effort` command"
},
{
"from": "gpt",
"value": "`git effort -- --since=\"{{last month}}\"`"
}
] |
[
{
"from": "human",
"value": "Display only the specified files or directories, showing commits and active days via the `git-effort` command"
},
{
"from": "gpt",
"value": "`git effort {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Display all files in a specific directory, showing commits and active days via the `git-effort` command"
},
{
"from": "gpt",
"value": "`git effort {{path/to/directory/*}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git extras`."
},
{
"from": "gpt",
"value": "Git extension pack.\nMore information: <https://github.com/tj/git-extras>.\n"
}
] |
[
{
"from": "human",
"value": "Install or upgrade `git-extras` commands via the `git-extras` command"
},
{
"from": "gpt",
"value": "`git extras update`"
}
] |
[
{
"from": "human",
"value": "Display help via the `git-extras` command"
},
{
"from": "gpt",
"value": "`git extras --help`"
}
] |
[
{
"from": "human",
"value": "Display version via the `git-extras` command"
},
{
"from": "gpt",
"value": "`git extras --version`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git fame`."
},
{
"from": "gpt",
"value": "Pretty-print Git repository contributions.\nMore information: <https://github.com/casperdcl/git-fame>.\n"
}
] |
[
{
"from": "human",
"value": "Calculate contributions for the current Git repository via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame`"
}
] |
[
{
"from": "human",
"value": "Exclude files/directories that match the specified regular expression via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame --excl \"{{regular_expression}}\"`"
}
] |
[
{
"from": "human",
"value": "Calculate contributions made after the specified date via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame --since \"{{3 weeks ago|2021-05-13}}\"`"
}
] |
[
{
"from": "human",
"value": "Display contributions in the specified format via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame --format {{pipe|yaml|json|csv|tsv}}`"
}
] |
[
{
"from": "human",
"value": "Display contributions per file extension via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame --bytype`"
}
] |
[
{
"from": "human",
"value": "Ignore whitespace changes via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame --ignore-whitespace`"
}
] |
[
{
"from": "human",
"value": "Detect inter-file line moves and copies via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame -C`"
}
] |
[
{
"from": "human",
"value": "Detect intra-file line moves and copies via the `git-fame` command"
},
{
"from": "gpt",
"value": "`git fame -M`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git feature`."
},
{
"from": "gpt",
"value": "Create or merge feature branches.\nFeature branches obey the format feature/name.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-feature>.\n"
}
] |
[
{
"from": "human",
"value": "Create and switch to a new feature branch via the `git-feature` command"
},
{
"from": "gpt",
"value": "`git feature {{feature_branch}}`"
}
] |
[
{
"from": "human",
"value": "Merge a feature branch into the current branch creating a merge commit via the `git-feature` command"
},
{
"from": "gpt",
"value": "`git feature finish {{feature_branch}}`"
}
] |
[
{
"from": "human",
"value": "Merge a feature branch into the current branch squashing the changes into one commit via the `git-feature` command"
},
{
"from": "gpt",
"value": "`git feature finish --squash {{feature_branch}}`"
}
] |
[
{
"from": "human",
"value": "Send changes from a specific feature branch to its remote counterpart via the `git-feature` command"
},
{
"from": "gpt",
"value": "`git feature {{feature_branch}} --remote {{remote_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git fetch`."
},
{
"from": "gpt",
"value": "Download objects and refs from a remote repository.\nMore information: <https://git-scm.com/docs/git-fetch>.\n"
}
] |
[
{
"from": "human",
"value": "Fetch the latest changes from the default remote upstream repository (if set) via the `git-fetch` command"
},
{
"from": "gpt",
"value": "`git fetch`"
}
] |
[
{
"from": "human",
"value": "Fetch new branches from a specific remote upstream repository via the `git-fetch` command"
},
{
"from": "gpt",
"value": "`git fetch {{remote_name}}`"
}
] |
[
{
"from": "human",
"value": "Fetch the latest changes from all remote upstream repositories via the `git-fetch` command"
},
{
"from": "gpt",
"value": "`git fetch --all`"
}
] |
[
{
"from": "human",
"value": "Also fetch tags from the remote upstream repository via the `git-fetch` command"
},
{
"from": "gpt",
"value": "`git fetch --tags`"
}
] |
[
{
"from": "human",
"value": "Delete local references to remote branches that have been deleted upstream via the `git-fetch` command"
},
{
"from": "gpt",
"value": "`git fetch --prune`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git filter-repo`."
},
{
"from": "gpt",
"value": "A versatile tool for rewriting Git history.\nSee also: `bfg`.\nMore information: <https://github.com/newren/git-filter-repo>.\n"
}
] |
[
{
"from": "human",
"value": "Replace a sensitive string in all files via the `git-filter-repo` command"
},
{
"from": "gpt",
"value": "`git filter-repo --replace-text <(echo '{{find}}==>{{replacement}}')`"
}
] |
[
{
"from": "human",
"value": "Extract a single folder, keeping history via the `git-filter-repo` command"
},
{
"from": "gpt",
"value": "`git filter-repo --path {{path/to/folder}}`"
}
] |
[
{
"from": "human",
"value": "Remove a single folder, keeping history via the `git-filter-repo` command"
},
{
"from": "gpt",
"value": "`git filter-repo --path {{path/to/folder}} --invert-paths`"
}
] |
[
{
"from": "human",
"value": "Move everything from sub-folder one level up via the `git-filter-repo` command"
},
{
"from": "gpt",
"value": "`git filter-repo --path-rename {{path/to/folder/:}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git flow`."
},
{
"from": "gpt",
"value": "A collection of Git extensions to provide high-level repository operations.\nMore information: <https://github.com/nvie/gitflow>.\n"
}
] |
[
{
"from": "human",
"value": "Initialize it inside an existing Git repository via the `git-flow` command"
},
{
"from": "gpt",
"value": "`git flow init`"
}
] |
[
{
"from": "human",
"value": "Start developing on a feature branch based on `develop` via the `git-flow` command"
},
{
"from": "gpt",
"value": "`git flow feature start {{feature}}`"
}
] |
[
{
"from": "human",
"value": "Finish development on a feature branch, merging it into the `develop` branch and deleting it via the `git-flow` command"
},
{
"from": "gpt",
"value": "`git flow feature finish {{feature}}`"
}
] |
[
{
"from": "human",
"value": "Publish a feature to the remote server via the `git-flow` command"
},
{
"from": "gpt",
"value": "`git flow feature publish {{feature}}`"
}
] |
[
{
"from": "human",
"value": "Get a feature published by another user via the `git-flow` command"
},
{
"from": "gpt",
"value": "`git flow feature pull origin {{feature}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git force-clone`."
},
{
"from": "gpt",
"value": "Get the basic functionality of `git clone`, but if the destination Git repository already exists it will force-reset it to resemble a clone of the remote.\nPart of `git-extras`.\nMore information: <https... |
[
{
"from": "human",
"value": "Clone a Git repository into a new directory via the `git-force-clone` command"
},
{
"from": "gpt",
"value": "`git force-clone {{remote_repository_location}} {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Clone a Git repository into a new directory, checking out an specific branch via the `git-force-clone` command"
},
{
"from": "gpt",
"value": "`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Clone a Git repository into an existing directory of a Git repository, performing a force-reset to resemble it to the remote and checking out an specific branch via the `git-force-clone` command"
},
{
"from": "gpt",
"value": "`git force-clone -b {{branch_name}} {{rem... |
[
{
"from": "human",
"value": "Tell me about `git for-each-repo`."
},
{
"from": "gpt",
"value": "Run a Git command on a list of repositories.\nNote: this command is experimental and may change.\nMore information: <https://git-scm.com/docs/git-for-each-repo>.\n"
}
] |
[
{
"from": "human",
"value": "Run maintenance on each of a list of repositories stored in the `maintenance.repo` user configuration variable via the `git-for-each-repo` command"
},
{
"from": "gpt",
"value": "`git for-each-repo --config={{maintenance.repo}} {{maintenance run}}`"
}
] |
[
{
"from": "human",
"value": "Run `git pull` on each repository listed in a global configuration variable via the `git-for-each-repo` command"
},
{
"from": "gpt",
"value": "`git for-each-repo --config={{global_configuration_variable}} {{pull}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git fork`."
},
{
"from": "gpt",
"value": "Fork a GitHub repo. Like `git clone` but forks first.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-fork>.\n"
}
] |
[
{
"from": "human",
"value": "Fork and clone a GitHub repository by its URL via the `git-fork` command"
},
{
"from": "gpt",
"value": "`git fork {{https://github.com/tldr-pages/tldr}}`"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.