Create a new GitHub Repository
0. Purpose
This step by step guide describes how to correctly create a GitHub repository and configure it such that the code to be developed will be correctly stored and synchronized.
1. Prerequisites
-
The user has access to the osisa GitHub repositories
-
The user has a correctly set up developer machine with NetBase and NetSetup downloaded and installed
-
Git, GitHub Desktop or another software with git plugin is installed (i.e. Visual Studio Community)
2. Step by step guide
A new GitHub repository can be created using the webinterface of GitHub in the desired location. Note down the corresponding .git link.
-
A new folder is created for the new project on the local computer in C:\d\NameOfProjecte erstellt. From the NETBase ordner, copy and paste the following files into the just created directory:
.editorconfig .gitignore .tfignore giversion GitVersion nuget.config osisa2023E
-
Within the current directory, create another folder C:\d\NameOfProject\src erstellt and further copy and paste from NETBase\src the following files:
Directory.Build.props Directory.Packages.props osisa.dic osisa.DotSettings osisaNoPwd.snk osisaPPKF.snk Package.Build.props SolutionAssemblyInfo SolutionInfo SolutionInfo.vb SolutionInfoTest Test.Build.props
-
Visual Studio is now opened. To the right of the Solution Explorer the tab Git Changes is selected. Choose the correct branch and commit and synchronize any changes made.