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. a newbie question about GitHub/version control

a newbie question about GitHub/version control

Scheduled Pinned Locked Moved The Lounge
questioncsharpcollaborationjsonannouncement
14 Posts 5 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.
  • Sander RosselS Sander Rossel

    Here's a tip, always add this (official) gitignore to your project so you don't have to think about stuff like that. gitignore/VisualStudio.gitignore at main · github/gitignore · GitHub[^] There's a gitignore file for practically every language and/or editor. The packages folder is excluded in the gitigore, so it's best practice not to include your packages. More information: NuGet Packages and Source Control | Microsoft Learn[^]

    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

    S Offline
    S Offline
    Southmountain
    wrote on last edited by
    #5

    these two links are great:rose:

    diligent hands rule....

    1 Reply Last reply
    0
    • S Southmountain

      thanks for this great link:rose: So if I clone this project from GitHub, I need to install NuGet package again into this project?

      diligent hands rule....

      R Offline
      R Offline
      RickZeeland
      wrote on last edited by
      #6

      No, if you build your project from Visual Studio it will automatically restore the NuGet package (if you have your setup configured correctly of course :-\ )

      S 2 Replies Last reply
      0
      • S Southmountain

        I have a Windows Form project on .NET using JSON.NET package. Should I also put all files under this folder onto GitHub repository?

        diligent hands rule....

        P Offline
        P Offline
        Peter Adam
        wrote on last edited by
        #7

        You can link their external repo: [Git - Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)

        S 1 Reply Last reply
        0
        • R RickZeeland

          No, if you build your project from Visual Studio it will automatically restore the NuGet package (if you have your setup configured correctly of course :-\ )

          S Offline
          S Offline
          Southmountain
          wrote on last edited by
          #8

          appreciate your help. I learned new thing from you:thumbsup:

          diligent hands rule....

          1 Reply Last reply
          0
          • P Peter Adam

            You can link their external repo: [Git - Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)

            S Offline
            S Offline
            Southmountain
            wrote on last edited by
            #9

            thanks for the great info:rose:

            diligent hands rule....

            R 1 Reply Last reply
            0
            • S Southmountain

              thanks for the great info:rose:

              diligent hands rule....

              R Offline
              R Offline
              RickZeeland
              wrote on last edited by
              #10

              Beware: submodules can be tricky, I only would advise using this when you have mastered the basics.

              S 1 Reply Last reply
              0
              • R RickZeeland

                Beware: submodules can be tricky, I only would advise using this when you have mastered the basics.

                S Offline
                S Offline
                Southmountain
                wrote on last edited by
                #11

                thanks,I get your message.:rose:

                diligent hands rule....

                1 Reply Last reply
                0
                • R RickZeeland

                  No, if you build your project from Visual Studio it will automatically restore the NuGet package (if you have your setup configured correctly of course :-\ )

                  S Offline
                  S Offline
                  Southmountain
                  wrote on last edited by
                  #12

                  it is working perfectly...

                  diligent hands rule....

                  1 Reply Last reply
                  0
                  • Sander RosselS Sander Rossel

                    Here's a tip, always add this (official) gitignore to your project so you don't have to think about stuff like that. gitignore/VisualStudio.gitignore at main · github/gitignore · GitHub[^] There's a gitignore file for practically every language and/or editor. The packages folder is excluded in the gitigore, so it's best practice not to include your packages. More information: NuGet Packages and Source Control | Microsoft Learn[^]

                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                    T Offline
                    T Offline
                    thewazz
                    wrote on last edited by
                    #13

                    The packages folder is included in the gitignore?

                    Sander RosselS 1 Reply Last reply
                    0
                    • T thewazz

                      The packages folder is included in the gitignore?

                      Sander RosselS Offline
                      Sander RosselS Offline
                      Sander Rossel
                      wrote on last edited by
                      #14

                      It's included in the gitignore which excludes it from your git repository.

                      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                      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