<?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: Jitendra Rawat</title>
    <description>The latest articles on DEV Community by Jitendra Rawat (@jitendra11).</description>
    <link>https://dev.to/jitendra11</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%2F3113556%2Fec820aaf-bdbb-4f9d-bc1b-f201f8084d53.png</url>
      <title>DEV Community: Jitendra Rawat</title>
      <link>https://dev.to/jitendra11</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jitendra11"/>
    <language>en</language>
    <item>
      <title>📘 Top Spring Boot Interview Questions and Answers</title>
      <dc:creator>Jitendra Rawat</dc:creator>
      <pubDate>Fri, 02 May 2025 23:06:32 +0000</pubDate>
      <link>https://dev.to/jitendra11/top-spring-boot-interview-questions-and-answers-1b41</link>
      <guid>https://dev.to/jitendra11/top-spring-boot-interview-questions-and-answers-1b41</guid>
      <description>&lt;p&gt;🚀 &lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Spring Boot simplifies backend development by reducing boilerplate code, auto-configuring dependencies, and enabling fast delivery of production-ready applications. Whether you're preparing for interviews or refreshing your knowledge, this guide covers the 20 most important Spring Boot questions with simple, practical answers.&lt;/p&gt;


&lt;h3&gt;
  
  
  1. What is Spring Boot?
&lt;/h3&gt;

&lt;p&gt;Spring Boot is a Java-based framework that lets you create stand-alone, production-grade applications quickly with minimal configuration.&lt;/p&gt;


&lt;h3&gt;
  
  
  2. What are the key features of Spring Boot?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Auto-configuration based on dependencies
&lt;/li&gt;
&lt;li&gt;Embedded servers (Tomcat, Jetty)
&lt;/li&gt;
&lt;li&gt;Production-ready tools like Actuator
&lt;/li&gt;
&lt;li&gt;No need for XML configuration
&lt;/li&gt;
&lt;li&gt;Project scaffolding using Spring Initializr&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  3. What is &lt;code&gt;@SpringBootApplication&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;It combines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;@Configuration&lt;/code&gt; – Declares configuration
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@EnableAutoConfiguration&lt;/code&gt; – Enables auto-configuration
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@ComponentScan&lt;/code&gt; – Scans packages for components
&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  4. What is a Spring Bean?
&lt;/h3&gt;

&lt;p&gt;A Bean is an object managed by Spring. Spring creates, configures, and injects beans into your app automatically.&lt;/p&gt;


&lt;h3&gt;
  
  
  5. What is Auto-Configuration?
&lt;/h3&gt;

&lt;p&gt;Spring Boot configures your app based on the libraries present in the classpath. For example, adding &lt;code&gt;spring-boot-starter-web&lt;/code&gt; sets up a web server and MVC config.&lt;/p&gt;


&lt;h3&gt;
  
  
  6. What is Dependency Injection?
&lt;/h3&gt;

&lt;p&gt;It's a design pattern where Spring automatically provides a class with the objects it needs instead of the class creating them.&lt;/p&gt;


&lt;h3&gt;
  
  
  7. What is Spring Boot Actuator?
&lt;/h3&gt;

&lt;p&gt;It provides endpoints to monitor and manage your app in production:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/actuator/health&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/actuator/metrics&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/actuator/info&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  8. What is a Circular Dependency?
&lt;/h3&gt;

&lt;p&gt;Occurs when two or more beans depend on each other in a cycle. Spring fails to resolve it and throws an exception.&lt;/p&gt;


&lt;h3&gt;
  
  
  9. What is &lt;code&gt;@Qualifier&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;When multiple beans exist of the same type, use &lt;code&gt;@Qualifier&lt;/code&gt; to specify which one to inject.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nd"&gt;@Autowired&lt;/span&gt;
&lt;span class="nd"&gt;@Qualifier&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"myServiceImpl"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;private&lt;/span&gt; &lt;span class="nc"&gt;MyService&lt;/span&gt; &lt;span class="n"&gt;service&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  10. What is &lt;code&gt;@RequestMapping&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;Used to map HTTP requests to controller methods. Variants like &lt;code&gt;@GetMapping&lt;/code&gt;, &lt;code&gt;@PostMapping&lt;/code&gt; make this more specific and easier to use.&lt;/p&gt;




&lt;h3&gt;
  
  
  11. What are the types of Bean Scopes?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;singleton&lt;/code&gt; – One instance per Spring container (default)
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prototype&lt;/code&gt; – A new instance every time it’s requested
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;request&lt;/code&gt; – One instance per HTTP request
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;session&lt;/code&gt; – One instance per HTTP session
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;application&lt;/code&gt; – One instance per ServletContext
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  12. How does Spring Boot handle REST communication?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;RestTemplate&lt;/code&gt; – Traditional synchronous HTTP client. Easy to use and widely adopted, but being replaced in modern applications.
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WebClient&lt;/code&gt; – Non-blocking, reactive HTTP client. Preferred for scalable and asynchronous systems.
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;RestClient&lt;/code&gt; – Introduced in Spring Boot 3. A simplified and fluent alternative to &lt;code&gt;RestTemplate&lt;/code&gt;, designed for clean and type-safe REST calls.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  13. What is the Spring Boot Starter Dependency?
&lt;/h3&gt;

&lt;p&gt;Spring Boot starters are a set of convenient dependency descriptors you can include in your project. They simplify build configuration by bundling commonly used libraries.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;spring-boot-starter-web&lt;/code&gt; – for building RESTful APIs
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;spring-boot-starter-data-jpa&lt;/code&gt; – for database access using JPA
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;spring-boot-starter-security&lt;/code&gt; – for authentication and authorization
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  14. What is the difference between &lt;code&gt;@Component&lt;/code&gt;, &lt;code&gt;@Service&lt;/code&gt;, &lt;code&gt;@Repository&lt;/code&gt;, and &lt;code&gt;@Controller&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;These annotations mark classes as Spring-managed beans and define their roles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;@Component&lt;/code&gt; – Generic stereotype for any Spring-managed component
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@Service&lt;/code&gt; – Marks a service class (used for business logic)
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@Repository&lt;/code&gt; – Indicates a DAO class and adds exception translation
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@Controller&lt;/code&gt; – Used for web controllers to handle HTTP requests
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  15. How do you handle exceptions globally?
&lt;/h3&gt;

&lt;p&gt;Use &lt;code&gt;@ControllerAdvice&lt;/code&gt; and &lt;code&gt;@ExceptionHandler&lt;/code&gt;:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
java
@ControllerAdvice
public class GlobalExceptionHandler {
    @ExceptionHandler(Exception.class)
    public ResponseEntity&amp;lt;String&amp;gt; handle(Exception e) {
        return ResponseEntity.status(500).body(e.getMessage());
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>springboot</category>
      <category>spring</category>
      <category>java</category>
    </item>
    <item>
      <title>🐳 Docker Cheatsheet: Essential Commands for Every Developer</title>
      <dc:creator>Jitendra Rawat</dc:creator>
      <pubDate>Thu, 01 May 2025 15:23:04 +0000</pubDate>
      <link>https://dev.to/jitendra11/docker-cheatsheet-essential-commands-for-every-developer-48me</link>
      <guid>https://dev.to/jitendra11/docker-cheatsheet-essential-commands-for-every-developer-48me</guid>
      <description>&lt;p&gt;&lt;strong&gt;🚀 Introduction&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Docker has transformed the way we develop, ship, and deploy applications by providing consistent environments across development, testing, and production. Whether you're just starting out or need a refresher, this &lt;strong&gt;Docker CLI cheatsheet&lt;/strong&gt; covers the most essential commands every developer should know.&lt;/p&gt;


&lt;h3&gt;
  
  
  🔧 &lt;strong&gt;Getting Started&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;📦 Build a Docker Image&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; &amp;lt;image_name&amp;gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🔥 Build Without Cache&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; &amp;lt;image_name&amp;gt; &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--no-cache&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📂 List Local Images&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🧹 Remove an Image&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker rmi &amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🧼 Prune Unused Images&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker image prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  🔐 &lt;strong&gt;Docker Hub &amp;amp; Authentication&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;🔑 Login to Docker Hub&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker login &lt;span class="nt"&gt;-u&lt;/span&gt; &amp;lt;username&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🚀 Push Image to Docker Hub&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker push &amp;lt;username&amp;gt;/&amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🔍 Search for Images&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker search &amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📥 Pull an Image&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker pull &amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  🧪 &lt;strong&gt;Working with Containers&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;🚀 Run a Container&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;--name&lt;/span&gt; &amp;lt;container_name&amp;gt; &amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🌐 Run with Port Mapping&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-p&lt;/span&gt; &amp;lt;host_port&amp;gt;:&amp;lt;container_port&amp;gt; &amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🕶 Run in Background (Detached Mode)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &amp;lt;image_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;▶️ Start / ⏹ Stop Container&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker start &amp;lt;container_name&amp;gt;
docker stop &amp;lt;container_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🗑 Remove Stopped Container&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;rm&lt;/span&gt; &amp;lt;container_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🖥 Access Running Container&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-it&lt;/span&gt; &amp;lt;container_name&amp;gt; sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  📈 &lt;strong&gt;Logs, Stats &amp;amp; Monitoring&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;📄 View Logs&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker logs &lt;span class="nt"&gt;-f&lt;/span&gt; &amp;lt;container_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🔎 Inspect Container Details&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker inspect &amp;lt;container_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📋 List Running Containers&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📋 List All Containers&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker ps &lt;span class="nt"&gt;-a&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📊 Monitor Usage Stats&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker container stats
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  ⚙️ &lt;strong&gt;Miscellaneous &amp;amp; System Info&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;🐳 Start Docker Daemon&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📘 Get Help on Any Command&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;ℹ️ Show Docker System Info&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker info
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;🔗 Connect with me:&lt;br&gt;&lt;br&gt;
💼 &lt;a href="https://www.linkedin.com/in/jitendra-rawat/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;br&gt;&lt;br&gt;
💻 &lt;a href="https://github.com/jitendrarawat4" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
    </item>
    <item>
      <title>🧠 Master Git: A Practical Cheatsheet for Developers</title>
      <dc:creator>Jitendra Rawat</dc:creator>
      <pubDate>Thu, 01 May 2025 14:11:12 +0000</pubDate>
      <link>https://dev.to/jitendra11/master-git-a-practical-cheatsheet-for-developers-1g8j</link>
      <guid>https://dev.to/jitendra11/master-git-a-practical-cheatsheet-for-developers-1g8j</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;: Whether you're a solo developer or collaborating with a team, version control is non-negotiable—and Git is the standard. It helps manage code changes, track history, experiment safely, and work across branches. But let’s be honest: Git's power can be overwhelming at first. That’s why I’ve compiled this concise, no-fluff Git cheatsheet to help you get up to speed quickly and stay productive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🚀 Getting Started&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔧 Initialize a Repository&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Begin tracking a project in your current directory. This sets up a hidden .git folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📅 Clone an Existing Repo&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone &amp;lt;repo-url&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Download a copy of a remote repository to your local machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📝 Tracking and Saving Changes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;➕ Stage Files&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &amp;lt;file&amp;gt;
git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mark files to be included in the next commit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Commit Changes&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"your message"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save a snapshot of staged changes with a message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔍 View Status&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check what’s staged, modified, or untracked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📊 View Differences&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git diff        &lt;span class="c"&gt;# unstaged vs working directory  &lt;/span&gt;
git diff &lt;span class="nt"&gt;--cached&lt;/span&gt;  &lt;span class="c"&gt;# staged vs last commit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🌿 Branching &amp;amp; Merging&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🌱 Create a Branch&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch &amp;lt;branch-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📍 Switch Branches&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout &amp;lt;branch-name&amp;gt;
git checkout &lt;span class="nt"&gt;-b&lt;/span&gt; &amp;lt;new-branch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🔀 Merge Branches&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git merge &amp;lt;branch-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;☁️ Working with Remotes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📄 Push Changes&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push origin &amp;lt;branch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📅 Pull Updates&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git pull origin &amp;lt;branch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📜 View History&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;💠 Advanced Commands&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⏪ Revert a Commit&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git revert &amp;lt;commit-hash&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Safely undo a commit without rewriting history.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔀 Reset Commits&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git reset &lt;span class="nt"&gt;--soft&lt;/span&gt; HEAD~1  
git reset &lt;span class="nt"&gt;--mixed&lt;/span&gt; HEAD~1  
git reset &lt;span class="nt"&gt;--hard&lt;/span&gt; HEAD~1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Control whether to keep, unstage, or discard changes when going back.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📦 Stash Your Work&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git stash
git stash apply
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Temporarily save your changes and come back to them later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🍒 Cherry Pick Commits&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git cherry-pick &amp;lt;commit-hash&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Apply a specific commit from one branch onto another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;💪 Rebase Branches&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git rebase &amp;lt;branch&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reapply commits from one branch on top of another for a cleaner history.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚙️ Productivity Boosters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚓ Git Hooks&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Automate tasks before/after Git events by placing scripts in &lt;code&gt;.git/hooks&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚡ Create Aliases&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config &lt;span class="nt"&gt;--global&lt;/span&gt; alias.co checkout
git config &lt;span class="nt"&gt;--global&lt;/span&gt; alias.br branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;📚 Popular Git Workflows&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Centralized Workflow&lt;/strong&gt;: Direct commits to &lt;code&gt;main&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feature Branch Workflow&lt;/strong&gt;: Isolated branches per feature&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gitflow&lt;/strong&gt;: Structured with &lt;code&gt;main&lt;/code&gt;, &lt;code&gt;develop&lt;/code&gt;, &lt;code&gt;release&lt;/code&gt;, and &lt;code&gt;feature&lt;/code&gt; branches&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;🔗 Connect with me:&lt;br&gt;&lt;br&gt;
💼 &lt;a href="https://www.linkedin.com/in/jitendra-rawat/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;br&gt;&lt;br&gt;
💻 &lt;a href="https://github.com/jitendrarawat4" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
