Skip to main content

Posts

Showing posts with the label checkout code from specific branch

How to create a git repository in your local system and push it to github

In this tutorial we will learn how to create git branches from local and make changes and push that branch to github How to create branch in local git      git branch BranchName How to switch to other local branch      git check BranchName check all the branches in local git      git branches check the git status about your changes and the branch you are in      git status After making changes run the below command to change upstream branch & push changes to git hub     git push --set-upstream origin branch_name

How to create a new branch and works on that branch

In this git tutorial we will see how we can create branches in github, checkout the code in local and make changes also how to commit changes and push it to github * How to create branch in git hub * How to checkout specific branch in local system * How to switch to different branches in local git using command prompt * How to add changed files to git local repository * How to commit code changes to local repository  * How to push code changes from specific branch * How to set upstream while pushing changes to github Let's get started... 1. How to checkout code from specific branch      git clone -b BranchName giturl      if you want to create a new branch in your local use the below command     -> How to create branch in local git                   git branch BranchName     -> How to switch to other local branch           ...