Solve common git scenarios and problems!
Basic workflow
# add elements
git add -A
## Install Homebrew - Instructions: https://brew.sh | |
## Check brew is avaliable | |
which brew | |
# if it returns: /usr/local/bin/brew | |
# it means that homebrew is installed. | |
# if it returns: brew not found | |
# it means homebrew is not installed. |
<template> | |
<div class="Home"> | |
<div class="Grid"> | |
<div | |
v-for="i in (tiles*tiles)" | |
v-bind:key="i"> | |
</div> | |
</div> |
git reflog
# you will see a list of every thing you've done in git, across all branches!
# each one has an index HEAD@{index}
# find the one before you broke everything
git reset HEAD@{index}