Skip to content

Git

submodule

Bash
1
2
3
git submodule add repository_url path/to/directory
git submodule update --init --recursive
git submodule foreach git pull

LFS

Bash
# >= 2.16
git lfs untrack "<pattern>"
git add --renormalize .
git commit -m "Restore file contents that were previously in LFS"

# normal
git lfs untrack '<file-type>'
git rm --cached '<file-type>'
git add '<file-type>'
git commit -m "restore '<file-type>' to git from lfs"

加密

原则上来说,不应该在里面放密钥等敏感信息

托管

  • Github 100G?5
  • Azure Repos 250G, recommend 10G6

ref