from github to this gitea
This commit is contained in:
16
git create branch from commit.md
Normal file
16
git create branch from commit.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
alias: "create branch from commit"
|
||||
name: "create branch from commit"
|
||||
---
|
||||
up::[[Git Branches]]
|
||||
title::"`git checkout -b <branch_name> <commit_sha>`"
|
||||
title::"`git branch <branch_name> <commit_sha>`"
|
||||
#informatique
|
||||
|
||||
----
|
||||
|
||||
```bash
|
||||
$> git checkout -b <branch_name> <commit_sha> # create and switch to the new branch
|
||||
$> git branch <branch_name> <commit_sha> # create but don't switch
|
||||
```
|
||||
|
Reference in New Issue
Block a user