Adding remote in git that is not on GitHub or anyHub
up vote
0
down vote
favorite
Git noobie/intermediate here...
I have a client who says he did git init
in a remote folder so I can make git changes.
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
I see a .git
the folder in there (http://hisdomain/this/is/the/folder/.git)
but I don't know how to add the remote, i.e.
git remote add origin http://hisdomain/this/is/the/folder/.git
doesn't work.
Typically I see something like http://hisdomain/this/is/the/repo.git
for a remote repo, i.e. ending it dot git.
Am I missing the syntax because I can't seem to add the remote correct and get a fatal: repository xyz not found
git
add a comment |
up vote
0
down vote
favorite
Git noobie/intermediate here...
I have a client who says he did git init
in a remote folder so I can make git changes.
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
I see a .git
the folder in there (http://hisdomain/this/is/the/folder/.git)
but I don't know how to add the remote, i.e.
git remote add origin http://hisdomain/this/is/the/folder/.git
doesn't work.
Typically I see something like http://hisdomain/this/is/the/repo.git
for a remote repo, i.e. ending it dot git.
Am I missing the syntax because I can't seem to add the remote correct and get a fatal: repository xyz not found
git
The problem is you should read first the basics for git. try.github.io then i think you can solve your problem on your own. If you want to share the repo you have to clone it from the remote repository that is hosted on a server or a provider like Github.
– Stony
Nov 9 at 22:16
git-scm.com/book/en/Git-on-the-Server
– phd
Nov 9 at 22:18
git-scm.com/book/en/Git-on-the-Server-The-Protocols
– phd
Nov 9 at 22:19
I understand the basics for sure and use git all the time, but I suppose I could have abbreviated my question to: can git work between any local and remote folders without any repo provide, GitLab/Hub,etc.?
– Kirk Ross
Nov 9 at 22:19
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Git noobie/intermediate here...
I have a client who says he did git init
in a remote folder so I can make git changes.
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
I see a .git
the folder in there (http://hisdomain/this/is/the/folder/.git)
but I don't know how to add the remote, i.e.
git remote add origin http://hisdomain/this/is/the/folder/.git
doesn't work.
Typically I see something like http://hisdomain/this/is/the/repo.git
for a remote repo, i.e. ending it dot git.
Am I missing the syntax because I can't seem to add the remote correct and get a fatal: repository xyz not found
git
Git noobie/intermediate here...
I have a client who says he did git init
in a remote folder so I can make git changes.
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
I see a .git
the folder in there (http://hisdomain/this/is/the/folder/.git)
but I don't know how to add the remote, i.e.
git remote add origin http://hisdomain/this/is/the/folder/.git
doesn't work.
Typically I see something like http://hisdomain/this/is/the/repo.git
for a remote repo, i.e. ending it dot git.
Am I missing the syntax because I can't seem to add the remote correct and get a fatal: repository xyz not found
git
git
edited Nov 9 at 22:37
CodeWizard
49k126688
49k126688
asked Nov 9 at 22:10
Kirk Ross
88311336
88311336
The problem is you should read first the basics for git. try.github.io then i think you can solve your problem on your own. If you want to share the repo you have to clone it from the remote repository that is hosted on a server or a provider like Github.
– Stony
Nov 9 at 22:16
git-scm.com/book/en/Git-on-the-Server
– phd
Nov 9 at 22:18
git-scm.com/book/en/Git-on-the-Server-The-Protocols
– phd
Nov 9 at 22:19
I understand the basics for sure and use git all the time, but I suppose I could have abbreviated my question to: can git work between any local and remote folders without any repo provide, GitLab/Hub,etc.?
– Kirk Ross
Nov 9 at 22:19
add a comment |
The problem is you should read first the basics for git. try.github.io then i think you can solve your problem on your own. If you want to share the repo you have to clone it from the remote repository that is hosted on a server or a provider like Github.
– Stony
Nov 9 at 22:16
git-scm.com/book/en/Git-on-the-Server
– phd
Nov 9 at 22:18
git-scm.com/book/en/Git-on-the-Server-The-Protocols
– phd
Nov 9 at 22:19
I understand the basics for sure and use git all the time, but I suppose I could have abbreviated my question to: can git work between any local and remote folders without any repo provide, GitLab/Hub,etc.?
– Kirk Ross
Nov 9 at 22:19
The problem is you should read first the basics for git. try.github.io then i think you can solve your problem on your own. If you want to share the repo you have to clone it from the remote repository that is hosted on a server or a provider like Github.
– Stony
Nov 9 at 22:16
The problem is you should read first the basics for git. try.github.io then i think you can solve your problem on your own. If you want to share the repo you have to clone it from the remote repository that is hosted on a server or a provider like Github.
– Stony
Nov 9 at 22:16
git-scm.com/book/en/Git-on-the-Server
– phd
Nov 9 at 22:18
git-scm.com/book/en/Git-on-the-Server
– phd
Nov 9 at 22:18
git-scm.com/book/en/Git-on-the-Server-The-Protocols
– phd
Nov 9 at 22:19
git-scm.com/book/en/Git-on-the-Server-The-Protocols
– phd
Nov 9 at 22:19
I understand the basics for sure and use git all the time, but I suppose I could have abbreviated my question to: can git work between any local and remote folders without any repo provide, GitLab/Hub,etc.?
– Kirk Ross
Nov 9 at 22:19
I understand the basics for sure and use git all the time, but I suppose I could have abbreviated my question to: can git work between any local and remote folders without any repo provide, GitLab/Hub,etc.?
– Kirk Ross
Nov 9 at 22:19
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
Hosting software like github or gitlab is not required.
If you are able to see their git folder by browsing to, in your example, http://hisdomain/this/is/the/folder/.git
, then the remote URL should be http://hisdomain/this/is/the/folder
. (That is, the URL does not go all the way into the .git
metadata folder; and in fact it would be more typical for the central repo to be bare, so that it wouldn't have a .git
folder at all.) In this scenario, the web server is the only server software required (so long as things are configured correctly on their end).
Also you can use a relative path or file://
URL if you have direct filesystem access to the repo (as in a shared drive).
And it is common to use ssh
as the remote access mechanism as well.
Software like github is popular and can add a lot of useful features for team collaboration, but git does not require them and can be used in distributed fashion on its own.
add a comment |
up vote
0
down vote
git init
I have a client who says he did git init in a remote folder so I can make git changes.
git init
will allow you to start track changes with git in the current folder. The outcome is :
.git
, a folder in the current directorymaster
branch which is the default branch
git remote
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
Git can be attached (git remote
) to any (single or multiple) servers(s) locally or on remote servers.
# Add remote to your git repository
git remote add origin https://github.com/<user>/dummy1.git
# Check to see a list of your remotes
git remote -v
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Hosting software like github or gitlab is not required.
If you are able to see their git folder by browsing to, in your example, http://hisdomain/this/is/the/folder/.git
, then the remote URL should be http://hisdomain/this/is/the/folder
. (That is, the URL does not go all the way into the .git
metadata folder; and in fact it would be more typical for the central repo to be bare, so that it wouldn't have a .git
folder at all.) In this scenario, the web server is the only server software required (so long as things are configured correctly on their end).
Also you can use a relative path or file://
URL if you have direct filesystem access to the repo (as in a shared drive).
And it is common to use ssh
as the remote access mechanism as well.
Software like github is popular and can add a lot of useful features for team collaboration, but git does not require them and can be used in distributed fashion on its own.
add a comment |
up vote
0
down vote
Hosting software like github or gitlab is not required.
If you are able to see their git folder by browsing to, in your example, http://hisdomain/this/is/the/folder/.git
, then the remote URL should be http://hisdomain/this/is/the/folder
. (That is, the URL does not go all the way into the .git
metadata folder; and in fact it would be more typical for the central repo to be bare, so that it wouldn't have a .git
folder at all.) In this scenario, the web server is the only server software required (so long as things are configured correctly on their end).
Also you can use a relative path or file://
URL if you have direct filesystem access to the repo (as in a shared drive).
And it is common to use ssh
as the remote access mechanism as well.
Software like github is popular and can add a lot of useful features for team collaboration, but git does not require them and can be used in distributed fashion on its own.
add a comment |
up vote
0
down vote
up vote
0
down vote
Hosting software like github or gitlab is not required.
If you are able to see their git folder by browsing to, in your example, http://hisdomain/this/is/the/folder/.git
, then the remote URL should be http://hisdomain/this/is/the/folder
. (That is, the URL does not go all the way into the .git
metadata folder; and in fact it would be more typical for the central repo to be bare, so that it wouldn't have a .git
folder at all.) In this scenario, the web server is the only server software required (so long as things are configured correctly on their end).
Also you can use a relative path or file://
URL if you have direct filesystem access to the repo (as in a shared drive).
And it is common to use ssh
as the remote access mechanism as well.
Software like github is popular and can add a lot of useful features for team collaboration, but git does not require them and can be used in distributed fashion on its own.
Hosting software like github or gitlab is not required.
If you are able to see their git folder by browsing to, in your example, http://hisdomain/this/is/the/folder/.git
, then the remote URL should be http://hisdomain/this/is/the/folder
. (That is, the URL does not go all the way into the .git
metadata folder; and in fact it would be more typical for the central repo to be bare, so that it wouldn't have a .git
folder at all.) In this scenario, the web server is the only server software required (so long as things are configured correctly on their end).
Also you can use a relative path or file://
URL if you have direct filesystem access to the repo (as in a shared drive).
And it is common to use ssh
as the remote access mechanism as well.
Software like github is popular and can add a lot of useful features for team collaboration, but git does not require them and can be used in distributed fashion on its own.
answered Nov 9 at 22:40
Mark Adelsberger
19k11019
19k11019
add a comment |
add a comment |
up vote
0
down vote
git init
I have a client who says he did git init in a remote folder so I can make git changes.
git init
will allow you to start track changes with git in the current folder. The outcome is :
.git
, a folder in the current directorymaster
branch which is the default branch
git remote
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
Git can be attached (git remote
) to any (single or multiple) servers(s) locally or on remote servers.
# Add remote to your git repository
git remote add origin https://github.com/<user>/dummy1.git
# Check to see a list of your remotes
git remote -v
add a comment |
up vote
0
down vote
git init
I have a client who says he did git init in a remote folder so I can make git changes.
git init
will allow you to start track changes with git in the current folder. The outcome is :
.git
, a folder in the current directorymaster
branch which is the default branch
git remote
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
Git can be attached (git remote
) to any (single or multiple) servers(s) locally or on remote servers.
# Add remote to your git repository
git remote add origin https://github.com/<user>/dummy1.git
# Check to see a list of your remotes
git remote -v
add a comment |
up vote
0
down vote
up vote
0
down vote
git init
I have a client who says he did git init in a remote folder so I can make git changes.
git init
will allow you to start track changes with git in the current folder. The outcome is :
.git
, a folder in the current directorymaster
branch which is the default branch
git remote
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
Git can be attached (git remote
) to any (single or multiple) servers(s) locally or on remote servers.
# Add remote to your git repository
git remote add origin https://github.com/<user>/dummy1.git
# Check to see a list of your remotes
git remote -v
git init
I have a client who says he did git init in a remote folder so I can make git changes.
git init
will allow you to start track changes with git in the current folder. The outcome is :
.git
, a folder in the current directorymaster
branch which is the default branch
git remote
Am I wrong that a repo must be hosted on GitHub or GitLab or some other place?
Git can be attached (git remote
) to any (single or multiple) servers(s) locally or on remote servers.
# Add remote to your git repository
git remote add origin https://github.com/<user>/dummy1.git
# Check to see a list of your remotes
git remote -v
answered Nov 9 at 22:47
CodeWizard
49k126688
49k126688
add a comment |
add a comment |
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%2fstackoverflow.com%2fquestions%2f53233900%2fadding-remote-in-git-that-is-not-on-github-or-anyhub%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
The problem is you should read first the basics for git. try.github.io then i think you can solve your problem on your own. If you want to share the repo you have to clone it from the remote repository that is hosted on a server or a provider like Github.
– Stony
Nov 9 at 22:16
git-scm.com/book/en/Git-on-the-Server
– phd
Nov 9 at 22:18
git-scm.com/book/en/Git-on-the-Server-The-Protocols
– phd
Nov 9 at 22:19
I understand the basics for sure and use git all the time, but I suppose I could have abbreviated my question to: can git work between any local and remote folders without any repo provide, GitLab/Hub,etc.?
– Kirk Ross
Nov 9 at 22:19