Results 1 to 4 of 4

Thread: It's a Git Repository Question

  1. #1

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    Driving a 2018 Mustang GT down Route 8
    Posts
    4,484

    It's a Git Repository Question

    Probably in the wrong forum. I searched for "Git" to see where people were posting Git questions and it said no matches, so I probably searched wrong too because I would think there'd be git questions all around this forum.

    Somewhere along the line I must've made a Git repository for my new VS2022 solution. But this is what's happening. If I r-click my solution I have "Create Git Repository" instead of a commit option so it looks like no repository exists yet. Then if I say Create, it defaults the Repository name on the next screen to DxBlazorApplication3 (the name of my sln file) and says it already exists.

    If it already exists, why can't I use it?
    If it doesn't exist, why can't I create it?

    I changed Repository name from DxBlazorApplication3 to DxBlazorApplication for something to try and then it seemed it was happy but I got the message "Your solution contains files outside the solution folder which will not be included blah blah blah". It said look at the output window for list of "files must be manually added later". I canceled so I could look at my output window. It's listing like every file in the solution. How do I manually add them later? Why aren't they just getting automatically added now?

    For the past 7 years my Windows application has been on a local repository. I lose sleep over this. I regularly copy my entire solution to our server which is backed up, but I would like to set up Git right this time. Can anyone walk me through what to do?
    There are 10 kinds of people in this world. Those who understand binary, and those who don't.

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,549

    Re: It's a Git Repository Question

    Quote Originally Posted by MMock View Post
    Probably in the wrong forum. I searched for "Git" to see where people were posting Git questions and it said no matches, so I probably searched wrong too because I would think there'd be git questions all around this forum.

    Somewhere along the line I must've made a Git repository for my new VS2022 solution. But this is what's happening. If I r-click my solution I have "Create Git Repository" instead of a commit option so it looks like no repository exists yet. Then if I say Create, it defaults the Repository name on the next screen to DxBlazorApplication3 (the name of my sln file) and says it already exists.

    If it already exists, why can't I use it?
    If it doesn't exist, why can't I create it?
    When you create the repository from the right click menu, are you creating a local repository or are you also trying to connect to an online service such as GitHub? It is perfectly possible for you to not have a local git repo, but have a server side repo that is already using the same name. This could happen if you have already tried to do this, and then deleted the local repo.

    Quote Originally Posted by MMock View Post
    I changed Repository name from DxBlazorApplication3 to DxBlazorApplication for something to try and then it seemed it was happy but I got the message "Your solution contains files outside the solution folder which will not be included blah blah blah". It said look at the output window for list of "files must be manually added later". I canceled so I could look at my output window. It's listing like every file in the solution. How do I manually add them later? Why aren't they just getting automatically added now?

    For the past 7 years my Windows application has been on a local repository. I lose sleep over this. I regularly copy my entire solution to our server which is backed up, but I would like to set up Git right this time. Can anyone walk me through what to do?
    When you created the local repo, there should have been an option for the local path, this should default to the folder containing you solution - if that is wrong, or if you have files outside of this folder you will get this error.

  3. #3

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    Driving a 2018 Mustang GT down Route 8
    Posts
    4,484

    Re: It's a Git Repository Question

    Thank you. So I guess here's my question/confusion. Actually, hold that thought. I am going to get some more information and I'll be back later...
    There are 10 kinds of people in this world. Those who understand binary, and those who don't.

  4. #4

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    Driving a 2018 Mustang GT down Route 8
    Posts
    4,484

    Re: It's a Git Repository Question

    For now, I followed this. I will be back later to say if that's all I needed to do.
    There are 10 kinds of people in this world. Those who understand binary, and those who don't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width