Git Repository Setup
Clone the repo https://github.com/egovernments/frontend
Install the dependencies
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
apt install yarn
npm install --global lerna
npm run go
(frontend/web/rainmaker - path)
Open the egovernments/frontend repository in Github
Create a folder in your system and switch to the folder
Open git bash terminal and clone the repository
3. Switch to frontend folder and fetch all the branches
4. Check the list of branches
5. Switch to the main branch (For example “release-Jan_6”)
6. Take pull
7. Create new branch to start development
branch-name naming convention:
If it is a defect for example RAIN-115
git checkout -b RAIN-115
If it is feature for example PT mutation
git checkout -b pt-mutation
Code commit steps:
Sync your current branch with feature branch by below command
Git merge origin/release-Jan_6
In case of conflict:
Resolve it manually
Run the command “git merge --continue”
Check the changes in changed files by below command
git status
Add the files you want to commit by below command or add it through VS code editor
git add [file path]
Commit the files by below command or commit it through VS code editor
git commit -m “[commit message]”
Push the commit into repository by below command or through VS code editor
git push origin
While push operation it may ask to add tracking information for newly created working branch. Then set the upstream for the current branch