Bake dates into snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-06-13 19:47:48 +03:00
parent e278f01f5a
commit ed2f41b0d8
82 changed files with 164 additions and 0 deletions

View File

@ -1,6 +1,8 @@
---
title: Add a submodule
tags: repository,submodule,advanced
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Adds a new submodule to the repository.

View File

@ -1,6 +1,8 @@
---
title: Apply the latest stash
tags: repository,stash,intermediate
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Applies the latest stash.

View File

@ -1,6 +1,8 @@
---
title: Apply a stash
tags: repository,stash,intermediate
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Applies a specific stash.

View File

@ -1,6 +1,8 @@
---
title: Autocorrect git commands
tags: configuration,intermediate
firstSeen: 2021-04-06T20:58:33+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Configures git to autocorrect mistyped commands.

View File

@ -1,6 +1,8 @@
---
title: Automatically find the commit that introduced a bug
tags: commit,branch,advanced
firstSeen: 2021-04-13T20:00:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Uses a binary search algorithm and a given script to find which commit in history introduced a bug.

View File

@ -1,6 +1,8 @@
---
title: Find branches containing a commit
tags: branch,commit,intermediate
firstSeen: 2021-04-05T09:47:59+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints all the branches containing a specific commit.

View File

@ -1,6 +1,8 @@
---
title: Find branches not containing a commit
tags: branch,commit,intermediate
firstSeen: 2021-04-05T09:47:59+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints all the branches not containing a specific commit.

View File

@ -1,6 +1,8 @@
---
title: Change the remote URL
tags: repository,intermediate
firstSeen: 2021-04-08T19:42:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Changes the URL of the remote repository.

View File

@ -1,6 +1,8 @@
---
title: Clone missing submodules
tags: repository,submodule,advanced
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Clones missing submodules and checks out commits.

View File

@ -1,6 +1,8 @@
---
title: Clone a repository
tags: repository,remote,beginner
firstSeen: 2021-04-04T14:04:05+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Clones an existing repository, creating a local copy of it.

View File

@ -1,6 +1,8 @@
---
title: Create a commit by a different author
tags: commit,intermediate
firstSeen: 2021-04-13T20:07:27+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Creates a new commit by the specified author.

View File

@ -1,6 +1,8 @@
---
title: Add a commit message template
tags: repository,configuration,advanced
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Sets up a commit message template for the current repository.

View File

@ -1,6 +1,8 @@
---
title: Commit without running git hooks
tags: commit,intermediate
firstSeen: 2021-04-04T20:55:26+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Creates a new commit skipping the pre-commit and commit-msg hooks.

View File

@ -1,6 +1,8 @@
---
title: Configure git user information
tags: configuration,repository,beginner
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Configures user information for git.

View File

@ -1,6 +1,8 @@
---
title: Copy a file from another branch
tags: branch,intermediate
firstSeen: 2021-04-06T20:58:25+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Copies a file from another branch to the current branch.

View File

@ -1,6 +1,8 @@
---
title: Create a new branch
tags: branch,remote,beginner
firstSeen: 2021-04-04T14:09:09+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Creates and switches to a new branch, optionally setting up a remote tracking branch.

View File

@ -1,6 +1,8 @@
---
title: Create a commit
tags: commit,beginner
firstSeen: 2021-04-04T14:16:38+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Creates a new commit containing the staged changes.

View File

@ -1,6 +1,8 @@
---
title: Create an empty commit
tags: commit,beginner
firstSeen: 2021-04-04T20:55:26+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Creates an empty commit.

View File

@ -1,6 +1,8 @@
---
title: Create a fixup commit
tags: commit,advanced
firstSeen: 2021-04-08T19:51:24+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Creates a fixup commit that can be autosquashed in the next rebase.

View File

@ -1,6 +1,8 @@
---
title: Create a new repository
tags: repository,beginner
firstSeen: 2021-04-04T14:04:05+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Initializes a new git repository, setting up all the configuration files needed by git.

View File

@ -1,6 +1,8 @@
---
title: Get the current branch name
tags: branch,beginner
firstSeen: 2021-04-04T21:50:46+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints the current branch name.

View File

@ -1,6 +1,8 @@
---
title: Delete a branch
tags: repository,branch,intermediate
firstSeen: 2021-04-04T21:50:29+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes a local branch.

View File

@ -1,6 +1,8 @@
---
title: Delete detached branches
tags: repository,branch,intermediate
firstSeen: 2021-04-08T19:42:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes all detached branches.

View File

@ -1,6 +1,8 @@
---
title: Delete merged branches
tags: repository,branch,advanced
firstSeen: 2021-04-08T19:42:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes all local merged branches.

View File

@ -1,6 +1,8 @@
---
title: Delete a remote branch
tags: repository,branch,intermediate
firstSeen: 2021-04-08T19:42:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes a remote branch.

View File

@ -1,6 +1,8 @@
---
title: Delete a stash
tags: repository,stash,intermediate
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes a specific stash.

View File

@ -1,6 +1,8 @@
---
title: Delete all stashes
tags: repository,stash,intermediate
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes all stashes.

View File

@ -1,6 +1,8 @@
---
title: Delete a submodule
tags: repository,submodule,advanced
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Deletes a submodule from the repository.

View File

@ -1,6 +1,8 @@
---
title: View difference between two branches
tags: branch,intermediate
firstSeen: 2021-04-08T16:30:44+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Displays the difference between two branches.

View File

@ -1,6 +1,8 @@
---
title: Discard uncommitted changes
tags: branch,intermediate
firstSeen: 2021-04-06T11:11:08+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Discards all uncommitted changes to the current branch.

View File

@ -1,6 +1,8 @@
---
title: Discard untracked changes
tags: branch,intermediate
firstSeen: 2021-04-06T11:11:08+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Discards all untracked changes to the current branch.

View File

@ -1,6 +1,8 @@
---
title: Edit git configuration file
tags: configuration,beginner
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Opens the git configuration file in the git text editor.

View File

@ -1,6 +1,8 @@
---
title: Fetch latest changes from remote
tags: repository,beginner
firstSeen: 2021-04-08T19:43:13+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Fetches the latest changes from the remote.

View File

@ -1,6 +1,8 @@
---
title: Find lost files
tags: repository,advanced
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a list of lost files and commits.

View File

@ -1,6 +1,8 @@
---
title: Update remote branch after rewriting history
tags: branch,intermediate
firstSeen: 2021-04-06T19:47:19+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Forces an update of the remote branch adter rewriting the history locally.

View File

@ -1,6 +1,8 @@
---
title: Perform an interactive rebase
tags: branch,advanced
firstSeen: 2021-04-08T20:10:35+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Performs an interactive rebase.

View File

@ -1,6 +1,8 @@
---
title: Configure line endings
tags: repository,configuration,intermediate
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Configures the line endings for a repository.

View File

@ -1,6 +1,8 @@
---
title: List all git aliases
tags: configuration,intermediate
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a list of all git aliases.

View File

@ -1,6 +1,8 @@
---
title: Lists all stashes
tags: repository,stash,intermediate
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Displays a list of all stashes.

View File

@ -1,6 +1,8 @@
---
title: Manually find the commit that introduced a bug
tags: commit,branch,advanced
firstSeen: 2021-04-13T20:00:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Uses a binary search algorithm to manually find which commit in history introduced a bug.

View File

@ -1,6 +1,8 @@
---
title: Merge a branch and create a merge commit
tags: repository,branch,intermediate
firstSeen: 2021-04-04T21:50:11+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Merges a branch into the current branch, creating a merge commit.

View File

@ -1,6 +1,8 @@
---
title: Merge a branch
tags: repository,branch,beginner
firstSeen: 2021-04-04T21:50:11+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Merges a branch into the current branch.

View File

@ -1,6 +1,8 @@
---
title: Move commits from master to a new branch
tags: branch,repository,intermediate
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Moves local commits from the `master` branch to a new branch.

View File

@ -1,6 +1,8 @@
---
title: Optimize the local repository
tags: repository,advanced
firstSeen: 2021-04-08T19:42:43+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Optimizes the local repository.

View File

@ -1,6 +1,8 @@
---
title: Pick changes from one or more commits
tags: commit,branch,intermediate
firstSeen: 2021-04-08T16:42:37+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Applies the changes introduced by one or more commits.

View File

@ -1,6 +1,8 @@
---
title: Pull all submodules from remote
tags: repository,submodule,advanced
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Pulls all submodules from their respective remotes.

View File

@ -1,6 +1,8 @@
---
title: Pull latest changes from remote
tags: repository,branch,beginner
firstSeen: 2021-04-08T19:42:23+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Pulls the latest changes from the remote tracking branch.

View File

@ -1,6 +1,8 @@
---
title: Purge a file from history
tags: repository,remote,advanced
firstSeen: 2021-04-13T20:20:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Completely purges a file from history.

View File

@ -1,6 +1,8 @@
---
title: Push local changes to remote
tags: repository,branch,beginner
firstSeen: 2021-04-08T19:42:23+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Pushes the current branch's changes to the remote.

View File

@ -1,6 +1,8 @@
---
title: Rebase onto another branch
tags: branch,advanced
firstSeen: 2021-04-05T11:19:54+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Rebases the current branch onto another branch.

View File

@ -1,6 +1,8 @@
---
title: Remove a file from the last commit
tags: commit,intermediate
firstSeen: 2021-04-05T11:19:41+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Removes a file from the last commit without changing its message.

View File

@ -1,6 +1,8 @@
---
title: Rename a branch
tags: branch,intermediate
firstSeen: 2021-04-05T09:48:16+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Renames a local branch.

View File

@ -1,6 +1,8 @@
---
title: Rename remote branch
tags: branch,advanced
firstSeen: 2021-04-05T09:48:16+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Renames a branch both locally and on the remote.

View File

@ -1,6 +1,8 @@
---
title: Reset master to match remote
tags: repository,branch,intermediate
firstSeen: 2021-04-06T16:58:58+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Resets the local `master` branch to match the one on the remote.

View File

@ -1,6 +1,8 @@
---
title: Restore a deleted file
tags: branch,intermediate
firstSeen: 2021-04-06T20:58:25+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Restores a file deleted in a specific commit.

View File

@ -1,6 +1,8 @@
---
title: Rewind back n commits
tags: branch,commit,intermediate
firstSeen: 2021-04-05T11:19:21+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Rewinds the current branch by a given number of commits.

View File

@ -1,6 +1,8 @@
---
title: Rewind back to a specific commit
tags: branch,commit,intermediate
firstSeen: 2021-04-05T11:19:21+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Rewinds the current branch by a given number of commits.

View File

@ -1,6 +1,8 @@
---
title: Create a stash
tags: repository,stash,intermediate
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Saves the current state of the working directory and index into a new stash.

View File

@ -1,6 +1,8 @@
---
title: Configure the git text editor
tags: configuration,intermediate
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Configures the text editor used by git.

View File

@ -1,6 +1,8 @@
---
title: View branches sorted by date
tags: repository,branch,intermediate
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a list of all local branches sorted by date.

View File

@ -1,6 +1,8 @@
---
title: Add files to the staging area
tags: commit,beginner
firstSeen: 2021-04-06T16:39:37+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Adds files to the staging area.

View File

@ -1,6 +1,8 @@
---
title: Switch to a branch
tags: branch,beginner
firstSeen: 2021-04-04T14:09:09+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Switches to an existing branch.

View File

@ -1,6 +1,8 @@
---
title: Return to previous branch
tags: branch,beginner
firstSeen: 2021-04-04T14:13:31+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Switches back to the last branch.

View File

@ -1,6 +1,8 @@
---
title: Undo a commit
tags: commit,branch,intermediate
firstSeen: 2021-04-06T16:54:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Undoes a specified commit without rewriting history.

View File

@ -1,6 +1,8 @@
---
title: Undo the last commit
tags: commit,branch,intermediate
firstSeen: 2021-04-06T16:54:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Undoes the last commit without rewriting history.

View File

@ -1,6 +1,8 @@
---
title: Remove files from the staging area
tags: commit,beginner
firstSeen: 2021-04-06T19:38:51+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Removes files from the staging area.

View File

@ -1,6 +1,8 @@
---
title: Edit the last commit
tags: commit,intermediate
firstSeen: 2021-04-04T14:36:07+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Updates the last commit's contents without changing its message.

View File

@ -1,6 +1,8 @@
---
title: Change the last commit's message
tags: commit,intermediate
firstSeen: 2021-04-04T14:36:07+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Updates the last commit's message without changing its contents.

View File

@ -1,6 +1,8 @@
---
title: View local branches
tags: repository,branch,beginner
firstSeen: 2021-04-04T14:05:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a list of all local branches.

View File

@ -1,6 +1,8 @@
---
title: View a summary of changes between two commits
tags: repository,branch,intermediate
firstSeen: 2021-04-06T22:21:04+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a summary of changes between two given commits.

View File

@ -1,6 +1,8 @@
---
title: View a visual graph of the repository
tags: repository,intermediate
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a visual graph of all commits and branches in the repository.

View File

@ -1,6 +1,8 @@
---
title: View commits by author
tags: repository,commit,intermediate
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints all commits by the specified author.

View File

@ -1,6 +1,8 @@
---
title: View commits that manipulated a specific string
tags: commit,intermediate
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a list of all commits that manipulated a given string.

View File

@ -1,6 +1,8 @@
---
title: View commits in a specific date range
tags: repository,commit,intermediate
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints all commits in the specified date range.

View File

@ -1,6 +1,8 @@
---
title: View a short summary of commits without merge commits
tags: repository,commit,intermediate
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a short summary of all commits excluding merge commits.

View File

@ -1,6 +1,8 @@
---
title: View a short summary of commits
tags: repository,commit,intermediate
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a short summary of all commits.

View File

@ -1,6 +1,8 @@
---
title: View differences in changes
tags: commit,branch,intermediate
firstSeen: 2021-04-08T16:30:44+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Displays differences between staged or unstaged changes and the last commit.

View File

@ -1,6 +1,8 @@
---
title: View last commit
tags: commit,intermediate
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints the last commit.

View File

@ -1,6 +1,8 @@
---
title: View merged branches
tags: repository,branch,intermediate
firstSeen: 2021-04-08T19:43:13+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints a list of all merged local branches.

View File

@ -1,6 +1,8 @@
---
title: View the remote URL
tags: repository,intermediate
firstSeen: 2021-04-08T19:42:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Displays the URL of the remote repository.

View File

@ -1,6 +1,8 @@
---
title: View current status
tags: branch,beginner
firstSeen: 2021-04-06T20:58:33+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Prints the current status of the working tree.

View File

@ -1,6 +1,8 @@
---
title: View "undo" history
tags: repository,branch,advanced
firstSeen: 2021-04-06T16:35:56+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
View git's reference logs. This is especially useful for finding references that don't show up in commit history.