Git Setup

Git Setup

List of Git Command.

  • git branch : Used to list down all the branches that are locally present in the git hub repository.
  • git status : Used to list down all the files which are ready to be committed.
  • git branch [branch-name] : This is used to create a new branch.
  • git checkout : It is helpful in switching from one branch to another branch.
  • git diff –name-only master…branchname : Used to list down all the changed files of branch.
  • git branch –d [branch name] : It is used to delete the current branch name specified.
  • git pull : Used to fetch changes from git hub repository for that branch.
  • git fetch : Used fetched all branches name.
  • git config –global user.email “[email address]” : It is used to set the email address of author which you want your commitment to addressing
  • git config –global user.name “[username ]” : It is used to set the name of the author which you want your commitment to addressing
  • git init : Used for generate .git file

Steps for Activating GitHub Account .

  • Open the GitHub account using link which is provided by ERP team on your Outlook mail.
  • Type your Username e.g., nameerpcrystal, Email. & Password will be your erpcrystal account which is already set.
  • Click on verify, accept invitation.

Steps to Setup ErpOneCore

  • You need to go into your Local disk D. Do not go into the C drive i.e., the System Drive.

  • Once you get into your D drive, create a folder named ErpOneCore.

  • The first way to do the installation:

    1. Open the ErpOneCore folder in the cmd and write the following command.
    2. git init, Once you have given this command open your ErpOneCore folder you will see a .git file, if it is not showing then click on hidden file option, open that file and you need to replace the config file with shared config file with you.
    3. After you have replaced the config file, open the config file in the notepad and change the username and email which you have used in your GitHub account.
    4. Once the config file is changed write the command git pull in the cmd.
  • The second way is:

    1. Login to your GitHub account, you need to click on the code which will be in green color. When you click on that you need to copy the HTTPS URL.
    2. Open the ErpOneCore folder in the VSCode, Open terminal of VSCode and write the git init.
    3. Once you have done with, then you need to go into your ErpOneCore, in that there will be a .git folder open that and you will see a git config file, open that in the notepad.
    4. You will see something like [user]. There you should write the following lines: [user] name = “usernameemail = “user email”
    5. Note: This name and email should be the same you have used for your GitHub account.
  • These are the two ways you can install ErpOneCore into your System.

  • Once the ErpOneCore is added into your system from GitHub. The following steps need to be taken:

    1. If you dont have appsettings.json file in your ErpOneCore folder then Copy the appsettings.json file which is shared by Erp team & paste in ErpOneCore folder
    2. Open the appsettings.json file with VS Code or Notepad.
    3. Copy the Server name which you have put in azure data studio and replace with Server=YourPcName\SQLEXPRESS in appsettings.json
    4. Update Id=sa, and Password which you created at time of setup SQL Server 2019. This needs to be done in “DefaultConnection”: , “ErpOneCoreConnection”: , “FeatureRequestConnection”: , “FulhamUsServer”: .
    5. If you get an evolve error then you need to add that dependency inside the ErpOneCore.csproj file at the end.
    6. This is an optional step. You need to do it only if you get an evolve error.