How to Create a New Git Branch and Merge Code

Creating a new branch and merging it into another branch is a common workflow in Git. This guide will walk you through the steps to create a branch, make changes, and merge those changes back into the main branch. Step 1: Check Out the Base Branch Before creating a new branch, ensure you’re on the … Read more

Pushing Master Branch to Development: A Step-by-Step Guide

If you want to merge changes from the master branch into the development branch and push those changes, follow these steps: Step-by-Step Instructions: Combined Command: To execute all the above steps in one line, you can run: git checkout development && git merge master && git push origin development Notes: If you encounter merge conflicts, … Read more

Categories Git

React Native Error: EMFILE – Too Many Open Files and Solution

Introduction While working on a React Native project, you might encounter the following error during development or when bundling the application: Error: EMFILE: too many open files, watch at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)Emitted ‘error’ event on NodeWatcher instance at: at FSWatcher._checkedEmitError (/path/to/project/node_modules/metro-file-map/src/watchers/NodeWatcher.js:82:12) This error typically occurs when too many file watchers are active, exhausting system resources. Cause … Read more

15 Essential Coding Techniques for Writing Cleaner and Efficient React Code

In this post, we’re going to cover some of the most effective techniques for improving your React code. Whether you’re just starting out or you’re looking to refine your code, these techniques will help you write cleaner, more maintainable, and optimized code. 1. DRY (Don’t Repeat Yourself) Principle: Avoid duplicating code by creating reusable functions … Read more

How to remove .php, .html, .htm extensions with .htaccess

Removing Extensions To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file: If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to change the last line from the code above, to match the filename: That’s it! You can now link pages inside the … Read more

How to change my Git credentials in terminal?

method-1 (command line) To set your account’s default identity globally run below commands To set the identity only in current repository , remove –global and run below commands in your Project/Repo root directory Example: **Note: ** you can check these values in your GitHub profile or Bitbucket profile method-2 (.gitconfig) create a .gitconfig file in your home folder if … Read more

Categories Git