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:
- Open the ErpOneCore folder in the cmd and write the following command.
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.- 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.
- Once the config file is changed write the command
git pullin the cmd.
-
The second way is:
- 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.
- Open the ErpOneCore folder in the VSCode, Open terminal of VSCode and write the
git init. - 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.
- You will see something like [user]. There you should write the following lines: [user] name = “username” email = “user email”
- 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:
- If you dont have
appsettings.jsonfile in your ErpOneCore folder then Copy theappsettings.jsonfile which is shared by Erp team & paste in ErpOneCore folder - Open the
appsettings.jsonfile with VS Code or Notepad. - Copy the Server name which you have put in azure data studio and replace with Server=YourPcName\SQLEXPRESS in
appsettings.json - 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”: .
- If you get an evolve error then you need to add that dependency inside the
ErpOneCore.csprojfile at the end. - This is an optional step. You need to do it only if you get an evolve error.
- If you dont have