-
first clone repository
-
checkout to
development
branchgit checkout development
. -
install dependencies
npm install
-
run application
npm start
and navigate tohttp://localhost:3000/
-
create a new branch
development
branch and start working on your own branch Note: don't work, commit, and push code todevelopment
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
-
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>
orgit 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
- 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>
- for feature -
feature/<YYMMDD_branch_name>
- for bugfix -
bugfix/<YYMMDD_branch_name>
- for release -
release/<YYMMDD_branch_name>
- for hotfix -
hotfix/<YYMMDD_branch_name>
Dev
: your_name
Date
: commit_date
Title
: commit title
Description
: commit description