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. VS Git

VS Git

Scheduled Pinned Locked Moved The Lounge
helpquestioncsharpvisual-studiowpf
4 Posts 3 Posters 0 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 Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I'm not sure if this is by design, or a bug. I created a new WPF project & solution. I added 4 previously existing projects, which all have their own repos, to the solution. I then added a couple of new class library projects to the soltion. When I open the Git window, it shows the 4 previously existsing repos, but there is no repo for my new app. How do I add my new solution, WPF project, and class library projects to Git using VS? If I remove the 4 pre-exising projects, and close & reopen the solution, then there is an menu option to create a repo for it. But then I have broken refs and have to fix those & commit. This can't be right. What am I doing wrong here?

    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

    Richard Andrew x64R J 2 Replies Last reply
    0
    • K Kevin Marois

      I'm not sure if this is by design, or a bug. I created a new WPF project & solution. I added 4 previously existing projects, which all have their own repos, to the solution. I then added a couple of new class library projects to the soltion. When I open the Git window, it shows the 4 previously existsing repos, but there is no repo for my new app. How do I add my new solution, WPF project, and class library projects to Git using VS? If I remove the 4 pre-exising projects, and close & reopen the solution, then there is an menu option to create a repo for it. But then I have broken refs and have to fix those & commit. This can't be right. What am I doing wrong here?

      In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      You'll have to create a new repository for the new application. File->New->Repository

      The difficult we do right away... ...the impossible takes slightly longer.

      K 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        You'll have to create a new repository for the new application. File->New->Repository

        The difficult we do right away... ...the impossible takes slightly longer.

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #3

        That created a new repo ib Git, but nothing appears local. The remote has no files in it either. [UPDATE] You have to set the Local Repository path. It sets it My Docs, which created an empty repo there. Once I changed it to my app's directory, it worked fine. Thanks

        In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

        1 Reply Last reply
        0
        • K Kevin Marois

          I'm not sure if this is by design, or a bug. I created a new WPF project & solution. I added 4 previously existing projects, which all have their own repos, to the solution. I then added a couple of new class library projects to the soltion. When I open the Git window, it shows the 4 previously existsing repos, but there is no repo for my new app. How do I add my new solution, WPF project, and class library projects to Git using VS? If I remove the 4 pre-exising projects, and close & reopen the solution, then there is an menu option to create a repo for it. But then I have broken refs and have to fix those & commit. This can't be right. What am I doing wrong here?

          In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          Kevin Marois wrote:

          I added 4 previously existing projects, which all have their own repos, to the solution.

          If you change two files in two of those repos how are you going to handle checkins? How are you going to insure that if you need to rebuild a delivered laydown (one or more binaries) that you will be able to reliably reproduce the original binary?

          Kevin Marois wrote:

          What am I doing wrong here?

          Not managing Git as intended? A git repo is a deliverable. So your new project should be using 4 deliverables not 4 repos. Each repo should be independently worked and then a binary is released. With a version number. Your project uses the binary and specifies it via the version number. In contrast there are other version control systems that allows one to manage deliverables from one single location. You can, for example, independently label parts of those any way you want. And then combine into another deliverable either by combining labels or just take the tip of everything. You can even label individual files. But other than that as others have mentioned you need a new repo.

          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