Skip to content

Ismail-Hossain-1/Git-Branching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

Git-Branching


To list all the available branches

git branch

To create new branch

git branch <branchName>

To switch branch from current to (branchName)

git checkout <branchName>

To create a bew branch and switch init the new branch

git checkout -b "<branchName>"

Check remote repo url

git remote show origin

Delete a local repo:

rm -fr .git

To update a branch from main or master branch

  1. update the main or master branch ( git pull (switch into the main branch if not onto it -git checkout ) )
  2. merge with the main or master branch
  3. git checkout <main/master>
    git pull
    git checkout <intendedBranch>
    git merge <main/master>
    

About

Basic commands in git bash

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published