<?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: Yuvraj Khavad</title>
    <description>The latest articles on DEV Community by Yuvraj Khavad (@yuvrajkhavad).</description>
    <link>https://dev.to/yuvrajkhavad</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%2F496362%2F56d8bc97-2010-4ed0-ab46-b5556b1c451e.jpg</url>
      <title>DEV Community: Yuvraj Khavad</title>
      <link>https://dev.to/yuvrajkhavad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuvrajkhavad"/>
    <language>en</language>
    <item>
      <title>Learn Working with Git and Bitbucket</title>
      <dc:creator>Yuvraj Khavad</dc:creator>
      <pubDate>Sun, 18 Jul 2021 18:03:51 +0000</pubDate>
      <link>https://dev.to/yuvrajkhavad/learn-working-with-git-and-bitbucket-1pk4</link>
      <guid>https://dev.to/yuvrajkhavad/learn-working-with-git-and-bitbucket-1pk4</guid>
      <description>&lt;p&gt;In this article, I will explain to you how to work with git and bitbucket. This is a direct practice example for the beginner&lt;/p&gt;

&lt;p&gt;Before start this article please read some good tutorial about git so you can understand well.&lt;/p&gt;

&lt;h6&gt;
  
  
  Step: 1 Download Git and install
&lt;/h6&gt;

&lt;p&gt;Download Git  &lt;a href="https://git-scm.com/download"&gt;https://git-scm.com/download&lt;/a&gt; and then install.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--N-8MC7Ja--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hzrbk63zechvvigxgywv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--N-8MC7Ja--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hzrbk63zechvvigxgywv.png" alt="Download Git and install"&gt;&lt;/a&gt;&lt;br&gt;
No need check anything on the installation process just click next on the whole process.&lt;/p&gt;

&lt;h6&gt;
  
  
  Step: 2 Create an account at Bitbucket
&lt;/h6&gt;

&lt;p&gt;Create an account at &lt;a href="https://bitbucket.org"&gt;https://bitbucket.org&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---sCAQEPX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1qajo79tm8u4i0jzyhp8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---sCAQEPX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1qajo79tm8u4i0jzyhp8.png" alt="Create an account at Bitbucket"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  Step:  3 Run Git Bash
&lt;/h6&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--l7LZL63F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xftvtbx181mp4tvqt6cd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--l7LZL63F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xftvtbx181mp4tvqt6cd.png" alt="Run Git Bash"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  Step: 4 Git setup command (Only first time of git setup)
&lt;/h6&gt;

&lt;ol&gt;
&lt;li&gt;git config –global user.name “Name” &lt;strong&gt;e.g (git config –global user.name “yuvrajkhavad”)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;git config –global user.email “your email id” &lt;strong&gt;e.g (git config –global user.email “&lt;a href="mailto:yuvraj@zindex.co.in"&gt;yuvraj@zindex.co.in&lt;/a&gt;”)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;ssh-keygen&lt;/li&gt;
&lt;li&gt;Press enter without entering any file name.&lt;/li&gt;
&lt;li&gt;Enter the two-time password then display a newly generated file path. &lt;strong&gt;(Note: This password will use for clone project, push project and pull project).&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Open file folder mention in git bash and copy the key from those locations&lt;/li&gt;
&lt;li&gt;Then add a key in Bitbucket 

&lt;ol&gt;
&lt;li&gt;Log in to Bitbucket.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;View Profile&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;SSH keys&lt;/strong&gt; and then &lt;strong&gt;Add key.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Paste the key into the text box:&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add key&lt;/strong&gt;. You’re done!&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;
&lt;li&gt;Then create a new project repository and copy the project URL because we have to use at step 5.1&lt;/li&gt;
&lt;/ol&gt;

&lt;h6&gt;
  
  
  Step: 5 then move the folder to the location where you have to clone project
&lt;/h6&gt;

&lt;ol&gt;
&lt;li&gt;cd c: &lt;strong&gt;(Note: Move-in C directory)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;cd test/ &lt;strong&gt;(Note: Move to a particular folder of your project)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h6&gt;
  
  
  Step: 6 Clone (copy) project in the local computer (Only first time of starting new project)
&lt;/h6&gt;

&lt;ol&gt;
&lt;li&gt;git clone    e. g (git clone &lt;a href="mailto:git@bitbucket.org"&gt;git@bitbucket.org&lt;/a&gt;:zindexsolutions/test.git)&lt;/li&gt;
&lt;li&gt;Then type “Yes”&lt;/li&gt;
&lt;li&gt;Then enter your password&lt;/li&gt;
&lt;/ol&gt;

&lt;h6&gt;
  
  
  Step: 7 Regular Commands
&lt;/h6&gt;

&lt;ol&gt;
&lt;li&gt;git status&lt;/li&gt;
&lt;li&gt;git add . / -A                   &lt;strong&gt;e.g (git add .)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;git commit -m “” &lt;strong&gt;e.g (git commit -m “First Commit”)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;git pull origin  &lt;strong&gt;e.g (git push origin master)&lt;/strong&gt; It will copy files bitbucket to local&lt;/li&gt;
&lt;li&gt;git push origin  &lt;strong&gt;e.g (git push origin master)&lt;/strong&gt; It will upload files local to bitbucket account&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It’s done. Let me know have any problem happy to help. Just sent mail at &lt;strong&gt;&lt;a href="mailto:yuvraj@zindex.co.in"&gt;yuvraj@zindex.co.in&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>bitbucket</category>
      <category>git</category>
      <category>github</category>
      <category>version</category>
    </item>
    <item>
      <title>Fetch year-wise month list if have post in a particular month in WordPress</title>
      <dc:creator>Yuvraj Khavad</dc:creator>
      <pubDate>Fri, 25 Dec 2020 14:08:48 +0000</pubDate>
      <link>https://dev.to/yuvrajkhavad/fetch-year-wise-month-list-if-have-posts-in-a-particular-month-in-wordpress-43gj</link>
      <guid>https://dev.to/yuvrajkhavad/fetch-year-wise-month-list-if-have-posts-in-a-particular-month-in-wordpress-43gj</guid>
      <description>&lt;p&gt;Hey Namaste 🙏,&lt;/p&gt;

&lt;p&gt;In a one of the recent project, We have a requirement like need to display year-wise months at the right side of the page and on click any month have to display a list of the blog post of that month using ajax and have to disable month if there no any posts. &lt;/p&gt;

&lt;p&gt;Check below screenshot for the better understanding.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kYkZUOqI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/u8ke6yjemsss11oiltdk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kYkZUOqI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/u8ke6yjemsss11oiltdk.png" alt="Screenshot_3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For this, We used MySQL query,foreach and array. Please check below code.&lt;/p&gt;

&lt;p&gt;If have a blog post in the month then values will set true. &lt;/p&gt;

&lt;p&gt;Below is array output, you can use it anyplace as per your need.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


</description>
      <category>wordpress</category>
      <category>php</category>
      <category>programming</category>
    </item>
    <item>
      <title>Add WordPress user using FTP</title>
      <dc:creator>Yuvraj Khavad</dc:creator>
      <pubDate>Thu, 22 Oct 2020 06:40:42 +0000</pubDate>
      <link>https://dev.to/yuvrajkhavad/add-wordpress-user-using-ftp-4fmj</link>
      <guid>https://dev.to/yuvrajkhavad/add-wordpress-user-using-ftp-4fmj</guid>
      <description>&lt;p&gt;Recently, one of our clients sent us a list of WordPress website changes with FTP detail but they don’t have a WordPress admin login details.&lt;/p&gt;

&lt;p&gt;At that time below code helps us to add a WordPress administrator user. Just add this code on function.php of the active theme.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Just delete this code after login successfully.&lt;/p&gt;

&lt;p&gt;Happy Coding !! Feel free to ask us any questions if have.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>ftp</category>
      <category>php</category>
      <category>admin</category>
    </item>
  </channel>
</rss>
