<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: NoviceDev</title>
    <description>The latest articles on DEV Community by NoviceDev (@novicedev).</description>
    <link>https://dev.to/novicedev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F783389%2Fd81efffa-6d43-44b9-ac4c-d67ab1dc8fe9.png</url>
      <title>DEV Community: NoviceDev</title>
      <link>https://dev.to/novicedev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/novicedev"/>
    <language>en</language>
    <item>
      <title>How to INSTALL and RUN MINIKUBE Locally</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Wed, 24 May 2023 14:19:44 +0000</pubDate>
      <link>https://dev.to/novicedev/how-to-install-and-run-minikube-locally-i86</link>
      <guid>https://dev.to/novicedev/how-to-install-and-run-minikube-locally-i86</guid>
      <description>&lt;p&gt;&lt;a href="https://minikube.sigs.k8s.io/docs/"&gt;Minikube&lt;/a&gt; is a tool that allows you to run Kubernetes locally on your machine. It is a great tool for developers who want to test their Kubernetes applications locally before deploying them to production.&lt;/p&gt;

&lt;p&gt;This article provides a comprehensive guide on how to install Minikube, a tool that allows you to run Kubernetes locally on your machine, on macOS, Windows, and Linux.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Minikube on macOS
&lt;/h2&gt;

&lt;p&gt;To install Minikube on macOS, you will need to use Homebrew. If you don't have Homebrew installed, you can install it by running the following command in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you have Homebrew installed, you can install Minikube by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install minikube
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the installation is complete, you can start Minikube by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;minikube start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will start a local Kubernetes cluster on your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Minikube on Windows
&lt;/h2&gt;

&lt;p&gt;To install Minikube on Windows, you will need to download and install the Minikube installer from the official Minikube website. Once you have downloaded the installer, run it and follow the on-screen instructions.&lt;/p&gt;

&lt;p&gt;After the installation is complete, you can start Minikube by opening a command prompt or PowerShell window and running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;minikube start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will start a local Kubernetes cluster on your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Minikube on Linux
&lt;/h2&gt;

&lt;p&gt;To install Minikube on Linux, you will need to download and install the Minikube binary. You can download the binary from the official Minikube website.&lt;/p&gt;

&lt;p&gt;Once you have downloaded the binary, make it executable by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod +x minikube-linux-amd64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, move the binary to your PATH by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mv minikube-linux-amd64 /usr/local/bin/minikube
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the binary is installed, you can start Minikube by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;minikube start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will start a local Kubernetes cluster on your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this blog post, we went over how to install Minikube on macOS, Windows, and Linux. By following these steps, you can easily set up a local Kubernetes cluster on your machine and start testing your applications locally.&lt;/p&gt;

&lt;p&gt;Photo by Ibrahim Rifath on Unsplash&lt;br&gt;
Original Post: &lt;a href="https://www.novicedev.com/blog/how-install-and-run-minikube-locally"&gt;https://www.novicedev.com/blog/how-install-and-run-minikube-locally&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>minikube</category>
      <category>k8s</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>7 TV Shows Every Programmer Should Binge Watch</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Thu, 19 Jan 2023 07:07:06 +0000</pubDate>
      <link>https://dev.to/novicedev/7-tv-shows-every-programmer-should-binge-watch-2c70</link>
      <guid>https://dev.to/novicedev/7-tv-shows-every-programmer-should-binge-watch-2c70</guid>
      <description>&lt;p&gt;As a programmer, it's important to stay up-to-date on the latest trends and technologies in the field. But when you're not working, you still want to relax and enjoy some quality entertainment.&lt;br&gt;
Luckily, there are plenty of TV shows that cater to the tech-savvy crowd. Here are 7 TV shows you should watch as a programmer:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. "Silicon Valley" (2014-2019)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Vm4tx1O9GAc"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Comedy&lt;br&gt;
Seasons: 6 (53 episodes)&lt;/strong&gt;&lt;br&gt;
This comedy series follows a group of young tech entrepreneurs as they navigate the competitive world of Silicon Valley.&lt;br&gt;
It's a great show for programmers to watch because it provides a realistic portrayal of the tech industry and the challenges that come with building a startup.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. "Mr. Robot" (2015-2019)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/N6HGuJC--rk"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Techno-thriller&lt;br&gt;
Seasons: 4 (45 episodes)&lt;/strong&gt;&lt;br&gt;
This psychological thriller follows a hacker who is recruited by an underground group to bring down a large corporation.&lt;br&gt;
It's a great show for programmers to watch because it highlights the importance of cybersecurity and the potential consequences of technological advancements.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. "The IT Crowd" (2006-2013)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/MwwTfkXk7U0"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Sitcom&lt;br&gt;
Seasons: 4 (25 episodes)&lt;/strong&gt;&lt;br&gt;
This British sitcom follows the IT department of a fictional company and the humorous situations they find themselves in. &lt;br&gt;
It's a great show for programmers to watch because it provides a lighthearted and relatable portrayal of the tech industry.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. "Halt and Catch Fire" (2014-2017)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/pWrioRji60A"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Drama&lt;br&gt;
Seasons: 4 (40 episodes)&lt;/strong&gt;&lt;br&gt;
This drama series follows a group of tech professionals as they attempt to revolutionize the tech industry in the 1980s. &lt;br&gt;
It's a great show for programmers to watch because it showcases the early days of the tech industry and the struggles and triumphs that come with innovation.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. "Black Mirror" (2011-present)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/V0XOApF5nLU"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Dystopia, Science fiction, Thriller, Drama, Anthology series, Satire, Speculative fiction, Fantasy&lt;br&gt;
Seasons: 4 (22 episodes)&lt;/strong&gt;&lt;br&gt;
This anthology series explores the dark side of technology and its impact on society.&lt;br&gt;
It's a great show for programmers to watch because it encourages critical thinking about the role of technology in our lives and the potential consequences of its advancements.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. "The Big Bang Theory" (2007-2019)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/dVmOvmH4dL4"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Comedy&lt;br&gt;
Seasons: 12 (279 episodes)&lt;/strong&gt;&lt;br&gt;
This long-running sitcom follows a group of brilliant but socially awkward scientists and engineers as they navigate their personal and professional lives.&lt;br&gt;
It offers a humorous and relatable portrayal of the world of science and technology.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. "Westworld" (2-16 - Present)
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/qLFBcdd6Qw0"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Genre: Comedy&lt;br&gt;
Seasons: 4 (36 episodes)&lt;/strong&gt;&lt;br&gt;
"Westworld" is a science fiction TV show that follows the lives of artificial beings in a Western-themed amusement park. The show explores themes of consciousness, free will, and the ethical implications of artificial intelligence.&lt;br&gt;
It features a large ensemble cast and has received critical acclaim for its complex plot and thought-provoking themes.&lt;/p&gt;

&lt;p&gt;Overall, there are plenty of TV shows out there that cater to the interests of programmers.&lt;br&gt;
Whether you're looking for a comedic escape or a more intense drama, there's something for everyone in the tech-savvy crowd.&lt;/p&gt;

&lt;p&gt;Original Post: &lt;a href="https://www.novicedev.com/blog/7-tv-shows-every-programmer-should-binge-watch"&gt;https://www.novicedev.com/blog/7-tv-shows-every-programmer-should-binge-watch&lt;/a&gt;&lt;/p&gt;

</description>
      <category>inspire</category>
      <category>beginners</category>
      <category>startup</category>
    </item>
    <item>
      <title>How to UPDATE HOMEBREW on Mac?</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Thu, 19 Jan 2023 03:45:50 +0000</pubDate>
      <link>https://dev.to/novicedev/how-to-update-homebrew-on-mac-50jl</link>
      <guid>https://dev.to/novicedev/how-to-update-homebrew-on-mac-50jl</guid>
      <description>&lt;p&gt;Are you looking to update your Homebrew and its packages on your mac? It's an easy process and can be done in just 2 steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Brew update
&lt;/h2&gt;

&lt;p&gt;First, open up your terminal and type in the following command: "brew update". This will update the homebrew and it should always be run before installing or updating any package with brew.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew update
Updated 2 taps (homebrew/core and homebrew/cask).
==&amp;gt; New Formulae
aptos            bzip3            cdebug           flagd            grayskull        kwctl            openvino         plz-cli          prs              ruby@3.1         twm              xinit            xorg-server
aws-sam-cli      cascadia         ecoji            gokey            kubent           ocm              pari-nflistdata  podsync          quartz-wm        simdutf          video-compare    xmodmap          xrdb
==&amp;gt; New Casks
codux                    confectionery            forkgram-telegram        ideamaker                mmhmm-studio             oka-unarchiver           runcat-plugins-manager   superlist                threads
==&amp;gt; Outdated Formulae
ca-certificates                       icu4c                                 ncurses                               node                                  ruby                                  xz
==&amp;gt; Outdated Casks
altair-graphql-client

You have 6 outdated formulae and 1 outdated cask installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Brew upgrade
&lt;/h2&gt;

&lt;p&gt;Next, type in the command "brew upgrade". This will upgrade all of your currently installed packages to the latest version.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew upgrade
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Upgrade individual package
&lt;/h3&gt;

&lt;p&gt;If you only want to upgrade a specific package, you can type in the command "brew upgrade ", replacing  with the name of the package you want to upgrade.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew upgrade &amp;lt;package-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the update is complete, you can check that all packages are up-to-date by typing in the command "brew outdated". This will show you a list of any packages that are still not in the latest version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;And that's it! Your Homebrew installation is now fully updated and ready to go. If you have any issues or errors during the update process, you can check out the &lt;a href="https://docs.brew.sh/"&gt;Homebrew documentation&lt;/a&gt; for further assistance.&lt;/p&gt;

&lt;p&gt;Happy updating!&lt;/p&gt;

&lt;p&gt;Original Post: &lt;a href="https://www.novicedev.com/blog/how-update-homebrew-mac"&gt;https://www.novicedev.com/blog/how-update-homebrew-mac&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Photo by &lt;a href="https://unsplash.com/fr/@louishansel?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Louis Hansel&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/JeHC4yA5PNw?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>homebrew</category>
      <category>beginners</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>How to Create a new GIT Branch from a Tag?</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Tue, 27 Sep 2022 07:50:55 +0000</pubDate>
      <link>https://dev.to/novicedev/how-to-create-a-new-git-branch-from-a-tag-e47</link>
      <guid>https://dev.to/novicedev/how-to-create-a-new-git-branch-from-a-tag-e47</guid>
      <description>&lt;p&gt;A new GIT branch can be created from a tag through the “git checkout” command with the “-b” option followed by a new branch name and tag name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b &amp;lt;new-branch&amp;gt; &amp;lt;tag-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why Create Git Branch from a Tag
&lt;/h2&gt;

&lt;p&gt;GIT tags are created to mark a specific point in git history and then deployed. But sometimes you might want to debug the deployed code and the best way is to create a new GIT branch from that tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create Git Branch from a Tag
&lt;/h2&gt;

&lt;p&gt;Let’s say you have deployed tag v2.0 on production and now you have some issues after the deployment.&lt;/p&gt;

&lt;p&gt;Now creating a debug branch from the tag v2.0 will be the best way to make sure you have the exact code which is deployed on production.&lt;/p&gt;

&lt;p&gt;Now let's go through each step one by one to create a new branch from the correct tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Get the tag
&lt;/h3&gt;

&lt;p&gt;Make sure you fetch all the tags from your remote repository with the "git fetch" command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git fetch --all --tags
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Confirm the tag
&lt;/h3&gt;

&lt;p&gt;Now confirm that you have fetched the required tag v2.0 from which you want to create the branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git tag -l

v2.0
v1.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Create a new branch from the tag
&lt;/h3&gt;

&lt;p&gt;After confirming that tag v2.0 fetch properly, we can now run the "git checkout" command to create the new branch from that tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b debug-tag-2-0 v2.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we have a new branch "debug-tag-2-0" ready for debugging on local.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial, we learned why we might need to create a new git branch from a tag for debugging and how this can be achieved with the "git checkout" command.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>git</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>How to Create a Branch in GIT?</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Tue, 27 Sep 2022 07:32:34 +0000</pubDate>
      <link>https://dev.to/novicedev/how-to-create-a-branch-in-git-3g9b</link>
      <guid>https://dev.to/novicedev/how-to-create-a-branch-in-git-3g9b</guid>
      <description>&lt;p&gt;Whenever you start developing a new feature you must start with creating a new branch git. This way you separate your feature changes from other branches.&lt;/p&gt;

&lt;p&gt;A new branch can be created with the ‘git checkout’ command with ‘-b’ and a new branch name as arguments. This will create a new branch from your current branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b &amp;lt;new-branch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But if you don't want to create a new branch from the current branch then you can also pass the base branch as an argument.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b &amp;lt;new-branch&amp;gt; &amp;lt;base-branch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This new branch can be merged back into the other branch once the feature is completed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a GIT branch from the master branch
&lt;/h2&gt;

&lt;p&gt;Let's take an example, you want to create a new feature branch 'feature-2' from the master branch.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Checkout master branch (source branch)
&lt;/h3&gt;

&lt;p&gt;First, make sure your current git branch is the master branch. You can check this by running "git branch" or "git branch --show-current" commands&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git branch

  feature-1
* master

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If not, then make sure to checkout the master branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout master
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Run "git checkout" command with "-b" and feature branch name
&lt;/h3&gt;

&lt;p&gt;Now you can run the GIT checkout command to create a new feature branch "feature-2"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b feature-2
Switched to a new branch 'feature-2'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once run successfully, the new branch will be created and your current branch will be switched to this new branch.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Confirm the new branch
&lt;/h3&gt;

&lt;p&gt;You can also verify your new branch by running the ‘git branch’ command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git branch

  feature-1
* feature-2
  master
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial, we learned to create a new branch in GIT with the "git checkout" command. This can also be achieved with the "git branch" command.&lt;/p&gt;

&lt;p&gt;A GIT branch is not the only source for creating a new feature branch. A New GIT branch can also be created from commit SHA, a tag, or a remote branch.&lt;/p&gt;

&lt;p&gt;Original Post: &lt;a href="https://www.novicedev.com/blog/how-create-branch-git"&gt;https://www.novicedev.com/blog/how-create-branch-git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>codenewbie</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Create GIT Branch from a Commit</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Tue, 13 Sep 2022 01:51:27 +0000</pubDate>
      <link>https://dev.to/novicedev/create-git-branch-from-a-commit-1b8f</link>
      <guid>https://dev.to/novicedev/create-git-branch-from-a-commit-1b8f</guid>
      <description>&lt;p&gt;Usually, a branch is created from another branch which is the latest HEAD commit of the branch. But what if you want to create a branch from a previous commit HEAD?&lt;/p&gt;

&lt;p&gt;GIT branch can be created with a commit hash using the ‘git checkout’ command with ‘-b’ option and then pass a new branch name with the commit SHA.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b &amp;lt;new-branch&amp;gt; &amp;lt;commit-sha&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or, you can also use the 'git branch' command to create the branch without switching to the new branch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git branch &amp;lt;new-branch&amp;gt; &amp;lt;commit-sha&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here are the detailed steps to create a GIT branch from a commit hash with the git checkout command:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Find commit SHA with git log
&lt;/h2&gt;

&lt;p&gt;The first step is to find the commit SHA from which you want to create the branch.&lt;/p&gt;

&lt;p&gt;Use ‘git log’ command with ‘--online’ and ‘--graph’ options to get the commit SHA.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git log --oneline --graph

* 39710b8 (HEAD -&amp;gt; feature-2) Feature 2 added.
* ecddf76 Feature 1 added.
* 34cd5ff (new-branch, develop) Test commit.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can see 3 commits in the git history.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Create new branch from commit SHA
&lt;/h2&gt;

&lt;p&gt;Now let's assume you want to create a branch from the second commit with commit hash value 'ecddf76'.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout -b feature-102 ecddf76
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Confirm new branch head
&lt;/h2&gt;

&lt;p&gt;Use 'git log' command again to make sure that the new branch is created from the correct commit SHA&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git log --oneline --graph

* ecddf76 (HEAD -&amp;gt; feature-104) Feature 1 added.
* 34cd5ff (new-branch, develop) Test commit.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you have successfully created a new branch from a commit in the commit history.&lt;/p&gt;

&lt;p&gt;Further reading: &lt;a href="https://www.atlassian.com/git/tutorials/using-branches/git-checkout"&gt;https://www.atlassian.com/git/tutorials/using-branches/git-checkout&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Original Post: &lt;a href="https://www.novicedev.com/blog/create-git-branch-commit"&gt;https://www.novicedev.com/blog/create-git-branch-commit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>webdev</category>
      <category>codenewbie</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to rename git branch?</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Sun, 30 Jan 2022 14:53:04 +0000</pubDate>
      <link>https://dev.to/novicedev/how-to-rename-git-branch-1j54</link>
      <guid>https://dev.to/novicedev/how-to-rename-git-branch-1j54</guid>
      <description>&lt;p&gt;Made a small mistake while naming your git branch, don't panic this blog post will go through all the possibilities for renaming the git branch on local and remote.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Git branch can be renamed with a simple command "git branch -m ", this will rename your current git branch name. Once the branch is renamed on local you can push the new branch to remote and delete the old git branch on the remote.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now let's go through some detail on why and how to rename a git branch on local and remote.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why you might want to rename the git branch name?
&lt;/h2&gt;

&lt;p&gt;Before going into details of how to rename local and remote git branches, let's see the reason why you might want to do it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You might want to rename your git branch if the branch name does not match your project branch naming standards.&lt;/li&gt;
&lt;li&gt;You might have the wrong branch name or a wrong ticket number in your branch name.&lt;/li&gt;
&lt;li&gt;Sometimes you might make a typo mistake while naming your branch and want to make it perfect by renaming it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to rename the local git branch?
&lt;/h2&gt;

&lt;p&gt;Now let's see how to rename a git branch on local with these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The first step to rename a branch is to checkout the branch you might want to rename.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout &amp;lt;old-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Now you can run the "git branch" command with -m and the new branch name
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git branch -m &amp;lt;new-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;To check if the branch is renamed correctly you can run the "git branch" or "git status" command to check your current branch
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git status
On branch new-name
nothing to commit, working tree clean
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your old git branch was only on your local and not pushed to remote then you can stop here.&lt;/p&gt;

&lt;p&gt;But if you have the wrong branch name on remote as well then continue reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to rename remote git branch?
&lt;/h2&gt;

&lt;p&gt;In the previous stage, we rename the git branch on local and now we will follow these steps to update the branch name on remote as well.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Once the branch is renamed on local, run the below command to push the renamed branch to remote
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git push origin -u &amp;lt;new-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Pushing the branch to remote with the new name will now delete the old branch on the remote. You need to run the below command to delete the remote branch with the old name.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git push origin --delete &amp;lt;old-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Okay, now we know that there is no need to panic if you made a mistake while naming your git branch.&lt;/p&gt;

&lt;p&gt;We have seen why might need to rename your git branch, how to rename a branch on local, and then how to push it to the remote repository if required.&lt;/p&gt;

&lt;p&gt;And always remember to remove the old git branch from the remote to make sure no one uses it.&lt;/p&gt;

&lt;p&gt;Leave a comment if you need to know more about renaming your git branch and do check out our blog post on &lt;a href="https://www.novicedev.com/blog/16-basic-commands-get-started-git"&gt;basic git commands&lt;/a&gt; you should know.&lt;/p&gt;

&lt;p&gt;Original post: &lt;a href="https://www.novicedev.com/blog/rename-git-branch"&gt;https://www.novicedev.com/blog/rename-git-branch&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>webdev</category>
      <category>codenewbie</category>
      <category>beginners</category>
    </item>
    <item>
      <title>16 basic commands to get started with GIT</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Tue, 04 Jan 2022 15:03:54 +0000</pubDate>
      <link>https://dev.to/novicedev/16-basic-commands-to-get-started-with-git-415b</link>
      <guid>https://dev.to/novicedev/16-basic-commands-to-get-started-with-git-415b</guid>
      <description>&lt;p&gt;As a beginner knowing all the git commands could be overwhelming, but you can get away with some basic git commands at the start.&lt;/p&gt;

&lt;p&gt;In this article, we will go through these 16 basic git commands that you should know as a new developer.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git clone&lt;/li&gt;
&lt;li&gt;git init&lt;/li&gt;
&lt;li&gt;git checkout&lt;/li&gt;
&lt;li&gt;git branch&lt;/li&gt;
&lt;li&gt;git config&lt;/li&gt;
&lt;li&gt;git status&lt;/li&gt;
&lt;li&gt;git diff&lt;/li&gt;
&lt;li&gt;git add&lt;/li&gt;
&lt;li&gt;git commit&lt;/li&gt;
&lt;li&gt;git push&lt;/li&gt;
&lt;li&gt;git remote&lt;/li&gt;
&lt;li&gt;git pull&lt;/li&gt;
&lt;li&gt;git log&lt;/li&gt;
&lt;li&gt;git rm&lt;/li&gt;
&lt;li&gt;git stash&lt;/li&gt;
&lt;li&gt;git fetch&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Find more details on the original post: &lt;br&gt;
 &lt;a href="https://www.novicedev.com/blog/16-basic-commands-get-started-git"&gt;https://www.novicedev.com/blog/16-basic-commands-get-started-git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>How to checkout a git tag?</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Fri, 31 Dec 2021 03:42:18 +0000</pubDate>
      <link>https://dev.to/novicedev/how-to-checkout-a-git-tag-1oh</link>
      <guid>https://dev.to/novicedev/how-to-checkout-a-git-tag-1oh</guid>
      <description>&lt;p&gt;Git tags are created to mark a release candidate. Because it points directly to a commit in the git history and will not change.&lt;/p&gt;

&lt;p&gt;But sometimes we need to checkout a remote tag to our local.&lt;/p&gt;

&lt;p&gt;Here is how we can achieve this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fetch git tags
&lt;/h2&gt;

&lt;p&gt;The first thing you need is to fetch the git tag to your local. You can do this by using the git fetch command with --all and --tags arguments.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git fetch --all --tags
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Checkout tag as a branch
&lt;/h2&gt;

&lt;p&gt;The next step is to checkout a specific tag as a branch with git checkout command with the tag name and new branch name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git checkout tags/&amp;lt;tag_name&amp;gt; -b &amp;lt;branch_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can test the code from a tag on your local branch and make updates as well.&lt;/p&gt;

&lt;p&gt;Original Post: &lt;a href="https://www.novicedev.com/blog/how-checkout-git-tag"&gt;https://www.novicedev.com/blog/how-checkout-git-tag&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Clone your first Git repository</title>
      <dc:creator>NoviceDev</dc:creator>
      <pubDate>Fri, 31 Dec 2021 02:51:43 +0000</pubDate>
      <link>https://dev.to/novicedev/clone-your-first-git-repository-2d4m</link>
      <guid>https://dev.to/novicedev/clone-your-first-git-repository-2d4m</guid>
      <description>&lt;p&gt;Git clone command is used when you are trying to download a project from an existing remote repository. Once the git clone command is successfully executed you will have a copy of the repository in your machine.&lt;/p&gt;

&lt;p&gt;The below command will clone the remote git repository and the name of the directory will be the same as the repository name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git clone &amp;lt;repository&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git clone https://github.com/username/myproject.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And now you can navigate in the cloned directory on you local.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.novicedev.com/blog/how-clone-git-repository"&gt;Know more about git clone...&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
