From 9ce60b83343c5faa6767466de348852e44ad1326 Mon Sep 17 00:00:00 2001 From: Bilal Khan Date: Sat, 3 Dec 2022 17:12:39 +0500 Subject: [PATCH] Changes are merged --- Days/day2.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Days/day2.md b/Days/day2.md index 60553ee..05e7913 100755 --- a/Days/day2.md +++ b/Days/day2.md @@ -3,6 +3,7 @@ On the second day, I learned the following things about Git. - `git branch` will show the list of branches of Git. Branch is created to divide the data functionalities or use cases. - `git branch branchname` will create a new branch. - `git checkout branchname` will help you switch to another branch. +- `git checkout -b branchname` will create a new branch and switch to that branch too. - `git rebase -i hash value` will merge multiple commits into a single commit. - `git merge branchname` will merge the branch into another. Here the name of the branch would a branch that you want to merge into another branch.