Critical Developers

Programmers Knowledge Base

How to merge two branches using git command

Steps for merging two branches using git command:-

1. Switch to destination branch

>git checkout <destinationBranchName>

2. Merge destination branch with source branch

>git merge <sourceBranchName>

3. Push destination branch (Make sure your destination branch is active in workspace)

>git push

Install and Execute gulp in Visual Studio Code (vscode) on Windows

I know you are struggling with your problem, don't worry the solution is here for how to install and execute gulp in Visual Studio Code (vscode) on Windows.

Following are steps you need to follow. (Note: Please skip steps those you are done already)

Step-1: Install Git (https://git-scm.com/downloads)
Step-2: Install node.js (https://nodejs.org/en/download/)
Step-3: Restart System
Step-4: Start vscode and open your project folder in workspace
Step-5: Now its time to execute gulp at root (Refer below methods).

There are 2 ways running your project as follows:-

Method-1: Using vscode Terminal
Goto Terminal window and type commands as below:-

1. Install gulp globally:
> npm install --global gulp

2. Install gulp in your project devDependencies:
> npm install --save-dev gulp

3. Create a gulpfile.js at the root of your project: (ignore if already done)

var gulp = require('gulp');
gulp.task('default', function() {
  // place code for your default task here
});

4. Run gulp:
> gulp

5. Allow access to Windows firewall (if asked usually it asks for first time)
Your project will be opened in your default browser

6. To terminate the task goto vscode "Terminal" and press Ctrl + C
It will prompt comfirmation Y/N, type Y

Method-2: Using vscode GUI
Assuming you have gulpfile.js
1. Ctrl + Shift + P
2. Select option > Tasks: Run Task
3. Select > gulp:default
4. Select Continue without scanning the task output
5. Allow access to Windows firewall (if asked usually it asks for first time)
Your project will be opened in your default browser

6. To terminate the task goto vscode "Terminal" and press Ctrl + C
It will prompt comfirmation Y/N, type Y

Hope it helped you.

Thanks.