note how to use git with sha256

This commit is contained in:
Malin Freeborn 2025-05-14 21:33:16 +02:00
parent 3b04aaf8be
commit 8e64f8f58e
Signed by: andonome
GPG Key ID: 52295D2377F4D70F

View File

@ -16,14 +16,18 @@ git config --global user.name "$YOUR_NAME"
# New Git # New Git
Start a git in directory `$DIR`: Decide on algorithm:
- If you're scared of insecure hash-sums, go with `hash=sha256`.
- If you don't know what a hash sum is, go with `hash=sha1`.
## Init the Git
Start a git in directory `${DIR}`:
```bash ```bash
mkdir $DIR && cd $DIR git init --object-format=${hash} ${DIR}
``` cd ${DIR}
```bash
git init
``` ```
Make a file explaining what the project does, and tell `git` to track it: Make a file explaining what the project does, and tell `git` to track it: