question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: init bare repository

See original GitHub issue

Hi, is there any ongoing development for the equivalent feature of native git init --bare?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
wmhiltoncommented, Dec 2, 2018

it might be good if we have a boolean bare option which automatically sets gitdir to the same as dir.

Your wish is my command! 😉

2reactions
mojavelinuxcommented, Nov 30, 2018

@yuhr You also need to specify noCheckout so that isomorphic-git doesn’t create the files for the current branch in the worktree.

await git.init({ dir, gitdir: dir, noCheckout: true })
Read more comments on GitHub >

github_iconTop Results From Across the Web

Quickly create a Git bare repo with init or clone example
There are two ways to create a bare Git repo: ... Obviously, you should use the bare git init approach when you are...
Read more >
How do you use "git --bare init" repository? - Stack Overflow
Bare repository is the one that has no working tree. It means its whole contents is what you have in .git directory. You...
Read more >
git init | Atlassian Git Tutorial
The git init command creates a new Git repository. It can be used to convert an existing, unversioned project to a Git repository...
Read more >
What is a Bare Git Repository? – DEVOPS DONE RIGHT - Blog
Now talking about a Bare Repository, it is simply initialized by using git init --bare command. No commits can be made in a...
Read more >
git-init Documentation - Git
This command creates an empty Git repository - basically a .git directory with subdirectories for objects , refs/heads , refs/tags , and template...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found