git: list all repos on a remote server?
My git client is set up. Have ssh set up, ssh public is on the git server.
I know there are some repos in that server... how do I list them?
For reference:
server: 192.168.1.230
using SSH
my user name: sam@demosam.com
(I am having trouble really understanding the syntax of git remote add. For example, this command:
git remote add pb git://github.com/paulboone/ticgit.git
I do not understand where the path name, or the .git file come from. also ssh seems to missing.
Another example:
git clone ssh://user@master:path/my_rep
I don't understand the params after // .... what are they?
)
git
add a comment |
My git client is set up. Have ssh set up, ssh public is on the git server.
I know there are some repos in that server... how do I list them?
For reference:
server: 192.168.1.230
using SSH
my user name: sam@demosam.com
(I am having trouble really understanding the syntax of git remote add. For example, this command:
git remote add pb git://github.com/paulboone/ticgit.git
I do not understand where the path name, or the .git file come from. also ssh seems to missing.
Another example:
git clone ssh://user@master:path/my_rep
I don't understand the params after // .... what are they?
)
git
1
What Git software is the server running? It depends on that. You can try doing anssh git@hostname.of.your.serverand see what it tells you. Your other questions are probably better suited as separate posts—I'd take them out here and ask a new question about thegit remotesoftware.
– slhck
Feb 6 '14 at 6:08
See also: stackoverflow.com/questions/10183724/…
– Edward Ross
Jun 28 '17 at 15:50
add a comment |
My git client is set up. Have ssh set up, ssh public is on the git server.
I know there are some repos in that server... how do I list them?
For reference:
server: 192.168.1.230
using SSH
my user name: sam@demosam.com
(I am having trouble really understanding the syntax of git remote add. For example, this command:
git remote add pb git://github.com/paulboone/ticgit.git
I do not understand where the path name, or the .git file come from. also ssh seems to missing.
Another example:
git clone ssh://user@master:path/my_rep
I don't understand the params after // .... what are they?
)
git
My git client is set up. Have ssh set up, ssh public is on the git server.
I know there are some repos in that server... how do I list them?
For reference:
server: 192.168.1.230
using SSH
my user name: sam@demosam.com
(I am having trouble really understanding the syntax of git remote add. For example, this command:
git remote add pb git://github.com/paulboone/ticgit.git
I do not understand where the path name, or the .git file come from. also ssh seems to missing.
Another example:
git clone ssh://user@master:path/my_rep
I don't understand the params after // .... what are they?
)
git
git
asked Feb 6 '14 at 4:47
Sam JonesSam Jones
1,13431229
1,13431229
1
What Git software is the server running? It depends on that. You can try doing anssh git@hostname.of.your.serverand see what it tells you. Your other questions are probably better suited as separate posts—I'd take them out here and ask a new question about thegit remotesoftware.
– slhck
Feb 6 '14 at 6:08
See also: stackoverflow.com/questions/10183724/…
– Edward Ross
Jun 28 '17 at 15:50
add a comment |
1
What Git software is the server running? It depends on that. You can try doing anssh git@hostname.of.your.serverand see what it tells you. Your other questions are probably better suited as separate posts—I'd take them out here and ask a new question about thegit remotesoftware.
– slhck
Feb 6 '14 at 6:08
See also: stackoverflow.com/questions/10183724/…
– Edward Ross
Jun 28 '17 at 15:50
1
1
What Git software is the server running? It depends on that. You can try doing an
ssh git@hostname.of.your.server and see what it tells you. Your other questions are probably better suited as separate posts—I'd take them out here and ask a new question about the git remote software.– slhck
Feb 6 '14 at 6:08
What Git software is the server running? It depends on that. You can try doing an
ssh git@hostname.of.your.server and see what it tells you. Your other questions are probably better suited as separate posts—I'd take them out here and ask a new question about the git remote software.– slhck
Feb 6 '14 at 6:08
See also: stackoverflow.com/questions/10183724/…
– Edward Ross
Jun 28 '17 at 15:50
See also: stackoverflow.com/questions/10183724/…
– Edward Ross
Jun 28 '17 at 15:50
add a comment |
1 Answer
1
active
oldest
votes
Follow below simple steps...
first of all create separate user for accessing git service from that server it will separate other users from this account (Just for convenience else you can use same )
to do so you can follow steps at http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server.
git clone git@192.168.1.230:path/my_rep
git = > user
192.168.1.230=> server IP
my_repo => will be .git directory which is you actual repository folder
After you add files on this repo and create multiple branhes
you can list them using following command
git branch -r // -r for remote branches
Hope it helps ..!!!
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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 Google
Sign up using Facebook
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%2fsuperuser.com%2fquestions%2f713004%2fgit-list-all-repos-on-a-remote-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Follow below simple steps...
first of all create separate user for accessing git service from that server it will separate other users from this account (Just for convenience else you can use same )
to do so you can follow steps at http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server.
git clone git@192.168.1.230:path/my_rep
git = > user
192.168.1.230=> server IP
my_repo => will be .git directory which is you actual repository folder
After you add files on this repo and create multiple branhes
you can list them using following command
git branch -r // -r for remote branches
Hope it helps ..!!!
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
add a comment |
Follow below simple steps...
first of all create separate user for accessing git service from that server it will separate other users from this account (Just for convenience else you can use same )
to do so you can follow steps at http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server.
git clone git@192.168.1.230:path/my_rep
git = > user
192.168.1.230=> server IP
my_repo => will be .git directory which is you actual repository folder
After you add files on this repo and create multiple branhes
you can list them using following command
git branch -r // -r for remote branches
Hope it helps ..!!!
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
add a comment |
Follow below simple steps...
first of all create separate user for accessing git service from that server it will separate other users from this account (Just for convenience else you can use same )
to do so you can follow steps at http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server.
git clone git@192.168.1.230:path/my_rep
git = > user
192.168.1.230=> server IP
my_repo => will be .git directory which is you actual repository folder
After you add files on this repo and create multiple branhes
you can list them using following command
git branch -r // -r for remote branches
Hope it helps ..!!!
Follow below simple steps...
first of all create separate user for accessing git service from that server it will separate other users from this account (Just for convenience else you can use same )
to do so you can follow steps at http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server.
git clone git@192.168.1.230:path/my_rep
git = > user
192.168.1.230=> server IP
my_repo => will be .git directory which is you actual repository folder
After you add files on this repo and create multiple branhes
you can list them using following command
git branch -r // -r for remote branches
Hope it helps ..!!!
answered Feb 6 '14 at 8:11
jnixjnix
101
101
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
add a comment |
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
The question is how to list repositories not branches
– Edward Ross
Jun 28 '17 at 15:48
add a comment |
Thanks for contributing an answer to Super User!
- 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 Google
Sign up using Facebook
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%2fsuperuser.com%2fquestions%2f713004%2fgit-list-all-repos-on-a-remote-server%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 Google
Sign up using Facebook
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 Google
Sign up using Facebook
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 Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
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
1
What Git software is the server running? It depends on that. You can try doing an
ssh git@hostname.of.your.serverand see what it tells you. Your other questions are probably better suited as separate posts—I'd take them out here and ask a new question about thegit remotesoftware.– slhck
Feb 6 '14 at 6:08
See also: stackoverflow.com/questions/10183724/…
– Edward Ross
Jun 28 '17 at 15:50