Questions tagged [bare]
37 questions
61
votes
2 answers
How can I remove the working copy from a Mercurial clone?
When cloning a repository with mercurial you can pass the -U/--noupdate flag to create a clone with no working copy. Can I remove the working copy if I forget to pass this flag at clone time? And if so, how?
This is conceptually similar to this git…

richq
- 55,548
- 20
- 150
- 144
13
votes
6 answers
cmd dir /b/s plus date
I am looking for a cmd shell command in Windows XP, like "dir /b/s" that includes date and time values for each file in result. All data - path, filename and date/time - need to be on one line. Can anyone provide a command to accomplish this? Thank…

user1483922
- 131
- 1
- 1
- 3
6
votes
2 answers
Is a Bitbucket repository "--bare" or not?
I just created a Bitbucket account and already made a few commits to the Bitbucket server. I also invited my team to check the Bitbucket repo for changes.
But, after a while, I found an article saying that every shared repo should be a --bare…

mochadwi
- 1,190
- 9
- 32
- 87
4
votes
2 answers
Git update log of a bare repository
I need to regularly extract the git logs for all branches of several repositories.
While I could clone them and then perform a git fetch, I thought about saving some disk space and time and only cloning them as bare:
git clone --bare repoUrl
After…

Fabio
- 491
- 3
- 10
4
votes
1 answer
Rename branches in git bare repository
Is it ok to rename branches in bare repository at packed-refs file?
I want to rename it from:
# pack-refs with: peeled fully-peeled
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa refs/heads/master
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb refs/heads/new
to:
#…

Dmitriy Kozmenko
- 1,027
- 7
- 14
3
votes
2 answers
git push new file to a bare repo failed: "error: src refspec master does not match any." Why?
I was trying this:
mkdir ~/gitremote
cd ~/gitremote
git init --bare
I can see file names like
HEAD config hooks objects
branches description info refs
OK, then in another directory,
git clone…

Troskyvs
- 7,537
- 7
- 47
- 115
2
votes
2 answers
Is there a way to push git lfs to bare repository
Describe the issue
cannot push to the bare repository
I'm new to git, and I don't know if my operation is right.
create a bare repo in computer A, and install lfs, and then share the folder to the local network
clone the bare repo to computer B and…

XY W
- 21
- 2
2
votes
1 answer
Bare expo app won't compile for Ios: Showing All Messages Build input file cannot be found
I created a Bare expo app and tried to run react-native run-ios, I'm getting the following error:
Showing All Messages
Build input file cannot be found:…

Tomas Gonzalez
- 188
- 2
- 8
2
votes
1 answer
Git, incorrect path (missing /'s) to bare repo that was cloned
I am trying to determine the best practice for creating a bare repo on a local shared drive and pushing to that repo from local users. This is surprisingly not well documented or I have a bug.
The OS is Win10 and I've installed git2.23.0-64. The…
user7338252
2
votes
1 answer
Git hangs on push --set-upstream
I just recently reinitialized a bare git repository that we have been using for quite awhile and i of course have forgotten the specific settings I setup on it so i am encountering problems. I am able to init the repo, clone it to my local computer,…

bladexeon
- 696
- 3
- 10
- 31
2
votes
1 answer
Softlayer JAVA API sample to order "Hourly/Pre-set Configuration Bare Metal Servers"
I'm working to get a way to order Bare Metal Server with GPU on Softlayer (hourly) with Java language. There are some fragment messages about this, but I cannot find a whole sample for Java. With current information, I should can get the target at…

vfivept
- 35
- 6
2
votes
1 answer
Git - Can't push to local bare repo on Windows
I've received a bare git repository to work on - let's call it bare.git.
I've saved it into D:/workspace/bare.git and cloned it
$git clone bare.git bare
Everything worked normally untill I wanted to push my changes. I've received the following git…

W17chM4n
- 21
- 2
2
votes
3 answers
Is there any legitimate use for bare strings in PHP?
This question got me thinking about bare strings.
When PHP sees a string that's not enclosed in quotes, it first checks to see if it's a constant. If not, it just assumes it's a string and goes on anyway. So for example if I have
echo $foo[bar];
If…

Robert
- 6,660
- 5
- 39
- 62
1
vote
0 answers
Uncaught (in promise) Error: Unable to resolve bare specifier '@microsoft/signalr'
I want to use signalR in RazorPages web
In typescript file:
import * as signalR from "@microsoft/signalr";
Create a connection to hub.
const connection = new signalR.HubConnectionBuilder()
.withUrl("/hub")
…

Thang07
- 11
- 2
1
vote
1 answer
Convert Expo managed workflow to bare React Native
I am going to convert current expo project from Expo managed workflow to bare React Native to use react-native-branch.
I run this command on terminal.
expo eject
I can run app on local environment, but debug and release apk is not working.

AngelDev
- 106
- 1
- 4