2025-08-18 20:01:21
This commit is contained in:
@@ -32,12 +32,12 @@ git remote add private https://<git_domain>/<username>/project-private.git
|
||||
|
||||
|
||||
## Branch
|
||||
List all branches:
|
||||
List all branches, the branch where you are currently working is marked with an asterisk (*):
|
||||
``` bash
|
||||
git branch -a
|
||||
```
|
||||
|
||||
Move to a specific branch, the branch where you are currently working is marked with an asterisk (*):
|
||||
Move to a specific branch:
|
||||
``` bash
|
||||
git checkout <branch_name>
|
||||
```
|
||||
|
||||
11
content/en/notes/coding/cheat_sheet/git/index.md
Normal file
11
content/en/notes/coding/cheat_sheet/git/index.md
Normal file
@@ -0,0 +1,11 @@
|
||||
+++
|
||||
title = 'Git'
|
||||
date = 2024-09-20T04:17:50Z
|
||||
draft = false
|
||||
+++
|
||||
|
||||
## Commit
|
||||
1. Add date and time in commit messages:
|
||||
``` bash
|
||||
git commit -m "$(date '+%Y-%m-%d %H:%M:%S')"
|
||||
```
|
||||
Reference in New Issue
Block a user