When I try to perform the following command, git clone git://github.com/mainDir/dirA
, I get the following error:
> git clone git://github.com/mainDir/dirA
Cloning into 'dirA'...
fatal: remote error: access denied or repository not exported: /8/nw/87/1e/aa/2154553/2154553.git
git://github.com/mainDir
is a private repository
If I try to use github for the mac… I see the message Cannot find repository
.
For sure the problem is in my desktop (client part) because I know how to reproduce the problem:
1) git clone repo
on my desktop (it works)
2) rm -rf repo
3) git clone repo
and I get the error
How can I fix this problem?
asked Apr 23, 2012 at 17:23
underscore666underscore666
1,7094 gold badges24 silver badges37 bronze badges
Is it actually a private repository? If so, I don’t believe that
git clone git://github.com/mainDir/dirA
will work. Try
git clone git@github.com:mainDir/dirA
From github help:
For public repos, the URL can be a read-only URL like git://github.com/user/repo.git or an HTTP read-only URL like http://github.com/user/repo.git. For public repos you own or are a collaborator on, and all private repos, you must use a private ssh url like git@github.com:user/repo.git.
answered Apr 23, 2012 at 22:19
0
Just try using:
git clone http://github.com/mainDir/dirA
or
git clone https://github.com/mainDir/dirA
answered Apr 24, 2014 at 10:37
AnaAna
3122 silver badges9 bronze badges
0
Today this happened to me today when I removed my fork of a certain repo, which was detached from the upstream network a day before. And then I re-forked the upstream under the same account.
First, it was showing me
Forking org_name/repo_name
It should only take a few seconds.
longer than usual.
Then, it got stuck with
This repository is temporarily unavailable.
The backend storage is temporarily offline. Usually this means the storage server is undergoing maintenance. Please contact support if the problem persists.
Check our status site for updates
on the forked repo page.
So I removed it after a while, waited a few hours and forked again.
I think, this is some race condition happening because of GitHub’s eventual consistency.
answered Oct 2, 2019 at 21:52
1
it’s a different problem for real:
git clone git://github.com/mainDir/dirA
looks more like an attempt to clone only subfolder of the mainDir
repository and GIT refuse this functionality for a reason to save the repository integrity. so clone instead:
git clone git://github.com/mainDir
then look for the subfolder required
answered Apr 19, 2018 at 13:37
Oleg KokorinOleg Kokorin
2,0902 gold badges15 silver badges26 bronze badges
- Index
- » Newbie Corner
- » git: fatal: remote error: access denied or repository not exported
Pages: 1
#1 2019-01-10 20:47:49
- prosvetlyonniy
- Banned
- Registered: 2019-01-06
- Posts: 25
git: fatal: remote error: access denied or repository not exported
I’m trying to clone the repository https://git.archlinux.org/svntogit/pack … ages/clang
git clone git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/clang/
fatal: repository 'git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/clang/' does not exist
and next command:
it clone git://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/clang
Cloning into 'clang'...
fatal: remote error: access denied or repository not exported: /svntogit/packages.git/tree/trunk?h=packages/clang
How to clone this repository!
#2 2019-01-10 20:57:34
- loqs
- Member
- Registered: 2014-03-06
- Posts: 15,645
Re: git: fatal: remote error: access denied or repository not exported
git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/clang"
Cloning into 'packages'...
remote: Enumerating objects: 72, done.
remote: Counting objects: 100% (72/72), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 72 (delta 18), reused 54 (delta 3)
Receiving objects: 100% (72/72), 16.16 KiB | 501.00 KiB/s, done.
Resolving deltas: 100% (18/18), done.
#3 2019-01-10 22:02:11
- WorMzy
- Forum Moderator
- From: Scotland
- Registered: 2010-06-16
- Posts: 11,019
- Website
Re: git: fatal: remote error: access denied or repository not exported
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
#4 2019-01-10 22:05:42
- eschwartz
- Fellow
- Registered: 2014-08-08
- Posts: 4,097
Re: git: fatal: remote error: access denied or repository not exported
prosvetlyonniy wrote:
I’m trying to clone the repository https://git.archlinux.org/svntogit/pack … ages/clang
git clone git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/clang/ fatal: repository 'git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/clang/' does not exist
and next command:
it clone git://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/clang Cloning into 'clang'... fatal: remote error: access denied or repository not exported: /svntogit/packages.git/tree/trunk?h=packages/clang
How to clone this repository!
The former is not even a valid git clone url as it does not have a protocol:// and it is not an ssh location.
The latter is simply invalid since that is not a git repository at all. git://git.archlinux.org/svntogit/packages.git is a repository, and the funny queries at the end would require you to learn the options supported by git-clone(1)
But this is all irrelevant. The «asp» package from community is designed to fetch the official repository packages for you, without fiddling around with low-level implementations.
Managing AUR repos The Right Way — aurpublish (now a standalone tool)
#5 2019-01-10 23:10:42
- prosvetlyonniy
- Banned
- Registered: 2019-01-06
- Posts: 25
Re: git: fatal: remote error: access denied or repository not exported
Yes, asp is the best solution
#6 2019-01-11 01:27:09
- 2ManyDogs
- Forum Moderator
- Registered: 2012-01-15
- Posts: 4,256
Re: git: fatal: remote error: access denied or repository not exported
Please remember to mark your thread [SOLVED] (edit the title of your first post).
Please also read https://wiki.archlinux.org/index.php/Co … ow_to_post
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I’m new to git
, and have a server that I have inherited.
I have 2 remote repos that seem to have the same setup. The first one is used for productA and can be accessed remotely as follows:
git clone git://server/productA.git productA
touch newfile
git add newfile
git commit -a
git push
This is where I fail. productA works and productB fails with the following message:
fatal: remote error: access denied or repository not exported: /productB.git
I have looked on the server and can’t seem to find anything that sticks out as being different between the repositories. What am I missing?
edited Nov 14 ’13 at 20:36
asked Nov 14 ’13 at 20:22
I’m new to git
, and have a server that I have inherited.
I have 2 remote repos that seem to have the same setup. The first one is used for productA and can be accessed remotely as follows:
git clone git://server/productA.git productA
touch newfile
git add newfile
git commit -a
git push
This is where I fail. productA works and productB fails with the following message:
fatal: remote error: access denied or repository not exported: /productB.git
I have looked on the server and can’t seem to find anything that sticks out as being different between the repositories. What am I missing?
edited Nov 14 ’13 at 20:36
asked Nov 14 ’13 at 20:22
8
2
I’m new to git
, and have a server that I have inherited.
I have 2 remote repos that seem to have the same setup. The first one is used for productA and can be accessed remotely as follows:
git clone git://server/productA.git productA
touch newfile
git add newfile
git commit -a
git push
This is where I fail. productA works and productB fails with the following message:
fatal: remote error: access denied or repository not exported: /productB.git
I have looked on the server and can’t seem to find anything that sticks out as being different between the repositories. What am I missing?
edited Nov 14 ’13 at 20:36
asked Nov 14 ’13 at 20:22
I’m new to git
, and have a server that I have inherited.
I have 2 remote repos that seem to have the same setup. The first one is used for productA and can be accessed remotely as follows:
git clone git://server/productA.git productA
touch newfile
git add newfile
git commit -a
git push
This is where I fail. productA works and productB fails with the following message:
fatal: remote error: access denied or repository not exported: /productB.git
I have looked on the server and can’t seem to find anything that sticks out as being different between the repositories. What am I missing?
edited Nov 14 ’13 at 20:36
asked Nov 14 ’13 at 20:22
edited Nov 14 ’13 at 20:36
asked Nov 14 ’13 at 20:22
edited Nov 14 ’13 at 20:36
edited Nov 14 ’13 at 20:36
edited Nov 14 ’13 at 20:36
asked Nov 14 ’13 at 20:22
asked Nov 14 ’13 at 20:22
asked Nov 14 ’13 at 20:22
First, you need to move to sub-directory (e.g. productA in your sample), between clone and touch:
git clone git://server/productA.git productA
cd productA
touch newfile
Anyway, it won’t fix your access issue; do you have access to the server permissions?
Maybe your user don’t have the same permission on productA and on productB?
Or maybe the requirements to push are not the same (for instance, there could be some rules to push on the master branch).
answered Oct 22 ’18 at 12:26
Your Answer
StackExchange.ifUsing(«editor», function () {
StackExchange.using(«externalEditor», function () {
StackExchange.using(«snippets», function () {
StackExchange.snippets.init();
});
});
}, «code-snippets»);
StackExchange.ready(function() {
var channelOptions = {
tags: «».split(» «),
id: «1»
};
initTagRenderer(«».split(» «), «».split(» «), channelOptions);
StackExchange.using(«externalEditor», function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using(«snippets», function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: ‘answer’,
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: «»,
imageUploader: {
brandingHtml: «Powered by u003ca class=»icon-imgur-white» href=»https://imgur.com/»u003eu003c/au003e»,
contentPolicyHtml: «User contributions licensed under u003ca href=»https://creativecommons.org/licenses/by-sa/3.0/»u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href=»https://stackoverflow.com/legal/content-policy»u003e(content policy)u003c/au003e»,
allowUrls: true
},
onDemand: true,
discardSelector: «.discard-answer»
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave(‘#login-link’);
});
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2fstackoverflow.com%2fquestions%2f19987597%2fgit-push-fails-with-fatal-remote-error-access-denied-or-repository-not-export%23new-answer’, ‘question_page’);
}
);
Post as a guest
Required, but never shown
First, you need to move to sub-directory (e.g. productA in your sample), between clone and touch:
git clone git://server/productA.git productA
cd productA
touch newfile
Anyway, it won’t fix your access issue; do you have access to the server permissions?
Maybe your user don’t have the same permission on productA and on productB?
Or maybe the requirements to push are not the same (for instance, there could be some rules to push on the master branch).
answered Oct 22 ’18 at 12:26
First, you need to move to sub-directory (e.g. productA in your sample), between clone and touch:
git clone git://server/productA.git productA
cd productA
touch newfile
Anyway, it won’t fix your access issue; do you have access to the server permissions?
Maybe your user don’t have the same permission on productA and on productB?
Or maybe the requirements to push are not the same (for instance, there could be some rules to push on the master branch).
answered Oct 22 ’18 at 12:26
0
First, you need to move to sub-directory (e.g. productA in your sample), between clone and touch:
git clone git://server/productA.git productA
cd productA
touch newfile
Anyway, it won’t fix your access issue; do you have access to the server permissions?
Maybe your user don’t have the same permission on productA and on productB?
Or maybe the requirements to push are not the same (for instance, there could be some rules to push on the master branch).
answered Oct 22 ’18 at 12:26
First, you need to move to sub-directory (e.g. productA in your sample), between clone and touch:
git clone git://server/productA.git productA
cd productA
touch newfile
Anyway, it won’t fix your access issue; do you have access to the server permissions?
Maybe your user don’t have the same permission on productA and on productB?
Or maybe the requirements to push are not the same (for instance, there could be some rules to push on the master branch).
answered Oct 22 ’18 at 12:26
answered Oct 22 ’18 at 12:26
answered Oct 22 ’18 at 12:26
answered Oct 22 ’18 at 12:26
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave(‘#login-link’);
});
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2fstackoverflow.com%2fquestions%2f19987597%2fgit-push-fails-with-fatal-remote-error-access-denied-or-repository-not-export%23new-answer’, ‘question_page’);
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave(‘#login-link’);
});
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave(‘#login-link’);
});
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave(‘#login-link’);
});
Sign up using Email and Password
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown