Questions tagged [bare]

35 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
  • 52,738
  • 20
  • 144
  • 141
10
votes
4 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
  • 101
  • 1
  • 1
  • 3
5
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
  • 759
  • 8
  • 24
  • 75
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
  • 341
  • 2
  • 7
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
  • 5,653
  • 3
  • 23
  • 71
3
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
  • 917
  • 6
  • 13
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:…
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
  • 606
  • 2
  • 8
  • 28
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
  • 5
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,182
  • 5
  • 33
  • 58
1
vote
2 answers

Websercice that has SOAPBinding.ParameterStyle.BARE requires all method (include non WEBMETHOD) has only one parameter as input

i am using cxf 2.x to develop a webservice. Here is my web service class @WebService(name = "XXXWS", targetNamespace = "http://www.XXX.com/XXXWS", portName = "XXXWSPort", serviceName = "XXXWSService") @SOAPBinding(parameterStyle =…
David
  • 3,072
  • 8
  • 32
  • 45
1
vote
1 answer

cloning bare git repository and tracking files in other locations

Recently I've created a bare git repository so i can backup my configuration files (dotfiles) which are located in many places, some under the root directory. The idea was to have a repo on github so I can store the files there and update them from…
prophet-five
  • 429
  • 3
  • 12
1
vote
1 answer

Git: Difficulty Getting Existing Git Repository to Track New Bare Remote Repository

Summary: I'm having difficulty getting an existing local repository to track a new bare remote repository. What I've tried: I've attempted to push my local repo to the new bare repo while setting upstream tracking. Git tells me upstream tracking is…
David Mays
  • 73
  • 5
1
2 3