Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documenting git #1

Open
lemanschik opened this issue Dec 14, 2022 · 0 comments
Open

Documenting git #1

lemanschik opened this issue Dec 14, 2022 · 0 comments

Comments

@lemanschik
Copy link
Owner

lemanschik commented Dec 14, 2022

Git

clone bare

mkdir ~/repos
git clone gitUri ~/repos/org/repo.git
mkdir -p ~/worktree/org/repo && git clone --shared ~/repos/org/repo.git ~/worktree/org/repo
cd ~/worktree/org/repo

Basics of distributed Object Storage Databases Graphs B Trees and so on

Checkout with references

Use git clone -s. This will set up a writable repository which references the original repository's object store, so it will have a working tree index but won't store any objects of its own.

git clone --shared /path/to-bare-repo.git .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant