Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Git Question

Git Question

Scheduled Pinned Locked Moved The Lounge
questionvisual-studiocollaborationhelp
16 Posts 12 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Kevin Marois

    Is there a forum for this? If so, I'll move it. I have a VS2022 solution for a application I'm working on. There are projects in the solution for the application, and there are also projects included in the solution from my framework. My framework projects are contained in their own Git repos. The question is, how do I now create a new repo for my application? There's no option in VS to add the new project to Git. In addition, the "Git Changes" menu option and "Git Changes" window show the repo as one of my framework repos. 1. Can VS work with multiple repos? 2. If so, how do I now add a new project to a new repo?

    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

    M Offline
    M Offline
    megaadam
    wrote on last edited by
    #7

    I used to do all version-control (git/svn etc) stuff in the VS GUI. And when somebody told me to do all git stuff on the command line I thought they were crazy. It was a mental hurdle the first few times, but now I would never go back. The command line is your friend, it hides nothing. I warmly recommend you to challenge that comfort zone. And Git - Reference[^] will get you very far. Good luck!

    "If we don't change direction, we'll end up where we're going"

    J 1 Reply Last reply
    0
    • M megaadam

      I used to do all version-control (git/svn etc) stuff in the VS GUI. And when somebody told me to do all git stuff on the command line I thought they were crazy. It was a mental hurdle the first few times, but now I would never go back. The command line is your friend, it hides nothing. I warmly recommend you to challenge that comfort zone. And Git - Reference[^] will get you very far. Good luck!

      "If we don't change direction, we'll end up where we're going"

      J Offline
      J Offline
      jmaida
      wrote on last edited by
      #8

      I need a git reference for dummies. Took a course years ago. Will leave the brain almost immediately if you don't use it regularly.

      "A little time, a little trouble, your better day" Badfinger

      1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Rick York wrote:

        VS2002

        If you haven't upgraded to 2002 yet, you're a little bit behind the times! :laugh:


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        R Offline
        R Offline
        Rick York
        wrote on last edited by
        #9

        Generally speaking, the companies I have worked for are on the trailing edge of technology. Although, with this one I have doing work with CUDA on GPUs and that's been very interesting.

        "They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

        1 Reply Last reply
        0
        • K Kevin Marois

          Is there a forum for this? If so, I'll move it. I have a VS2022 solution for a application I'm working on. There are projects in the solution for the application, and there are also projects included in the solution from my framework. My framework projects are contained in their own Git repos. The question is, how do I now create a new repo for my application? There's no option in VS to add the new project to Git. In addition, the "Git Changes" menu option and "Git Changes" window show the repo as one of my framework repos. 1. Can VS work with multiple repos? 2. If so, how do I now add a new project to a new repo?

          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

          G Offline
          G Offline
          Gary Wheeler
          wrote on last edited by
          #10

          It sound like you're looking for git submodules, which lets you embed one repo inside another. We're just getting started with git, so YMMV. I strongly recommend the book Pro Git[^], available online, in PDF, and in bio-flesh form (paper book) from Amazon.

          Software Zen: delete this;

          P 1 Reply Last reply
          0
          • K Kevin Marois

            Is there a forum for this? If so, I'll move it. I have a VS2022 solution for a application I'm working on. There are projects in the solution for the application, and there are also projects included in the solution from my framework. My framework projects are contained in their own Git repos. The question is, how do I now create a new repo for my application? There's no option in VS to add the new project to Git. In addition, the "Git Changes" menu option and "Git Changes" window show the repo as one of my framework repos. 1. Can VS work with multiple repos? 2. If so, how do I now add a new project to a new repo?

            If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

            R Offline
            R Offline
            RooN3y
            wrote on last edited by
            #11

            Could it be worth completely separating them? So put each in their own git repository and then set your framework project up to create a nuget package that the other project can simply reference. You can make private nuget packages and have this all handled by a CI solution like Github Actions

            D 1 Reply Last reply
            0
            • G Gary Wheeler

              It sound like you're looking for git submodules, which lets you embed one repo inside another. We're just getting started with git, so YMMV. I strongly recommend the book Pro Git[^], available online, in PDF, and in bio-flesh form (paper book) from Amazon.

              Software Zen: delete this;

              P Offline
              P Offline
              Paul Sanders the other one
              wrote on last edited by
              #12

              That looks really useful, thank you. It's time I made the leap ... (I'm using something else that I dare not mention.)

              Paul Sanders. Not that the story need be long, but it will take a long while to make it short - Henry David Thoreau Some of my best work is in the undo buffer.

              G 1 Reply Last reply
              0
              • K Kevin Marois

                Is there a forum for this? If so, I'll move it. I have a VS2022 solution for a application I'm working on. There are projects in the solution for the application, and there are also projects included in the solution from my framework. My framework projects are contained in their own Git repos. The question is, how do I now create a new repo for my application? There's no option in VS to add the new project to Git. In addition, the "Git Changes" menu option and "Git Changes" window show the repo as one of my framework repos. 1. Can VS work with multiple repos? 2. If so, how do I now add a new project to a new repo?

                If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                Z Offline
                Z Offline
                zezba9000
                wrote on last edited by
                #13

                Use Git-Bash app in Windows and don't use IDE integrations. Bad idea. There are also visual git apps. Here is one I've made that uses Git-Core: GitHub - reignstudios/Git-It-GUI: A Git GUI client designed to be simple with game studio collaboration in mind.[^]

                1 Reply Last reply
                0
                • P Paul Sanders the other one

                  That looks really useful, thank you. It's time I made the leap ... (I'm using something else that I dare not mention.)

                  Paul Sanders. Not that the story need be long, but it will take a long while to make it short - Henry David Thoreau Some of my best work is in the undo buffer.

                  G Offline
                  G Offline
                  Gary R Wheeler
                  wrote on last edited by
                  #14

                  Paul Sanders (the other one) wrote:

                  I'm using something else

                  Visual SourceSafe? It's okay, we've been using it for over 20 years, and are beginning to move to git.

                  Software Zen: delete this;

                  P 1 Reply Last reply
                  0
                  • G Gary R Wheeler

                    Paul Sanders (the other one) wrote:

                    I'm using something else

                    Visual SourceSafe? It's okay, we've been using it for over 20 years, and are beginning to move to git.

                    Software Zen: delete this;

                    P Offline
                    P Offline
                    Paul Sanders the other one
                    wrote on last edited by
                    #15

                    Actually, no, worse than that... :)

                    Paul Sanders. Not that the story need be long, but it will take a long while to make it short - Henry David Thoreau Some of my best work is in the undo buffer.

                    1 Reply Last reply
                    0
                    • R RooN3y

                      Could it be worth completely separating them? So put each in their own git repository and then set your framework project up to create a nuget package that the other project can simply reference. You can make private nuget packages and have this all handled by a CI solution like Github Actions

                      D Offline
                      D Offline
                      Dale Barnard
                      wrote on last edited by
                      #16

                      I have found that for refactoring and debugging, it helps to have all of the source code in one solution or cmake project. That way, the tools (VS, Resharper, others) can semantically "see" and analyze everything together. Once you go across boundaries like NuGet packages, some of that convenience is lost.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups