Project

General

Profile

WebPosApi

New Installation

  1. Clone the Repo
    git clone https://github.com/shresthamir/WebPosApiBuild.git
  2. fetch all the branches from remote
    git fetch
  3. list all branches for selection
    git branch -a
  4. checkout desired branch (Release Channel)
    For Remote Branch (Once)
    git checkout --track origin/petrolPump

    For Local Branch
    git checkout master
  5. copy environment files/folders that are not tracked by git
    DbConnection.txt, appsettings.json, wwwroot, ReportFormats
Migrating existing installation to GIT Deploy
  1. git does not allow cloning into non-empty directory, so delete everyting from installation directory.
  2. Clone the repo with path specification
    git clone https://github.com/shresthamir/WebPosApiBuild.git .
    Dot (.) specifies current directory.
  3. Follow Steps 2 and onwards fron New Installation
Switching between Release Channels
  1. Checkout to the Branch(Release Channel)
  2. Command already specified.
Fetch new updates in current Release Channel
  1. Command : git pull