zerai.xyz/content/post/git-tips.md
2022-08-28 20:09:00 -04:00

27 lines
651 B
Markdown

+++
title = "Git Tips"
date = 2022-08-22T12:58:59-04:00
lastmod = 2022-08-22T12:58:59-04:00
tags = ["git"]
categories = ["Coding"]
imgs = []
cover = "https://images.pexels.com/photos/1181253/pexels-photo-1181253.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" # image show on top
readingTime = true # show reading time after article date
toc = true
comments = false
justify = false # text-align: justify;
single = false # display as a single page, hide navigation on bottom, like as about page.
license = "" # CC License
+++
# Gitignore not working
git rm -rf --cached .
git add .
<!-- more -->
# Recover last commit
git reset HEAD~