Merge pull request #8 from 30-seconds/updated-frontmatter

Updated frontmatter
This commit is contained in:
Angelos Chalaris
2023-04-28 23:03:18 +03:00
committed by GitHub
87 changed files with 261 additions and 256 deletions

View File

@ -1,8 +1,9 @@
---
title: Snippet name
tags: branch
type: snippet
tags: [branch]
cover: image
firstSeen: 2021-06-13T05:00:00-04:00
dateModified: 2021-06-13T05:00:00-04:00
---
Explain briefly what the snippet does.

View File

@ -1,10 +1,10 @@
---
title: Add a submodule
tags: repository,submodule
type: snippet
tags: [repository,submodule]
author: chalarangelo
cover: rocky-mountains
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Adds a new submodule to the repository.

View File

@ -1,10 +1,10 @@
---
title: Apply the latest stash
tags: repository,stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: palm-tree-house
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Applies the latest stash.

View File

@ -1,10 +1,10 @@
---
title: Apply a stash
tags: repository,stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: obelisk
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Applies a specific stash.

View File

@ -1,10 +1,10 @@
---
title: Autocorrect git commands
tags: configuration
type: snippet
tags: [configuration]
author: chalarangelo
cover: purple-flower-bunch
firstSeen: 2021-04-06T20:58:33+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Configures git to autocorrect mistyped commands.

View File

@ -1,10 +1,10 @@
---
title: Automatically find the commit that introduced a bug
tags: commit,branch
type: snippet
tags: [commit,branch]
author: chalarangelo
cover: pink-flower-tree
firstSeen: 2021-04-13T20:00:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 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,9 +1,10 @@
---
title: Automate upstream branch creation
tags: configuration,repository
type: snippet
tags: [configuration,repository]
author: chalarangelo
cover: violin
firstSeen: 2022-10-19T05:00:00-04:00
dateModified: 2022-10-19T05:00:00-04:00
---
Configures the repository to automatically create upstream branches on push.

View File

@ -1,9 +1,9 @@
---
title: Find branches containing a commit
tags: branch,commit
type: snippet
tags: [branch,commit]
cover: dark-leaves
firstSeen: 2021-04-05T09:47:59+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints all the branches containing a specific commit.

View File

@ -1,9 +1,9 @@
---
title: Find branches not containing a commit
tags: branch,commit
type: snippet
tags: [branch,commit]
cover: blue-sunrise
firstSeen: 2021-04-05T09:47:59+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints all the branches not containing a specific commit.

View File

@ -1,10 +1,10 @@
---
title: Change the remote URL
tags: repository
type: snippet
tags: [repository]
author: chalarangelo
cover: rocky-lake
firstSeen: 2021-04-08T19:42:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Changes the URL of the remote repository.

View File

@ -1,10 +1,10 @@
---
title: Clone missing submodules
tags: repository,submodule
type: snippet
tags: [repository,submodule]
author: chalarangelo
cover: forest-balcony
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Clones missing submodules and checks out commits.

View File

@ -1,9 +1,9 @@
---
title: Clone a repository
tags: repository,remote
type: snippet
tags: [repository,remote]
cover: fruit-feast
firstSeen: 2021-04-04T14:04:05+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Clones an existing repository, creating a local copy of it.

View File

@ -1,9 +1,10 @@
---
title: Change the last commit's author
tags: commit
type: snippet
tags: [commit]
author: chalarangelo
cover: symmetry-cloudy-mountain
firstSeen: 2022-05-03T05:00:00-04:00
dateModified: 2022-05-03T05:00:00-04:00
---
Updates the last commit's author without changing its contents.

View File

@ -1,9 +1,9 @@
---
title: Create a commit by a different author
tags: commit
type: snippet
tags: [commit]
cover: new-plant
firstSeen: 2021-04-13T20:07:27+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Creates a new commit by the specified author.

View File

@ -1,10 +1,10 @@
---
title: Add a commit message template
tags: repository,configuration
type: snippet
tags: [repository,configuration]
author: chalarangelo
cover: river-house-lights
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Sets up a commit message template for the current repository.

View File

@ -1,9 +1,9 @@
---
title: Commit without running git hooks
tags: commit
type: snippet
tags: [commit]
cover: fishermen
firstSeen: 2021-04-04T20:55:26+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Creates a new commit skipping the pre-commit and commit-msg hooks.

View File

@ -1,9 +1,9 @@
---
title: Configure git user information
tags: configuration,repository
type: snippet
tags: [configuration,repository]
cover: pineapple-at-work
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Configures user information for git.

View File

@ -1,10 +1,10 @@
---
title: Copy a file from another branch
tags: branch
type: snippet
tags: [branch]
author: chalarangelo
cover: sea-view-2
firstSeen: 2021-04-06T20:58:25+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Copies a file from another branch to the current branch.

View File

@ -1,9 +1,9 @@
---
title: Create a new branch
tags: branch,remote
type: snippet
tags: [branch,remote]
cover: flower-pond
firstSeen: 2021-04-04T14:09:09+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Creates and switches to a new branch, optionally setting up a remote tracking branch.

View File

@ -1,9 +1,9 @@
---
title: Create a commit
tags: commit
type: snippet
tags: [commit]
cover: baloons-field
firstSeen: 2021-04-04T14:16:38+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Creates a new commit containing the staged changes.

View File

@ -1,9 +1,9 @@
---
title: Create an empty commit
tags: commit
type: snippet
tags: [commit]
cover: colorful-plastic
firstSeen: 2021-04-04T20:55:26+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Creates an empty commit.

View File

@ -1,10 +1,10 @@
---
title: Create a fixup commit
tags: commit
type: snippet
tags: [commit]
author: chalarangelo
cover: tools
firstSeen: 2021-04-08T19:51:24+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Creates a fixup commit that can be autosquashed in the next rebase.

View File

@ -1,9 +1,9 @@
---
title: Create a new repository
tags: repository
type: snippet
tags: [repository]
cover: violin
firstSeen: 2021-04-04T14:04:05+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Initializes a new git repository, setting up all the configuration files needed by git.

View File

@ -1,9 +1,9 @@
---
title: Get the current branch name
tags: branch
type: snippet
tags: [branch]
cover: cherry-trees
firstSeen: 2021-04-04T21:50:46+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints the current branch name.

View File

@ -1,9 +1,9 @@
---
title: Delete a branch
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: volcano-sunset
firstSeen: 2021-04-04T21:50:29+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes a local branch.

View File

@ -1,9 +1,9 @@
---
title: Delete detached branches
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: brown-bird
firstSeen: 2021-04-08T19:42:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes all detached branches.

View File

@ -1,9 +1,9 @@
---
title: Delete merged branches
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: duck-plants
firstSeen: 2021-04-08T19:42:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes all local merged branches.

View File

@ -1,9 +1,9 @@
---
title: Delete a remote branch
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: waves-from-above
firstSeen: 2021-04-08T19:42:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes a remote branch.

View File

@ -1,10 +1,10 @@
---
title: Delete a stash
tags: repository,stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: budapest-palace
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes a specific stash.

View File

@ -1,10 +1,10 @@
---
title: Delete all stashes
tags: repository,stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: little-tree
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes all stashes.

View File

@ -1,10 +1,10 @@
---
title: Delete a submodule
tags: repository,submodule
type: snippet
tags: [repository,submodule]
author: chalarangelo
cover: silver-flat-screen
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Deletes a submodule from the repository.

View File

@ -1,10 +1,10 @@
---
title: View difference between two branches
tags: branch
type: snippet
tags: [branch]
author: chalarangelo
cover: two-doors
firstSeen: 2021-04-08T16:30:44+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Displays the difference between two branches.

View File

@ -1,9 +1,10 @@
---
title: Disable fast forward merging by default
tags: configuration,repository
type: snippet
tags: [configuration,repository]
author: chalarangelo
cover: people-on-beach
firstSeen: 2021-07-03T05:00:00-04:00
dateModified: 2021-07-03T05:00:00-04:00
---
Disables the default fast forwarding on merge commits.

View File

@ -1,9 +1,9 @@
---
title: Discard uncommitted changes
tags: branch
type: snippet
tags: [branch]
cover: arrays
firstSeen: 2021-04-06T11:11:08+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Discards all uncommitted changes to the current branch.

View File

@ -1,9 +1,9 @@
---
title: Discard untracked changes
tags: branch
type: snippet
tags: [branch]
cover: cold-mountains
firstSeen: 2021-04-06T11:11:08+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Discards all untracked changes to the current branch.

View File

@ -1,9 +1,9 @@
---
title: Edit git configuration file
tags: configuration
type: snippet
tags: [configuration]
cover: terminal
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Opens the git configuration file in the git text editor.

View File

@ -1,9 +1,9 @@
---
title: Fetch latest changes from remote
tags: repository
type: snippet
tags: [repository]
cover: playing-fetch
firstSeen: 2021-04-08T19:43:13+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Fetches the latest changes from the remote.

View File

@ -1,10 +1,10 @@
---
title: Find lost files
tags: repository
type: snippet
tags: [repository]
author: chalarangelo
cover: hard-disk
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a list of lost files and commits.

View File

@ -1,10 +1,10 @@
---
title: Update remote branch after rewriting history
tags: branch
type: snippet
tags: [branch]
author: chalarangelo
cover: compass
firstSeen: 2021-04-06T19:47:19+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Forces an update of the remote branch after rewriting the history locally.

View File

@ -1,10 +1,10 @@
---
title: Perform an interactive rebase
tags: branch
type: snippet
tags: [branch]
author: chalarangelo
cover: tea-laptop-table
firstSeen: 2021-04-08T20:10:35+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Performs an interactive rebase.

View File

@ -1,10 +1,10 @@
---
title: Configure line endings
tags: repository,configuration
type: snippet
tags: [repository,configuration]
author: chalarangelo
cover: leaves-read
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Configures the line endings for a repository.

View File

@ -1,9 +1,9 @@
---
title: List all git aliases
tags: configuration
type: snippet
tags: [configuration]
cover: book-chair
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a list of all git aliases.

View File

@ -1,10 +1,10 @@
---
title: Lists all stashes
tags: repository,stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: golden-gate-bridge
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Displays a list of all stashes.

View File

@ -1,10 +1,10 @@
---
title: Manually find the commit that introduced a bug
tags: commit,branch
type: snippet
tags: [commit,branch]
author: chalarangelo
cover: blue-computer
firstSeen: 2021-04-13T20:00:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 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,9 +1,9 @@
---
title: Merge a branch and create a merge commit
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: meteora
firstSeen: 2021-04-04T21:50:11+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Merges a branch into the current branch, creating a merge commit.

View File

@ -1,9 +1,9 @@
---
title: Merge a branch
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: sparkles
firstSeen: 2021-04-04T21:50:11+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Merges a branch into the current branch.

View File

@ -1,10 +1,10 @@
---
title: Move commits from master to a new branch
tags: branch,repository
type: snippet
tags: [branch,repository]
author: chalarangelo
cover: red-succulent
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Moves local commits from the `master` branch to a new branch.

View File

@ -1,10 +1,10 @@
---
title: Optimize the local repository
tags: repository
type: snippet
tags: [repository]
author: chalarangelo
cover: automaton
firstSeen: 2021-04-08T19:42:43+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Optimizes the local repository.

View File

@ -1,10 +1,10 @@
---
title: Pick changes from one or more commits
tags: commit,branch
type: snippet
tags: [commit,branch]
author: chalarangelo
cover: sunflowers
firstSeen: 2021-04-08T16:42:37+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Applies the changes introduced by one or more commits.

View File

@ -1,10 +1,10 @@
---
title: Pull all submodules from remote
tags: repository,submodule
type: snippet
tags: [repository,submodule]
author: chalarangelo
cover: workspace-with-speaker
firstSeen: 2021-04-08T20:05:15+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Pulls all submodules from their respective remotes.

View File

@ -1,9 +1,9 @@
---
title: Pull latest changes from remote
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: last-light
firstSeen: 2021-04-08T19:42:23+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Pulls the latest changes from the remote tracking branch.

View File

@ -1,10 +1,10 @@
---
title: Purge a file from history
tags: repository,remote
type: snippet
tags: [repository,remote]
author: chalarangelo
cover: white-flower
firstSeen: 2021-04-13T20:20:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Completely purges a file from history.

View File

@ -1,9 +1,9 @@
---
title: Push local changes to remote
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: dark-cloud
firstSeen: 2021-04-08T19:42:23+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Pushes the current branch's changes to the remote.

View File

@ -1,9 +1,9 @@
---
title: Rebase onto another branch
tags: branch
type: snippet
tags: [branch]
cover: sliced-fruits
firstSeen: 2021-04-05T11:19:54+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Rebases the current branch onto another branch.

View File

@ -1,9 +1,9 @@
---
title: Remove a file from the last commit
tags: commit
type: snippet
tags: [commit]
cover: cancel-typographer
firstSeen: 2021-04-05T11:19:41+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Removes a file from the last commit without changing its message.

View File

@ -1,9 +1,9 @@
---
title: Rename a branch
tags: branch
type: snippet
tags: [branch]
cover: bug
firstSeen: 2021-04-05T09:48:16+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Renames a local branch.

View File

@ -1,9 +1,9 @@
---
title: Rename remote branch
tags: branch
type: snippet
tags: [branch]
cover: horse-sunset
firstSeen: 2021-04-05T09:48:16+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Renames a branch both locally and on the remote.

View File

@ -1,9 +1,9 @@
---
title: Reset master to match remote
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: old-consoles
firstSeen: 2021-04-06T16:58:58+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Resets the local `master` branch to match the one on the remote.

View File

@ -1,10 +1,10 @@
---
title: Restore a deleted file
tags: branch
type: snippet
tags: [branch]
author: chalarangelo
cover: succulent-red-light
firstSeen: 2021-04-06T20:58:25+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Restores a file deleted in a specific commit.

View File

@ -1,9 +1,9 @@
---
title: Rewind back n commits
tags: branch,commit
type: snippet
tags: [branch,commit]
cover: lake-trees
firstSeen: 2021-04-05T11:19:21+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Rewinds the current branch by a given number of commits.

View File

@ -1,9 +1,9 @@
---
title: Rewind back to a specific commit
tags: branch,commit
type: snippet
tags: [branch,commit]
cover: walking
firstSeen: 2021-04-05T11:19:21+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Rewinds the current branch by a given number of commits.

View File

@ -1,10 +1,10 @@
---
title: Create a stash
tags: repository,stash
type: snippet
tags: [repository,stash]
author: chalarangelo
cover: purple-leaves
firstSeen: 2021-04-13T19:36:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Saves the current state of the working directory and index into a new stash.

View File

@ -1,9 +1,10 @@
---
title: Set default push branch name
tags: configuration,branch
type: snippet
tags: [configuration,branch]
author: chalarangelo
cover: pink-flower
firstSeen: 2021-06-30T05:00:00-04:00
dateModified: 2021-06-30T05:00:00-04:00
---
Use the name of the current branch when pushing by default as the name of the remote branch.

View File

@ -1,9 +1,9 @@
---
title: Configure the git text editor
tags: configuration
type: snippet
tags: [configuration]
cover: purple-sunset-beach
firstSeen: 2021-04-04T21:25:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Configures the text editor used by git.

View File

@ -1,10 +1,10 @@
---
title: View branches sorted by date
tags: repository,branch
type: snippet
tags: [repository,branch]
author: chalarangelo
cover: sea-view
firstSeen: 2021-04-06T21:35:01+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a list of all local branches sorted by date.

View File

@ -1,9 +1,9 @@
---
title: Add files to the staging area
tags: commit
type: snippet
tags: [commit]
cover: round-leaves
firstSeen: 2021-04-06T16:39:37+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Adds files to the staging area.

View File

@ -1,9 +1,9 @@
---
title: Switch to a branch
tags: branch
type: snippet
tags: [branch]
cover: bridge
firstSeen: 2021-04-04T14:09:09+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Switches to an existing branch.

View File

@ -1,9 +1,9 @@
---
title: Return to previous branch
tags: branch
type: snippet
tags: [branch]
cover: beach-riders
firstSeen: 2021-04-04T14:13:31+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Switches back to the last branch.

View File

@ -1,9 +1,9 @@
---
title: Undo a commit
tags: commit,branch
type: snippet
tags: [commit,branch]
cover: mask-quiet
firstSeen: 2021-04-06T16:54:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Undoes a specified commit without rewriting history.

View File

@ -1,9 +1,9 @@
---
title: Undo the last commit
tags: commit,branch
type: snippet
tags: [commit,branch]
cover: racoon
firstSeen: 2021-04-06T16:54:22+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Undoes the last commit without rewriting history.

View File

@ -1,10 +1,10 @@
---
title: Remove files from the staging area
tags: commit
type: snippet
tags: [commit]
author: chalarangelo
cover: coconuts
firstSeen: 2021-04-06T19:38:51+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Removes files from the staging area.

View File

@ -1,9 +1,9 @@
---
title: Edit the last commit
tags: commit
type: snippet
tags: [commit]
cover: tram-car
firstSeen: 2021-04-04T14:36:07+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Updates the last commit's contents without changing its message.

View File

@ -1,9 +1,9 @@
---
title: Change the last commit's message
tags: commit
type: snippet
tags: [commit]
cover: greek-coffee
firstSeen: 2021-04-04T14:36:07+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Updates the last commit's message without changing its contents.

View File

@ -1,9 +1,9 @@
---
title: View local branches
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: aerial-view-port
firstSeen: 2021-04-04T14:05:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a list of all local branches.

View File

@ -1,10 +1,10 @@
---
title: View a summary of changes between two commits
tags: repository,branch
type: snippet
tags: [repository,branch]
author: chalarangelo
cover: taking-photos
firstSeen: 2021-04-06T22:21:04+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a summary of changes between two given commits.

View File

@ -1,9 +1,9 @@
---
title: View a visual graph of the repository
tags: repository
type: snippet
tags: [repository]
cover: city-view
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a visual graph of all commits and branches in the repository.

View File

@ -1,9 +1,9 @@
---
title: View commits by author
tags: repository,commit
type: snippet
tags: [repository,commit]
cover: comic-glasses
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints all commits by the specified author.

View File

@ -1,9 +1,9 @@
---
title: View commits that manipulated a specific string
tags: commit
type: snippet
tags: [commit]
cover: bunny-poster
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a list of all commits that manipulated a given string.

View File

@ -1,9 +1,9 @@
---
title: View commits in a specific date range
tags: repository,commit
type: snippet
tags: [repository,commit]
cover: organizer
firstSeen: 2021-04-06T16:28:49+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints all commits in the specified date range.

View File

@ -1,9 +1,9 @@
---
title: View a short summary of commits without merge commits
tags: repository,commit
type: snippet
tags: [repository,commit]
cover: river-flow
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a short summary of all commits excluding merge commits.

View File

@ -1,9 +1,9 @@
---
title: View a short summary of commits
tags: repository,commit
type: snippet
tags: [repository,commit]
cover: highlands
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a short summary of all commits.

View File

@ -1,10 +1,10 @@
---
title: View differences in changes
tags: commit,branch
type: snippet
tags: [commit,branch]
author: chalarangelo
cover: plant-candle
firstSeen: 2021-04-08T16:30:44+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Displays differences between staged or unstaged changes and the last commit.

View File

@ -1,9 +1,9 @@
---
title: View last commit
tags: commit
type: snippet
tags: [commit]
cover: green-plant
firstSeen: 2021-04-06T11:22:55+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints the last commit.

View File

@ -1,9 +1,9 @@
---
title: View merged branches
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: cobbled-street
firstSeen: 2021-04-08T19:43:13+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a list of all merged local branches.

View File

@ -1,10 +1,10 @@
---
title: View the remote URL
tags: repository
type: snippet
tags: [repository]
author: chalarangelo
cover: red-mountain
firstSeen: 2021-04-08T19:42:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Displays the URL of the remote repository.

View File

@ -1,10 +1,10 @@
---
title: View current status
tags: branch
type: snippet
tags: [branch]
author: chalarangelo
cover: periscope
firstSeen: 2021-04-06T20:58:33+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 2021-04-13T21:10:59+03:00
---
Prints the current status of the working tree.

View File

@ -1,9 +1,9 @@
---
title: View "undo" history
tags: repository,branch
type: snippet
tags: [repository,branch]
cover: rock-climbing
firstSeen: 2021-04-06T16:35:56+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
dateModified: 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.