/hackerrank-algorithms

list of hackerrank algorithms with solution in javascript

MIT LicenseMIT

docs

development

  • first clone repository

  • checkout to development branch git checkout development.

  • install dependencies npm install

  • run application npm start and navigate to http://localhost:3000/

  • create a new branch development branch and start working on your own branch Note: don't work, commit, and push code to development and master branch always crate your separate branch and work on that. once done commit, push, and raise PR to development branch.

  • once your branch merges to development branch your code will be automatically deployed to the domain by circleci


git instructions

  • clone a repositiory - git clone <github_repo_url>

  • create a new branch - git branch <new_branch_name>

  • swith to a branch - git checkout <branch_name>

  • stage local changes to local git - git add <file_name> or git add . to add all files

  • commit all your changes - git commit -m "your_commit_message"

  • push your local branch to github - git push

  • pull latest code from github to your local system - git pull

  • fetch all new branches - git fetch

add a remote branch :

  • git remote add <remote_name> <remote_github_repo_url>
  • fetch all branch from the remote repo - git fetch
  • fetch a particular branch from remote repo - git fetch <remote_name> <branch_name>
  • full changes from a remote repo branch - git pull <remote_name> <branch_name>
  • push remote branch to origin branch - git push origin <branch_name>
  • push origin branch to remote branch - git push <remote_name> <branch_name>

branching model

  • for feature - feature/<YYMMDD_branch_name>
  • for bugfix - bugfix/<YYMMDD_branch_name>
  • for release - release/<YYMMDD_branch_name>
  • for hotfix - hotfix/<YYMMDD_branch_name>

commit format

Dev: your_name
Date: commit_date
Title: commit title
Description: commit description

illustration of CI/CD

Author: Jagan ______________________________________




QUESTION.md