note how to use git with sha256
This commit is contained in:
parent
3b04aaf8be
commit
8e64f8f58e
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user