create notes file on git
This commit is contained in:
parent
aded939a5d
commit
09ce26cbde
25
git.md
Executable file
25
git.md
Executable file
@ -0,0 +1,25 @@
|
||||
---
|
||||
author: Alvie Rahman
|
||||
date: \today
|
||||
title: Git notes
|
||||
---
|
||||
|
||||
|
||||
# Fix detached head
|
||||
|
||||
From https://stackoverflow.com/a/10229202 :
|
||||
|
||||
## To Delete Changes
|
||||
|
||||
```
|
||||
git checkout main
|
||||
```
|
||||
|
||||
## To Keep Changes
|
||||
|
||||
```
|
||||
git branch temp
|
||||
git checkout main
|
||||
git pull . temp
|
||||
git branch -D temp
|
||||
```
|
Loading…
Reference in New Issue
Block a user