jaeswift-website/api/data/awesomelist/git-tips--tips.json

1 line
No EOL
18 KiB
JSON

{"slug": "git-tips--tips", "title": "Tips", "description": "Most commonly used git tips and tricks.", "github_url": "https://github.com/git-tips/tips", "stars": "22K", "tag": "Development Environment", "entry_count": 12, "subcategory_count": 176, "subcategories": [{"name": "**Tools:**", "parent": "git-tips", "entries": [{"name": "git-tip", "url": "https://www.npmjs.com/package/git-tip", "description": "A handy CLI to make optimum use of these tips. ([Here in Docker container (\u2b5013)](https://github.com/djoudi5/docker-git-tip))"}, {"name": "Basic Operations", "url": "#basic-operations", "description": ""}, {"name": "Branching", "url": "#branching", "description": ""}, {"name": "Log and History", "url": "#log-and-history", "description": ""}, {"name": "Merging and Rebasing", "url": "#merging-and-rebasing", "description": ""}, {"name": "Miscellaneous", "url": "#miscellaneous", "description": ""}, {"name": "Remotes", "url": "#remotes", "description": ""}, {"name": "Setup and Config", "url": "#setup-and-config", "description": ""}, {"name": "Stashing", "url": "#stashing", "description": ""}, {"name": "Submodules and Subtrees", "url": "#submodules-and-subtrees", "description": ""}, {"name": "Tagging", "url": "#tagging", "description": ""}, {"name": "Undoing Changes", "url": "#undoing-changes", "description": ""}]}, {"name": "List of all files till a commit", "parent": "Basic Operations", "entries": []}, {"name": "Quickly switch to the previous branch", "parent": "Basic Operations", "entries": []}, {"name": "Delete remote branch", "parent": "Basic Operations", "entries": []}, {"name": "Delete remote tag", "parent": "Basic Operations", "entries": []}, {"name": "Undo local changes with the content in index(staging)", "parent": "Basic Operations", "entries": []}, {"name": "Reword the previous commit message", "parent": "Basic Operations", "entries": []}, {"name": "See commit history for just the current branch", "parent": "Basic Operations", "entries": []}, {"name": "Amend author.", "parent": "Basic Operations", "entries": []}, {"name": "Stage parts of a changed file, instead of the entire file", "parent": "Basic Operations", "entries": []}, {"name": "Pick commits across branches using cherry-pick", "parent": "Basic Operations", "entries": []}, {"name": "Grab a single file from a stash", "parent": "Basic Operations", "entries": []}, {"name": "Create new working tree from a repository (git 2.5)", "parent": "Basic Operations", "entries": []}, {"name": "Create new working tree from HEAD state", "parent": "Basic Operations", "entries": []}, {"name": "Show all commits in the current branch yet to be merged to master", "parent": "Basic Operations", "entries": []}, {"name": "Modify previous commit without modifying the commit message", "parent": "Basic Operations", "entries": []}, {"name": "Prunes references to remove branches that have been deleted in the remote.", "parent": "Basic Operations", "entries": []}, {"name": "Retrieve the commit hash of the initial revision.", "parent": "Basic Operations", "entries": []}, {"name": "Import from a bundle", "parent": "Basic Operations", "entries": []}, {"name": "Ignore one file on commit (e.g. Changelog).", "parent": "Basic Operations", "entries": []}, {"name": "Fetch pull request by ID to a local branch", "parent": "Basic Operations", "entries": []}, {"name": "Restore deleted file.", "parent": "Basic Operations", "entries": []}, {"name": "Restore file to a specific commit-hash", "parent": "Basic Operations", "entries": []}, {"name": "Marks your commit as a fix of a previous commit.", "parent": "Basic Operations", "entries": []}, {"name": "Skip staging area during commit.", "parent": "Basic Operations", "entries": []}, {"name": "Interactive staging.", "parent": "Basic Operations", "entries": []}, {"name": "Status of ignored files.", "parent": "Basic Operations", "entries": []}, {"name": "Checkout a new branch without any history", "parent": "Basic Operations", "entries": []}, {"name": "Find guilty with binary search", "parent": "Basic Operations", "entries": []}, {"name": "Bypass pre-commit and commit-msg githooks", "parent": "Basic Operations", "entries": []}, {"name": "Clone a single branch", "parent": "Basic Operations", "entries": []}, {"name": "Create and switch new branch", "parent": "Basic Operations", "entries": []}, {"name": "Show all local branches ordered by recent commits", "parent": "Basic Operations", "entries": []}, {"name": "Clone a shallow copy of a repository", "parent": "Basic Operations", "entries": []}, {"name": "Force push to Remote Repository", "parent": "Basic Operations", "entries": []}, {"name": "Group commits by authors and title", "parent": "Basic Operations", "entries": []}, {"name": "Forced push but still ensure you don't overwrite other's work", "parent": "Basic Operations", "entries": []}, {"name": "Number of commits in a branch", "parent": "Basic Operations", "entries": []}, {"name": "Add object notes", "parent": "Basic Operations", "entries": []}, {"name": "Apply commit from another repository", "parent": "Basic Operations", "entries": []}, {"name": "Specific fetch reference", "parent": "Basic Operations", "entries": []}, {"name": "Generates a summary of pending changes", "parent": "Basic Operations", "entries": []}, {"name": "Show git status short", "parent": "Basic Operations", "entries": []}, {"name": "Checkout a commit prior to a day ago", "parent": "Basic Operations", "entries": []}, {"name": "Push the current branch to the same name on the remote repository", "parent": "Basic Operations", "entries": []}, {"name": "Push a new local branch to remote repository and track", "parent": "Basic Operations", "entries": []}, {"name": "Update a submodule to the latest commit", "parent": "Basic Operations", "entries": []}, {"name": "Duplicating a repository", "parent": "Basic Operations", "entries": []}, {"name": "List all branches that are already merged into master", "parent": "Branching", "entries": []}, {"name": "Remove branches that have already been merged with master", "parent": "Branching", "entries": []}, {"name": "List all branches and their upstreams, as well as last commit on branch", "parent": "Branching", "entries": []}, {"name": "Track upstream branch", "parent": "Branching", "entries": []}, {"name": "Delete local branch", "parent": "Branching", "entries": []}, {"name": "Get list of all local and remote branches", "parent": "Branching", "entries": []}, {"name": "Get only remote branches", "parent": "Branching", "entries": []}, {"name": "Find out branches containing commit-hash", "parent": "Branching", "entries": []}, {"name": "Rename a branch", "parent": "Branching", "entries": []}, {"name": "Archive the `master` branch", "parent": "Branching", "entries": []}, {"name": "Delete local branches that has been squash and merged in the remote.", "parent": "Branching", "entries": []}, {"name": "Export a branch with history to a file.", "parent": "Branching", "entries": []}, {"name": "Get the name of current branch.", "parent": "Branching", "entries": []}, {"name": "Show the most recent tag on the current branch.", "parent": "Branching", "entries": []}, {"name": "List all branch is WIP", "parent": "Branching", "entries": []}, {"name": "Preformatted patch file.", "parent": "Branching", "entries": []}, {"name": "Switch to a branch (modern alternative to checkout)", "parent": "Branching", "entries": []}, {"name": "Show helpful guides that come with Git", "parent": "Log and History", "entries": []}, {"name": "Search change by content", "parent": "Log and History", "entries": []}, {"name": "Show changes over time for specific file", "parent": "Log and History", "entries": []}, {"name": "List all the conflicted files", "parent": "Log and History", "entries": []}, {"name": "List of all files changed in a commit", "parent": "Log and History", "entries": []}, {"name": "Unstaged changes since last commit", "parent": "Log and History", "entries": []}, {"name": "Changes staged for commit", "parent": "Log and History", "entries": []}, {"name": "Show both staged and unstaged changes", "parent": "Log and History", "entries": []}, {"name": "What changed since two weeks?", "parent": "Log and History", "entries": []}, {"name": "See all commits made since forking from master", "parent": "Log and History", "entries": []}, {"name": "Show all tracked files", "parent": "Log and History", "entries": []}, {"name": "Show all untracked files", "parent": "Log and History", "entries": []}, {"name": "Show all ignored files", "parent": "Log and History", "entries": []}, {"name": "Visualize the version tree.", "parent": "Log and History", "entries": []}, {"name": "Visualize the tree including commits that are only referenced from reflogs", "parent": "Log and History", "entries": []}, {"name": "Show inline word diff.", "parent": "Log and History", "entries": []}, {"name": "Show changes using common diff tools.", "parent": "Log and History", "entries": []}, {"name": "Commits in Branch1 that are not in Branch2", "parent": "Log and History", "entries": []}, {"name": "List n last commits", "parent": "Log and History", "entries": []}, {"name": "Open all conflicted files in an editor.", "parent": "Log and History", "entries": []}, {"name": "View the GPG signatures in the commit log", "parent": "Log and History", "entries": []}, {"name": "Extract file from another branch.", "parent": "Log and History", "entries": []}, {"name": "List only the root and merge commits.", "parent": "Log and History", "entries": []}, {"name": "List commits and changes to a specific file (even through renaming)", "parent": "Log and History", "entries": []}, {"name": "Search Commit log across all branches for given text", "parent": "Log and History", "entries": []}, {"name": "Get first commit in a branch (from master)", "parent": "Log and History", "entries": []}, {"name": "Show the author, time and last revision made to each line of a given file", "parent": "Log and History", "entries": []}, {"name": "Show how many lines does an author contribute", "parent": "Log and History", "entries": []}, {"name": "Show all the git-notes", "parent": "Log and History", "entries": []}, {"name": "List unpushed git commits", "parent": "Log and History", "entries": []}, {"name": "Add everything, but whitespace changes", "parent": "Log and History", "entries": []}, {"name": "blame on certain range", "parent": "Log and History", "entries": []}, {"name": "Show a Git logical variable.", "parent": "Log and History", "entries": []}, {"name": "Get the repo name.", "parent": "Log and History", "entries": []}, {"name": "logs between date range", "parent": "Log and History", "entries": []}, {"name": "Exclude author from logs", "parent": "Log and History", "entries": []}, {"name": "View expanded details of changes in last commit", "parent": "Log and History", "entries": []}, {"name": "Visualize each position of HEAD in the last 30 days", "parent": "Log and History", "entries": []}, {"name": "Rebases 'feature' to 'master' and merges it in to master", "parent": "Merging and Rebasing", "entries": []}, {"name": "Stash changes before rebasing", "parent": "Merging and Rebasing", "entries": []}, {"name": "Squash fixup commits normal commits.", "parent": "Merging and Rebasing", "entries": []}, {"name": "Change previous two commits with an interactive rebase.", "parent": "Merging and Rebasing", "entries": []}, {"name": "Find common ancestor of two branches", "parent": "Merging and Rebasing", "entries": []}, {"name": "Change a branch base", "parent": "Merging and Rebasing", "entries": []}, {"name": "Everyday Git in twenty commands or so", "parent": "Miscellaneous", "entries": []}, {"name": "Untrack files without deleting", "parent": "Miscellaneous", "entries": []}, {"name": "Don\u2019t consider changes for tracked file.", "parent": "Miscellaneous", "entries": []}, {"name": "Check if the change was a part of a release.", "parent": "Miscellaneous", "entries": []}, {"name": "List ignored files.", "parent": "Miscellaneous", "entries": []}, {"name": "Count unpacked number of objects and their disk consumption.", "parent": "Miscellaneous", "entries": []}, {"name": "Prune all unreachable objects from the object database.", "parent": "Miscellaneous", "entries": []}, {"name": "Instantly browse your working repository in gitweb.", "parent": "Miscellaneous", "entries": []}, {"name": "Find lines matching the pattern (regex or string) in tracked files", "parent": "Miscellaneous", "entries": []}, {"name": "Backup untracked files.", "parent": "Miscellaneous", "entries": []}, {"name": "Send a collection of patches as emails", "parent": "Miscellaneous", "entries": []}, {"name": "Changing a remote's URL", "parent": "Remotes", "entries": []}, {"name": "Get list of all remote references", "parent": "Remotes", "entries": []}, {"name": "Adding Remote name", "parent": "Remotes", "entries": []}, {"name": "List all currently configured remotes", "parent": "Remotes", "entries": []}, {"name": "List references in a remote repository", "parent": "Remotes", "entries": []}, {"name": "Refresh the list of remote branches", "parent": "Remotes", "entries": []}, {"name": "Remove sensitive data from history, after a push", "parent": "Setup and Config", "entries": []}, {"name": "Reset author, after author has been changed in the global config.", "parent": "Setup and Config", "entries": []}, {"name": "Get git bash completion", "parent": "Setup and Config", "entries": []}, {"name": "Git Aliases", "parent": "Setup and Config", "entries": []}, {"name": "Always rebase instead of merge on pull.", "parent": "Setup and Config", "entries": []}, {"name": "List all the alias and configs.", "parent": "Setup and Config", "entries": []}, {"name": "Make git case sensitive.", "parent": "Setup and Config", "entries": []}, {"name": "Add custom editors.", "parent": "Setup and Config", "entries": []}, {"name": "Auto correct typos.", "parent": "Setup and Config", "entries": []}, {"name": "Reuse recorded resolution, record and reuse previous conflicts resolutions.", "parent": "Setup and Config", "entries": []}, {"name": "Remove entry in the global config.", "parent": "Setup and Config", "entries": []}, {"name": "Ignore file mode changes on commits", "parent": "Setup and Config", "entries": []}, {"name": "Turn off git colored terminal output", "parent": "Setup and Config", "entries": []}, {"name": "Specific color settings", "parent": "Setup and Config", "entries": []}, {"name": "Alias: git undo", "parent": "Setup and Config", "entries": []}, {"name": "Edit \\[local/global] git config", "parent": "Setup and Config", "entries": []}, {"name": "List all git aliases", "parent": "Setup and Config", "entries": []}, {"name": "Use SSH instead of HTTPs for remotes", "parent": "Setup and Config", "entries": []}, {"name": "Prevent auto replacing LF with CRLF", "parent": "Setup and Config", "entries": []}, {"name": "Edit config for each level", "parent": "Setup and Config", "entries": []}, {"name": "Saving current state of tracked files without committing", "parent": "Stashing", "entries": []}, {"name": "Saving current state of unstaged changes to tracked files", "parent": "Stashing", "entries": []}, {"name": "Saving current state including untracked files", "parent": "Stashing", "entries": []}, {"name": "Saving current state with message", "parent": "Stashing", "entries": []}, {"name": "Saving current state of all files (ignored, untracked, and tracked)", "parent": "Stashing", "entries": []}, {"name": "Show list of all saved stashes", "parent": "Stashing", "entries": []}, {"name": "Show the contents of any stash in patch form", "parent": "Stashing", "entries": []}, {"name": "Apply any stash without deleting from the stashed list", "parent": "Stashing", "entries": []}, {"name": "Apply last stashed state and delete it from stashed list", "parent": "Stashing", "entries": []}, {"name": "Delete all stored stashes", "parent": "Stashing", "entries": []}, {"name": "Update all the submodules", "parent": "Submodules and Subtrees", "entries": []}, {"name": "Deploying git tracked subfolder to gh-pages", "parent": "Submodules and Subtrees", "entries": []}, {"name": "Adding a project to repo using subtree", "parent": "Submodules and Subtrees", "entries": []}, {"name": "Get latest changes in your repo for a linked project using subtree", "parent": "Submodules and Subtrees", "entries": []}, {"name": "Create local tag", "parent": "Tagging", "entries": []}, {"name": "Delete local tag", "parent": "Tagging", "entries": []}, {"name": "Sync with remote, overwrite local changes", "parent": "Undoing Changes", "entries": []}, {"name": "Git reset first commit", "parent": "Undoing Changes", "entries": []}, {"name": "Reset: preserve uncommitted local changes", "parent": "Undoing Changes", "entries": []}, {"name": "Revert: Undo a commit by creating a new commit", "parent": "Undoing Changes", "entries": []}, {"name": "Reset: Discard commits, advised for private branch", "parent": "Undoing Changes", "entries": []}, {"name": "Before deleting untracked files/directory, do a dry run to get the list of these files/directories", "parent": "Undoing Changes", "entries": []}, {"name": "Forcefully remove untracked files", "parent": "Undoing Changes", "entries": []}, {"name": "Forcefully remove untracked directory", "parent": "Undoing Changes", "entries": []}, {"name": "Undo assume-unchanged.", "parent": "Undoing Changes", "entries": []}, {"name": "Clean the files from `.gitignore`.", "parent": "Undoing Changes", "entries": []}, {"name": "Dry run. (any command that supports dry-run flag should do.)", "parent": "Undoing Changes", "entries": []}, {"name": "Unstaging Staged file", "parent": "Undoing Changes", "entries": []}, {"name": "Revert: Reverting an entire merge", "parent": "Undoing Changes", "entries": []}, {"name": "Restore file (modern alternative to reset/checkout --)", "parent": "Undoing Changes", "entries": []}], "name": ""}