C# Project what to put in Source control (Bitbucket) Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!What is the difference between String and string in C#?What does the [Flags] Enum Attribute mean in C#?Should I add the Visual Studio .suo and .user files to source control?What are the correct version numbers for C#?Git for beginners: The definitive practical guideWhat do two question marks together mean in C#?Git workflow and rebase vs merge questionsManaging large binary files with GitHow do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Why not inherit from List<T>?

Why doesn't the university give past final exams' answers?

All ASCII characters with a given bit count

What were wait-states, and why was it only an issue for PCs?

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

RIP Packet Format

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

What's called a person who works as someone who puts products on shelves in stores?

Philosophers who were composers?

Are these square matrices always diagonalisable?

Why did Israel vote against lifting the American embargo on Cuba?

What helicopter has the most rotor blades?

Israeli soda type drink

Is there a verb for listening stealthily?

What is the ongoing value of the Kanban board to the developers as opposed to management

Is there an efficient way for synchronising audio events real-time with LEDs using an MCU?

Is it accepted to use working hours to read general interest books?

Why I cannot instantiate a class whose constructor is private in a friend class?

Does every subgroup of an abelian group have to be abelian?

How was Lagrange appointed professor of mathematics so early?

Was Objective-C really a hindrance to Apple software development?

What's the difference between using dependency injection with a container and using a service locator?

Marquee sign letters

What is /etc/mtab in Linux?

Will I be more secure with my own router behind my ISP's router?



C# Project what to put in Source control (Bitbucket)



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!What is the difference between String and string in C#?What does the [Flags] Enum Attribute mean in C#?Should I add the Visual Studio .suo and .user files to source control?What are the correct version numbers for C#?Git for beginners: The definitive practical guideWhat do two question marks together mean in C#?Git workflow and rebase vs merge questionsManaging large binary files with GitHow do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?Why not inherit from List<T>?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have created a C# project. I have created a Bitbucket account and want to put my project there.
What all should I put in the repository and what not to.
I am guess Debug and Release folders should not be uploaded. What about..
- Name/bin/Debug
- Name/obj/Debug
Thanks










share|improve this question




























    0















    I have created a C# project. I have created a Bitbucket account and want to put my project there.
    What all should I put in the repository and what not to.
    I am guess Debug and Release folders should not be uploaded. What about..
    - Name/bin/Debug
    - Name/obj/Debug
    Thanks










    share|improve this question
























      0












      0








      0








      I have created a C# project. I have created a Bitbucket account and want to put my project there.
      What all should I put in the repository and what not to.
      I am guess Debug and Release folders should not be uploaded. What about..
      - Name/bin/Debug
      - Name/obj/Debug
      Thanks










      share|improve this question














      I have created a C# project. I have created a Bitbucket account and want to put my project there.
      What all should I put in the repository and what not to.
      I am guess Debug and Release folders should not be uploaded. What about..
      - Name/bin/Debug
      - Name/obj/Debug
      Thanks







      c# version-control repository bitbucket






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 9 at 4:49









      golugolu

      9129




      9129






















          2 Answers
          2






          active

          oldest

          votes


















          4














          It's a good idea to start with an established .gitignore file. GitHub has a project that maintains .gitignore files for various environments, including Visual Studio.



          https://github.com/github/gitignore



          Scroll down and grab VisualStudio.gitignore. Or you can download the file with this PowerShell command (set the current directory to the root of the repo, first):



          (Invoke-WebRequest 'https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore').Content > .gitignore


          This should give you an idea of what the general consensus is on what belongs in source control and what doesn't in a Visual Studio solution. In particular, this will exclude the bin and obj folders so you don't commit outputs to the repository, as well as the .vs folder and *.user files, which are user-specific data. It also excludes files and folders used by popular third-party extensions that maintain their own user-specific data.



          Once you have a good .gitignore file, you can use git add --all and it will add everything that's not ignored to the index.






          share|improve this answer






























            0














            Nothing in bin or obj should need to be committed. You'll also need csproj files and nuget package config files (be they xml or json). Things like appconfig files, and .vscode are up to you whether you want to have them in source control.






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074087%2fc-sharp-project-what-to-put-in-source-control-bitbucket%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              4














              It's a good idea to start with an established .gitignore file. GitHub has a project that maintains .gitignore files for various environments, including Visual Studio.



              https://github.com/github/gitignore



              Scroll down and grab VisualStudio.gitignore. Or you can download the file with this PowerShell command (set the current directory to the root of the repo, first):



              (Invoke-WebRequest 'https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore').Content > .gitignore


              This should give you an idea of what the general consensus is on what belongs in source control and what doesn't in a Visual Studio solution. In particular, this will exclude the bin and obj folders so you don't commit outputs to the repository, as well as the .vs folder and *.user files, which are user-specific data. It also excludes files and folders used by popular third-party extensions that maintain their own user-specific data.



              Once you have a good .gitignore file, you can use git add --all and it will add everything that's not ignored to the index.






              share|improve this answer



























                4














                It's a good idea to start with an established .gitignore file. GitHub has a project that maintains .gitignore files for various environments, including Visual Studio.



                https://github.com/github/gitignore



                Scroll down and grab VisualStudio.gitignore. Or you can download the file with this PowerShell command (set the current directory to the root of the repo, first):



                (Invoke-WebRequest 'https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore').Content > .gitignore


                This should give you an idea of what the general consensus is on what belongs in source control and what doesn't in a Visual Studio solution. In particular, this will exclude the bin and obj folders so you don't commit outputs to the repository, as well as the .vs folder and *.user files, which are user-specific data. It also excludes files and folders used by popular third-party extensions that maintain their own user-specific data.



                Once you have a good .gitignore file, you can use git add --all and it will add everything that's not ignored to the index.






                share|improve this answer

























                  4












                  4








                  4







                  It's a good idea to start with an established .gitignore file. GitHub has a project that maintains .gitignore files for various environments, including Visual Studio.



                  https://github.com/github/gitignore



                  Scroll down and grab VisualStudio.gitignore. Or you can download the file with this PowerShell command (set the current directory to the root of the repo, first):



                  (Invoke-WebRequest 'https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore').Content > .gitignore


                  This should give you an idea of what the general consensus is on what belongs in source control and what doesn't in a Visual Studio solution. In particular, this will exclude the bin and obj folders so you don't commit outputs to the repository, as well as the .vs folder and *.user files, which are user-specific data. It also excludes files and folders used by popular third-party extensions that maintain their own user-specific data.



                  Once you have a good .gitignore file, you can use git add --all and it will add everything that's not ignored to the index.






                  share|improve this answer













                  It's a good idea to start with an established .gitignore file. GitHub has a project that maintains .gitignore files for various environments, including Visual Studio.



                  https://github.com/github/gitignore



                  Scroll down and grab VisualStudio.gitignore. Or you can download the file with this PowerShell command (set the current directory to the root of the repo, first):



                  (Invoke-WebRequest 'https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore').Content > .gitignore


                  This should give you an idea of what the general consensus is on what belongs in source control and what doesn't in a Visual Studio solution. In particular, this will exclude the bin and obj folders so you don't commit outputs to the repository, as well as the .vs folder and *.user files, which are user-specific data. It also excludes files and folders used by popular third-party extensions that maintain their own user-specific data.



                  Once you have a good .gitignore file, you can use git add --all and it will add everything that's not ignored to the index.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 9 at 5:12









                  madreflectionmadreflection

                  1,7621715




                  1,7621715























                      0














                      Nothing in bin or obj should need to be committed. You'll also need csproj files and nuget package config files (be they xml or json). Things like appconfig files, and .vscode are up to you whether you want to have them in source control.






                      share|improve this answer



























                        0














                        Nothing in bin or obj should need to be committed. You'll also need csproj files and nuget package config files (be they xml or json). Things like appconfig files, and .vscode are up to you whether you want to have them in source control.






                        share|improve this answer

























                          0












                          0








                          0







                          Nothing in bin or obj should need to be committed. You'll also need csproj files and nuget package config files (be they xml or json). Things like appconfig files, and .vscode are up to you whether you want to have them in source control.






                          share|improve this answer













                          Nothing in bin or obj should need to be committed. You'll also need csproj files and nuget package config files (be they xml or json). Things like appconfig files, and .vscode are up to you whether you want to have them in source control.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 9 at 5:06









                          JamesJames

                          1194




                          1194



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074087%2fc-sharp-project-what-to-put-in-source-control-bitbucket%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              1928 у кіно

                              Захаров Федір Захарович

                              Ель Греко