{"thread":{"id":"48663","subject":"git question from a newbie","startedAt":"2018-06-05T21:33:50Z","lastAt":"2018-06-07T12:46:44Z","messageCount":5,"participants":["Heinz, Steve","Randall S. Becker","Bryan Turner"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"349412","messageId":"BN7PR15MB23394E6E4AB05C17287E8F55BB660@BN7PR15MB2339.namprd15.prod.outlook.com","threadId":"48663","inReplyTo":null,"subject":"git question from a newbie","fromName":"Heinz, Steve","fromEmail":"sheinz@aaanortheast.com","sentAt":"2018-06-05T21:24:13Z","receivedAt":"2018-06-05T21:33:50Z","isPatch":false,"sender":{"key":"sheinz@aaanortheast.com","avatar":null},"body":"Hi.\n\nI am new to Git and have read quite a few articles on it.\nI am planning on setting up a remote repository on a windows 2012 R2 server and will access it via HTTPS.\nI am setting up a local repository on my desk top (others in my group will do the same).\nOn \"server1\":  I install Git and create a repository \"repos\".\nOn \"server1\":  I create a dummy webpage \"default.htm\" and place it in the repo folder.\nOn \"server1\":  I create a web application in IIS pointing to Git\nOn Server1\":   change permissions so IIS_User  has access to the folders.\nOn \"server1\":  inside the \"repos\" folder and right click and choose \"bash here\"\nOn \"server1\":   $ git init  -bare    (it's really 2 hyphens)\n\nOn Desktop:  open Chrome and type in URL to make sure we can access it    https://xyz/repos/default.htm\n      ** make sure you have access, no certificate issues or firewall issues.  The pages shows up fine\n\nOn Desktop:  install Git and create repository \"repos\".\nOn Desktop:  right click in \"repos\" folder and choose \"bash here\"\nOn Desktop:  $ git init\nOn Desktop : add a folder \"testProject\" under the \"repos\" folder and add some files to the folder\nOn Desktop:  $ git add .                 (will add files and folder to working tree)\nOn Desktop   $ git status               (shows it recognizes the filed were added)\nOn Desktop   $ git commit -m \"test project commit\"           (will stage changes)\nOn Desktop   $ git push https://xyz.domainname.com/repos master\n\n** this is the error I get,  I have tried many different things.  I am sure I am doing something stupid\n** I have tried a bunch of variations but I always get the same error.  It looks like some type of network/permission\n** thing but everything seems OK.\n       Fatal: repository 'https://xyz.domainname.com/repos/' not found\n\n*** this is where I get the error trying to push staged items to the remote repository.\n*** I have tried to clone the empty remote repository still same error\n*** I checked port 443 is opened and being used for https\n*** tried to set origin to https://xyz.domainname.com/repos\" and then $git push origin master   (same error)\n*** I tried passing credentials to the remote server as well\n\n\nAny ideas would be greatly appreciated.\nThanks\nSteve\n\n\n\nThe information contained in this email message is intended only for the private and confidential use of the recipient(s) named above, unless the sender expressly agrees otherwise. In no event shall AAA Northeast or any of its affiliates accept any responsibility for the loss, use or misuse of any information including confidential information, which is sent to AAA Northeast or its affiliates via email, or email attachment. AAA Northeast does not guarantee the accuracy of any email or email attachment. If the reader of this message is not the intended recipient and/or you have received this email in error, you must take no action based on the information in this email and you are hereby notified that any dissemination, misuse or copying or disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email and delete the original message.\n"},{"id":"349417","messageId":"000901d3fd1b$3eeb7900$bcc26b00$@nexbridge.com","threadId":"48663","inReplyTo":"BN7PR15MB23394E6E4AB05C17287E8F55BB660@BN7PR15MB2339.namprd15.prod.outlook.com","subject":"RE: git question from a newbie","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2018-06-05T22:19:12Z","receivedAt":"2018-06-05T22:19:53Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On June 5, 2018 5:24 PM, Steve Heinz wrote:\n> I am new to Git and have read quite a few articles on it.\n> I am planning on setting up a remote repository on a windows 2012 R2\nserver\n> and will access it via HTTPS.\n> I am setting up a local repository on my desk top (others in my group will\ndo\n> the same).\n> On \"server1\":  I install Git and create a repository \"repos\".\n> On \"server1\":  I create a dummy webpage \"default.htm\" and place it in the\n> repo folder.\n> On \"server1\":  I create a web application in IIS pointing to Git\n> On Server1\":   change permissions so IIS_User  has access to the folders.\n> On \"server1\":  inside the \"repos\" folder and right click and choose \"bash\n> here\"\n> On \"server1\":   $ git init  -bare    (it's really 2 hyphens)\n> \n> On Desktop:  open Chrome and type in URL to make sure we can access it\n> https://xyz/repos/default.htm\n>       ** make sure you have access, no certificate issues or firewall\nissues.  The\n> pages shows up fine\n> \n> On Desktop:  install Git and create repository \"repos\".\n> On Desktop:  right click in \"repos\" folder and choose \"bash here\"\n> On Desktop:  $ git init\n> On Desktop : add a folder \"testProject\" under the \"repos\" folder and add\n> some files to the folder\n> On Desktop:  $ git add .                 (will add files and folder to\nworking tree)\n> On Desktop   $ git status               (shows it recognizes the filed\nwere added)\n> On Desktop   $ git commit -m \"test project commit\"           (will stage\nchanges)\n> On Desktop   $ git push https://xyz.domainname.com/repos master\n> \n> ** this is the error I get,  I have tried many different things.  I am\nsure I am\n> doing something stupid\n> ** I have tried a bunch of variations but I always get the same error.  It\nlooks\n> like some type of network/permission\n> ** thing but everything seems OK.\n>        Fatal: repository 'https://xyz.domainname.com/repos/' not found\n> \n> *** this is where I get the error trying to push staged items to the\nremote\n> repository.\n> *** I have tried to clone the empty remote repository still same error\n> *** I checked port 443 is opened and being used for https\n> *** tried to set origin to https://xyz.domainname.com/repos\" and then $git\n> push origin master   (same error)\n> *** I tried passing credentials to the remote server as well\n\nMissing glue - git remote\n\ngit remote add origin https://xyz.domainname.com/repos\n\nCheers,\nRandall\n\n-- Brief whoami:\n NonStop developer since approximately 211288444200000000\n UNIX developer since approximately 421664400\n-- In my real life, I talk too much.\n\n\n\n"},{"id":"349418","messageId":"CAGyf7-GN=wx4cc7WxbmMweC0VSnp_9aZ8fTUGE0W6vLK63qpVw@mail.gmail.com","threadId":"48663","inReplyTo":"BN7PR15MB23394E6E4AB05C17287E8F55BB660@BN7PR15MB2339.namprd15.prod.outlook.com","subject":"Re: git question from a newbie","fromName":"Bryan Turner","fromEmail":"bturner@atlassian.com","sentAt":"2018-06-05T22:29:10Z","receivedAt":"2018-06-05T22:29:24Z","isPatch":false,"sender":{"key":"bturner@atlassian.com","avatar":"https://gravatar.com/avatar/16bcf3167981c1ef7c804e502642366d888a35b0d0b0a4ca01fdc442aa1acb1e?d=mp&s=160"},"body":"On Tue, Jun 5, 2018 at 2:33 PM Heinz, Steve <SHeinz@aaanortheast.com> wrote:\n>\n> Hi.\n>\n> I am new to Git and have read quite a few articles on it.\n> I am planning on setting up a remote repository on a windows 2012 R2 server and will access it via HTTPS.\n> I am setting up a local repository on my desk top (others in my group will do the same).\n> On \"server1\":  I install Git and create a repository \"repos\".\n> On \"server1\":  I create a dummy webpage \"default.htm\" and place it in the repo folder.\n> On \"server1\":  I create a web application in IIS pointing to Git\n> On Server1\":   change permissions so IIS_User  has access to the folders.\n> On \"server1\":  inside the \"repos\" folder and right click and choose \"bash here\"\n> On \"server1\":   $ git init  -bare    (it's really 2 hyphens)\n\n\nThis might create a _repository_, but it's not going to set up any Git\nhosting processing for it. You might be able to clone using the\nfallback to the \"dumb\" HTTP protocol (though I doubt it, with the\nsteps you've shown) , but you won't be able to push.\n\nYou need handlers for git-http-backend which handle info/refs and\nother requests that are related to the Git HTTP wire protocol.[1]\n\nDocumentation for setting up Git's HTTP protocol via Apache are pretty\neasy to find[2], but IIS instructions are a bit more sparse. I don't\nknow of any good ones off the top of my head. But that's your issue;\nyour IIS setup isn't really a valid Git remote; it's just a Git\nrepository with contents visible via HTTP.\n\n[1] https://github.com/git/git/blob/master/Documentation/technical/http-protocol.txt\n[2] https://github.com/git/git/blob/master/Documentation/howto/setup-git-server-over-http.txt\n\nBryan\n"},{"id":"349609","messageId":"BN7PR15MB2339C81C23CAF414722EB089BB640@BN7PR15MB2339.namprd15.prod.outlook.com","threadId":"48663","inReplyTo":"000901d3fd1b$3eeb7900$bcc26b00$@nexbridge.com","subject":"RE: git question from a newbie","fromName":"Heinz, Steve","fromEmail":"sheinz@aaanortheast.com","sentAt":"2018-06-07T12:40:29Z","receivedAt":"2018-06-07T12:40:37Z","isPatch":false,"sender":{"key":"sheinz@aaanortheast.com","avatar":null},"body":"Randall\n\nThank you, I tried it but that didn't work either.  I did find out what my issue was.  I need some type of client that would be setup to listen for the requests.\n\nSteve\n\n\n-----Original Message-----\nFrom: Randall S. Becker <rsbecker@nexbridge.com>\nSent: Tuesday, June 05, 2018 6:19 PM\nTo: Heinz, Steve <SHeinz@aaanortheast.com>; git@vger.kernel.org\nSubject: RE: git question from a newbie\n\nOn June 5, 2018 5:24 PM, Steve Heinz wrote:\n> I am new to Git and have read quite a few articles on it.\n> I am planning on setting up a remote repository on a windows 2012 R2\nserver\n> and will access it via HTTPS.\n> I am setting up a local repository on my desk top (others in my group\n> will\ndo\n> the same).\n> On \"server1\":  I install Git and create a repository \"repos\".\n> On \"server1\":  I create a dummy webpage \"default.htm\" and place it in\n> the repo folder.\n> On \"server1\":  I create a web application in IIS pointing to Git\n> On Server1\":   change permissions so IIS_User  has access to the folders.\n> On \"server1\":  inside the \"repos\" folder and right click and choose\n> \"bash here\"\n> On \"server1\":   $ git init  -bare    (it's really 2 hyphens)\n>\n> On Desktop:  open Chrome and type in URL to make sure we can access it\n> https://xyz/repos/default.htm\n>       ** make sure you have access, no certificate issues or firewall\nissues.  The\n> pages shows up fine\n>\n> On Desktop:  install Git and create repository \"repos\".\n> On Desktop:  right click in \"repos\" folder and choose \"bash here\"\n> On Desktop:  $ git init\n> On Desktop : add a folder \"testProject\" under the \"repos\" folder and\n> add some files to the folder\n> On Desktop:  $ git add .                 (will add files and folder to\nworking tree)\n> On Desktop   $ git status               (shows it recognizes the filed\nwere added)\n> On Desktop   $ git commit -m \"test project commit\"           (will stage\nchanges)\n> On Desktop   $ git push https://xyz.domainname.com/repos master\n>\n> ** this is the error I get,  I have tried many different things.  I am\nsure I am\n> doing something stupid\n> ** I have tried a bunch of variations but I always get the same error.\n> It\nlooks\n> like some type of network/permission\n> ** thing but everything seems OK.\n>        Fatal: repository 'https://xyz.domainname.com/repos/' not found\n>\n> *** this is where I get the error trying to push staged items to the\nremote\n> repository.\n> *** I have tried to clone the empty remote repository still same error\n> *** I checked port 443 is opened and being used for https\n> *** tried to set origin to https://xyz.domainname.com/repos\" and then $git\n> push origin master   (same error)\n> *** I tried passing credentials to the remote server as well\n\nMissing glue - git remote\n\ngit remote add origin https://xyz.domainname.com/repos\n\nCheers,\nRandall\n\n-- Brief whoami:\n NonStop developer since approximately 211288444200000000  UNIX developer since approximately 421664400\n-- In my real life, I talk too much.\n\n\n\nThe information contained in this email message is intended only for the private and confidential use of the recipient(s) named above, unless the sender expressly agrees otherwise. In no event shall AAA Northeast or any of its affiliates accept any responsibility for the loss, use or misuse of any information including confidential information, which is sent to AAA Northeast or its affiliates via email, or email attachment. AAA Northeast does not guarantee the accuracy of any email or email attachment. If the reader of this message is not the intended recipient and/or you have received this email in error, you must take no action based on the information in this email and you are hereby notified that any dissemination, misuse or copying or disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email and delete the original message.\n"},{"id":"349611","messageId":"BN7PR15MB23395DFAB46C52BE7F414B43BB640@BN7PR15MB2339.namprd15.prod.outlook.com","threadId":"48663","inReplyTo":"CAGyf7-GN=wx4cc7WxbmMweC0VSnp_9aZ8fTUGE0W6vLK63qpVw@mail.gmail.com","subject":"RE: git question from a newbie","fromName":"Heinz, Steve","fromEmail":"sheinz@aaanortheast.com","sentAt":"2018-06-07T12:46:40Z","receivedAt":"2018-06-07T12:46:44Z","isPatch":false,"sender":{"key":"sheinz@aaanortheast.com","avatar":null},"body":"Bryan\n\nThank you.  I didn't realize that when you set up a remote repository, it is just a folder.  I thought the fact that I had it setup as a website, was going to handle what I needed.\nIt wasn't until your email that I realized I had to use some type of client.  I installed Bonobo as the remote repository and bam it worked!\n\nYou are right that the info on Windows is a bit sparse.  I learned a lot and want to thank you again.\n\nSteve Heinz\n\n\nSteve Heinz | Lead Programmer Analyst, Information Technology\nAAA Northeast | 1415 Kellum Place | Garden City, NY 11530\nX8042 | T 516-535-2581 | F 516-873-2211\nsheinz@aaanortheast.com | AAA.com\n\n\n     It Pays to Belong.\n\n\n-----Original Message-----\nFrom: Bryan Turner <bturner@atlassian.com>\nSent: Tuesday, June 05, 2018 6:29 PM\nTo: Heinz, Steve <SHeinz@aaanortheast.com>\nCc: Git Users <git@vger.kernel.org>\nSubject: Re: git question from a newbie\n\nOn Tue, Jun 5, 2018 at 2:33 PM Heinz, Steve <SHeinz@aaanortheast.com> wrote:\n>\n> Hi.\n>\n> I am new to Git and have read quite a few articles on it.\n> I am planning on setting up a remote repository on a windows 2012 R2 server and will access it via HTTPS.\n> I am setting up a local repository on my desk top (others in my group will do the same).\n> On \"server1\":  I install Git and create a repository \"repos\".\n> On \"server1\":  I create a dummy webpage \"default.htm\" and place it in the repo folder.\n> On \"server1\":  I create a web application in IIS pointing to Git\n> On Server1\":   change permissions so IIS_User  has access to the folders.\n> On \"server1\":  inside the \"repos\" folder and right click and choose \"bash here\"\n> On \"server1\":   $ git init  -bare    (it's really 2 hyphens)\n\n\nThis might create a _repository_, but it's not going to set up any Git hosting processing for it. You might be able to clone using the fallback to the \"dumb\" HTTP protocol (though I doubt it, with the steps you've shown) , but you won't be able to push.\n\nYou need handlers for git-http-backend which handle info/refs and other requests that are related to the Git HTTP wire protocol.[1]\n\nDocumentation for setting up Git's HTTP protocol via Apache are pretty easy to find[2], but IIS instructions are a bit more sparse. I don't know of any good ones off the top of my head. But that's your issue; your IIS setup isn't really a valid Git remote; it's just a Git repository with contents visible via HTTP.\n\n[1] https://github.com/git/git/blob/master/Documentation/technical/http-protocol.txt\n[2] https://github.com/git/git/blob/master/Documentation/howto/setup-git-server-over-http.txt\n\nBryan\nThe information contained in this email message is intended only for the private and confidential use of the recipient(s) named above, unless the sender expressly agrees otherwise. In no event shall AAA Northeast or any of its affiliates accept any responsibility for the loss, use or misuse of any information including confidential information, which is sent to AAA Northeast or its affiliates via email, or email attachment. AAA Northeast does not guarantee the accuracy of any email or email attachment. If the reader of this message is not the intended recipient and/or you have received this email in error, you must take no action based on the information in this email and you are hereby notified that any dissemination, misuse or copying or disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email and delete the original message.\n"}]}