<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>command &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/command/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Mon, 12 Oct 2026 12:36:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>How to install Jira on Mac OS?</title>
		<link>https://www.bestdevops.com/how-to-install-jira-on-mac-os/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Tue, 28 Dec 2021 07:37:15 +0000</pubDate>
				<category><![CDATA[JIRA]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Jira]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Version]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22594</guid>

					<description><![CDATA[Hello everyone, to see emerging software advancement in the IT corporate world and due to their trending IT infrastructure. So, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/12/Install-JIRA-on-Mac-OS.png" alt="" class="wp-image-22595" width="797" height="448" srcset="https://www.bestdevops.com/wp-content/uploads/2021/12/Install-JIRA-on-Mac-OS.png 560w, https://www.bestdevops.com/wp-content/uploads/2021/12/Install-JIRA-on-Mac-OS-300x169.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/12/Install-JIRA-on-Mac-OS-375x210.png 375w" sizes="(max-width: 797px) 100vw, 797px" /></figure></div>



<p class="wp-block-paragraph">Hello everyone, to see emerging software advancement in the IT corporate world and due to their trending IT infrastructure. So, today in this article, we are going to give lessons on the installation process of Jira on Mac Os so, we will look at prerequisites and then we will download Jira for Mac Os, how to start and shutdown Jira (Tomcat), set up the home directory and then finally, we will set up Jira for use. Let’s have a look!</p>



<p class="wp-block-paragraph">Let us begin.</p>



<p class="wp-block-paragraph"><strong>Step 1:</strong></p>



<h2 class="wp-block-heading"><strong><span style="text-decoration: underline">Prerequisites for installing Jira on the mac operating system</span></strong></h2>



<p class="wp-block-paragraph">Java must be installed in your system so to check you can go to your <a href="https://www.devopsschool.com/courses/">terminal</a> and say java –version and this shows you your java version currently installed in case you are not getting this you can install java first and then if you will have this prerequisite completed step number two will be</p>



<p class="wp-block-paragraph">Step 2:</p>



<h2 class="wp-block-heading"><strong>H<span style="text-decoration: underline">ow to download Jira for Mac OS</span></strong></h2>



<p class="wp-block-paragraph">You will download Jira for the mac operating system and this is the site</p>



<p class="wp-block-paragraph"><a href="https://www.atlassian.com/software/jira/download">https://www.atlassian.com/software/jira/download</a></p>



<p class="wp-block-paragraph">Where you will download it from so you will go to google and you can say download Jira and you will get that site, you will go there and there you will get that information it is free for thirty days for unlimited users and there you can select your operating system so, you will select OS 10 and then download so it will take a few seconds to a few minutes to download so you have already downloaded it if you will go to your downloaded zip file so if you will go to your downloads folder you will see that zip file which will get downloaded and you will unzip this so, you will have unzipped it and kept on your desktop there so this will be unzipped folder so now the third step is</p>



<p class="wp-block-paragraph">Step 3:</p>



<h2 class="wp-block-heading"><strong><span style="text-decoration: underline">How to start and shutdown Jira</span></strong></h2>



<p class="wp-block-paragraph">Or you can also say the Jira tomcat server because Jira comes with the tomcat server so you will have to go to the bin directory inside the folder and you will find startup.SH and shutdown got SH files and these are the files that you will run to start and shutdown Jira server so, we will learn that you will go inside your folder and there you will see there will be bin directory and inside the bin, you will find that startup.SH and shut down. SH there you will have a startup.SH and there you will have a shutdown.SH so, to start you will go to the terminal and go to the location bin folder so for example, you will just press command on your keyboard to get that information and copy the location of that folder and then you will go to your terminal and you will change the directory to that bin folder of Jira and now you can say SH startup.SH and hit enter and you will see that information and it would show you tom get started and to check you can go to your browser and you can go to localhost 8080 so as of now it will not run or you may run this command again and yes, you will see the Jira server is up but there will some problem and it will say we cannot locate the Jira home directory so you will have to set up the home directory so what you will do you will shut it down so you will say sh shutdown.SH and tomcat will stop so if you go to localhost 8080 now so you will see the server will be stopped and you will learn how to set up the home directory and that you have already seen that you will go to localhost 8080.</p>



<p class="wp-block-paragraph"><strong>Step 4:</strong></p>



<h2 class="wp-block-heading"><strong>H<span style="text-decoration: underline">ow to set home directory</span></strong></h2>



<p class="wp-block-paragraph">To check if the Jira has server is running and to set the home directory you will have to go to that file Jira application. Properties which is inside web-inf glasses folder and &nbsp;</p>



<p class="wp-block-paragraph"><strong>Go to file Jira-application .properties located in Jira folder &gt;&gt; Atlassian</strong>&#8211;<strong>Jira &gt;&gt; Web-INF&gt;&gt; classes</strong></p>



<p class="wp-block-paragraph">there you will have to provide a location for Jira home so you will see how to do that so you will go to the Jira folder and you will have to go to atlassian Jira folder there you will have web-inf and there you will have classes and there you would find a file Jira application properties so you can open that file with any text editor on your system if you have a text wrangler, you will open this and you will see it will ask for your location for Jira home so you can create any folder and then provide that folder as Jira home so you will create a folder on your desktop itself and you will name that folder as Jira Home hit enter and just press command I to copy its location and you will give the same location on that file, you will give that location so that will Jira home and you can save it and close it okay and see you if you will open this folder as of now that will empty but as you will now start your Jira servers you will see there are folders and files getting created there all the logs will get there as well so now you will go back to your terminal and again say SH startup.asset and it’s storm get started you will go to your browser localhost 8080 you will run the start command again and you will go to localhost 8080 and now you will see atlassian Jira is starting up so it means it will take up your home directory as well it might take a few seconds to start up also if you will now go to your Jira home folder you will inside the folder and you can see all these logs and all these information will now getting created inside that folder. Now, for the first time, it will have this information if you want to set it up yourself or you want to set it up for me so, this is our next step.</p>



<p class="wp-block-paragraph"><strong>Step 5:</strong></p>



<h2 class="wp-block-heading"><strong><span style="text-decoration: underline">Setup Jira for use</span></strong></h2>



<p class="wp-block-paragraph">You will have to set up Jira for use so you will have started your Jira server and now you will complete the setup so you can click on set it up for me and continue there you will have to select the product so you will select Jira software and select Jira software server you can name any organization there up and running and then generate license so there it will give you the information of your license you will say yes confirmation and there it will ask you for some email ids and then password and retype the password so you will give some email id there and password say next so now it will finally set up all the instances and everything that Jira requires on that particular machine so you will wait for few seconds for that setup to get completed meantime you will look at some tips so instead of localhost you can also use the IP 127.0.0.1 which is the Ip for localhost or you can also use your system public IP instead of localhost so instead of localhost there you can use that IP and you will now see the Jira will ready to go and you can get started with Jira. I hope this information will be helpful for you and it will give you privileges as an onboarding learning concept with valuable steps.</p>



<h4 class="wp-block-heading">Related video:  &nbsp;</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe  id="_ytid_70596"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/KKX8UFMDI18?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How can we start with Gitlab CI/CD?</title>
		<link>https://www.bestdevops.com/how-can-we-start-with-gitlab-ci-cd/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Mon, 13 Dec 2021 06:41:18 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[CI/CD]]></category>
		<category><![CDATA[CI/CD pipeline]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[GitLab]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22533</guid>

					<description><![CDATA[Hello everyone, you know the different phases of programming and about its evaluation on that, it is performing their task. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/12/image.psd-1-.jpg" alt="" class="wp-image-22539" width="737" height="343" /></figure></div>



<p class="wp-block-paragraph">Hello everyone, you know the different phases of programming and about its evaluation on that, it is performing their task. So, we are going to learn about Gitlab CI/CD from very basic &amp; scratch and if you don’t have primer knowledge on the above topic so, don’t worry, we will go up step by step. And in this lesson, we will engage with various topics like what is Gitlab CI/CD? We will create a .gitlab-ci.yml file, this is a file where we add our jobs and create a pipeline and I will show you how to do that then we will run CI/CD pipeline in Gitlab so, this is going to be very easy and interesting.</p>



<h2 class="wp-block-heading">What is Gitlab CI/CD?</h2>



<p class="wp-block-paragraph">Let us learn about what is Gitlab CI/CD? So, you will go to Google &amp; search for continuous integration and delivery. You will go to images and select one image there. You will see there, you will have <a href="https://www.devopsschool.com/">continuous</a> integration then CI stands for continuous integration so, the continuous delivery is CD and again, we will call continuous deployment is CD so, this is what we call CI/CD. And there, if you will look at continuous integration. There will be a process where you will have these three jobs and processes, chained and linked with each other. Why is it will be linked? I mean, if the first dev process or dev job runs and passes. And it will trigger the next job that is in the test job application test. If the passes it will trigger then the next job that is an integration test and you will have our continuous integration pipeline completed so this is what is called as CI or continuous integration and if this all these jobs in this cycle are chained with each other and our automated triggered we call it as a continuous integration system now if you also add an acceptance test job or acceptance test process which is also automated and linked this becomes a continuous delivery because after this step our application or our product will be ready for delivery so this becomes continuous delivery and if we also add our deployment job or a deployment process that will reply to the production and all these jobs are automated and chained and can be automatically triggered then this becomes a continuous deployment pipeline so this is what we call as continuous integration and continuous delivery and continuous deployment. Now, in GitLab as well we have this corners integration delivery and deployment, and here this GitLab CI is an open-source CI service or a continuous integration service included with GitLab and by default, this is integrated with every in your GitLab since version 8.0 so, if you are using version 8.0 or above GitLab then in all your projects by default you will have GitLab CI integrated and enabled by default and to go to the settings and to configure GitLab CI you should be a maintainer or our owner or an admin on your project so, you go to your GitLab account if you just go to your Gitlab you will sign in so, you can see there your projects and if you see the projects there you will be maintainer on one projects and owner on the other projects so, you can configure GitLab CI/CD so, this is what GitLab CI/CD is now.</p>



<h2 class="wp-block-heading">Create .gitlab-ci.yml file</h2>



<p class="wp-block-paragraph">Actually, create a GitLab CI/CD pipeline, you will have to add a file called .gitlab –ci.yml so, yml files or ml is a format of writing text files, and like you have JSON and XML. Ml is also a format and I will show you that how to create it and you have to create this file in the root folder of your project or your repository so, whatever the root folder is and you will be creating this file in the main folder or the root folder of your project. Now, before we start creating this file so, this is used to configure our pipelines and in every project, you will be having, you will be adding this file where you can add the details and it will define the structure and order of the pipeline and once you create it you will know exactly what you mean do not worry if there is there are some things that you are not getting once you create the file and run it you will know exactly what it means? So, you will create a file now if you are on Mac, you can use any text editors like you have text editors on Mac then you have text wrangler anything will work if you are on windows, you can again use notepad or notepad ++ or in fact, you can use any editor but you have to make sure the syntax is correct and I will show you how you can check the syntax so, you will open your window with notepad++. You will open a new file and on your mac, you will open your text wrangler file so that you can create it there so to create a file you will just give some name of the job you will say that is demo job one. So, you will say demo job one any name you can give there and give a colon go to the next line and you will give five spaces so, you can give any number of spaces but you will have to be consistent with that so now you will say tags and there give a colon again go the next line give two spaces and you will give a hyphen and spaces and I can give any tag here now tags are important because in your gitlab you will be having the gitlab runners and they have some tags and the text should match only then the gitlab runner will run this particular file so if you go to my project on gitlab and there if you go to settings and go to CI/CD and you have runners there you will click on expand and you can see you had created this runner earlier and you had given this these tags there CI and SSS so you should be having one of these tags so that the runner can pick up this file and run it so, you will say CI there and you will go again to next line now again you will give there script and this is in line with tags again go to next line two spaces – and there you can write any command or script you want to run so, you will say hello echo hello world so they should run this command in this job this is a very simple file where you are running that script echo hello world so they should print hello world on the console and now you can also do the same thing on your windows on the notepad so you can create it like this and now you will have to make sure the syntax is correct and for that you can copy the contents and you can just go to google and search for any ml file validator utility or application and you will see that you have yam lint, yaml validator online this all you will go to yaml lint and paste your contents of the ml file and there you have to go button you will click there go and check and yes everything is fine it will says it is a valid YAML so that is fine you will now just save this so you will save this file and you have to make sure the name there should be .gitlab –ci.yml as of now you will save on desktop but you will move it to your project folder so, you will say as it is. I hope this will more authenticate your performances and give you a hike in the sections of Gitlab CI/CD.</p>



<h4 class="wp-block-heading">Related video: </h4>



<figure class="wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Gitlab CI CD Tutorial For Beginners | Getting Started with Gitlab and CICD" width="900" height="506" src="https://www.youtube.com/embed/DWb1HNmbmeM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h4 class="wp-block-heading">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to install Gitlab runner on windows OS</title>
		<link>https://www.bestdevops.com/how-to-install-gitlab-runner-on-windows-os/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Sat, 04 Dec 2021 14:19:47 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[CD/CI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[details]]></category>
		<category><![CDATA[GitLab]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Version]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22514</guid>

					<description><![CDATA[Hello friends, today, we are going to teach you about Gitlab runner. On that how can you install, register, start [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/12/1_0LtfO6_HTqdyZDX7pYPuWA-1024x307.png" alt="" class="wp-image-22519" width="805" height="241" srcset="https://www.bestdevops.com/wp-content/uploads/2021/12/1_0LtfO6_HTqdyZDX7pYPuWA-1024x307.png 1024w, https://www.bestdevops.com/wp-content/uploads/2021/12/1_0LtfO6_HTqdyZDX7pYPuWA-300x90.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/12/1_0LtfO6_HTqdyZDX7pYPuWA-768x230.png 768w, https://www.bestdevops.com/wp-content/uploads/2021/12/1_0LtfO6_HTqdyZDX7pYPuWA-1536x461.png 1536w, https://www.bestdevops.com/wp-content/uploads/2021/12/1_0LtfO6_HTqdyZDX7pYPuWA.png 1600w" sizes="auto, (max-width: 805px) 100vw, 805px" /></figure></div>



<p class="wp-block-paragraph">Hello friends, today, we are going to teach you about Gitlab runner. On that how can you install, register, start Gitlab runner and we will do this on the Windows operating system (Windows OS). So, if you want to learn Gitlab runner then we will start from very basic it means from scratch and we will go up step by step.</p>



<h2 class="wp-block-heading">What is Gitlab runner?</h2>



<p class="wp-block-paragraph">Before, I write down the steps to all procedure that happens in Gitlab runner. Let us see, what is Gitlab runner? So, in the very simple word if you talk about Gitlab CI. It is an open-source<a href="https://www.devopsschool.com/"> continuous</a> integration service included with Gitlab. So, this service by default is included with Gitlab. It is used to run jobs &amp; send results back to Gitlab. &nbsp;&nbsp;&nbsp;</p>



<h2 class="wp-block-heading">How to install Gitlab runner?</h2>



<p class="wp-block-paragraph">So, you will go to your Google and search for Gitlab runner. There will be a documentation page and you will go there. You will see all the documentation about Gitlab runner there so, it is written in a go programming language. And you may see all the features will be there, it will allow multiple jobs concurrently &amp; compatibility. Then you will have a section for installing Gitlab runner and have an installed link. If you will see that there will be a link for Gitlab runner from there, you may install it. And you have lots of binaries over there so, you will go on windows. You will go to your window system and go to the same link. So, you will have the instructions for installation. You will create a folder in the name Gitlab-runner and you will choose from your C drive option, create a folder in the name of that. And the next step, you will have to download the binary for your operating system. You will go to your <strong><em>computer</em></strong> and <strong><em>this pc</em></strong> option and do a right-click, you will go to properties option. And you can see all details about your operating system, the bit size &amp; everything. So, you will choose the bit size and download the Gitlab runner .exe. If you will go to your download folder then it will be there. You will copy that from there &amp; move it to the folder <strong><em>Gitlab runner</em></strong> that will have been created. You will paste in that and rename it. If you will go to the documentation page so, there will be mentioned to take the rename the binary to Gitlab runner. Then you will have to run an elevated command prompt for this. Now, what does it mean? It means that you can run your command line with admin rights. And you can also use Git bash there, you will just move to your command line and from there, you will choose run as administrator option. From there, you will go to the location of that folder. Suppose, you will have in other drives like e drive then first, you will have to change the drive-by saying or writing e: and enter then you can go to the location. Also, the shortcut is you can go to the address bar of your folder and you will say cmd, press enter. Then it will open in the same folder, this is the shortcut so, you can do it. In your folder, you will have to run the command GitLab runner .exe install. So, you will run this command in administrator then you will see that it is done. If you will say GitLab runner –version then you will get all details there. So, these are the commands:-</p>



<p class="wp-block-paragraph"><strong><em>Gitlab runner .exe install</em></strong></p>



<p class="wp-block-paragraph"><strong><em>Gitlab runner –version</em></strong></p>



<p class="wp-block-paragraph">To check, if your GitLab runner is installed so, you can run the command <em><strong>gitlab runner –version. </strong></em>Then you can also start using this command GitLab runner .exe start.</p>



<h2 class="wp-block-heading">How to register Gitlab runner?</h2>



<p class="wp-block-paragraph">Now, you need to register your GitLab runner. If you will go to the GitLab documentation page then you will have the link to register GitLab runner. If you will scroll down, you will see that multiple operating systems and documentation for that. Further, you will scroll down, you will have windows. There will be steps that you can use for windows. So, you will first run GitLab runner .exe stop to stop the runner and for registration, you will have to run the command GitLab runner .exe register then you will do the registration process. So, it will ask for GitLab coordinator-ci URL and after entering the URL. Then it will ask for a GitLab-ci token so, the token you will get from your projects. You will log in to your GitLab account and will go to your projects, you can also go to your projects from the top bar. Then in your projects, you will go to settings. Under settings, you will go to CI/CD and there you will find sections of the runner. You will see sections for setup runner manually, there you will also see those steps you will have already done and the token will be there. After providing the token, you will have to provide some description like my-runner1 and anything you can say here. And it will also ask for GitLab-ci tags then you can add like ssh, ci, etc. If you will enter then it will show register runner …..Succeeded and everything will be done. Then it will ask to enter the executor like <strong>ssh, Kubernetes, custom, virtual box, Docker machine,</strong> etc. Then you will put shell and press enter so, it will show the runner registered successfully. So, you will start the runner using the command like <em><strong>gitLab</strong></em><strong><em> runner .exe start</em></strong> &nbsp;</p>



<h2 class="wp-block-heading">How to start Gitlab runner?</h2>



<p class="wp-block-paragraph">Now, you will have to check. To start the Gitlab runner, the <strong><em>gitLab runner .exe start </em></strong>is the command to check. Then you will have to check if the runner is started and the next step will be to check runner is started in the project. The same thing, you will have to do for this. You will go to your projects then settings and after CI/CD. Again, you will go to runner and scroll down. If you will scroll down, you would see the project is activated under the runner. You will also see the name that you had given to that. Now, this runner will be activated and it can run the jobs. All this, you will have learned how to run jobs, use tags, and Gitlab ci. I hope, this data will be very helpful for you.</p>



<h4 class="wp-block-heading">Related Video: </h4>



<figure class="wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="#3: How to Install Gitlab Runner on Windows | Register GitLab Runner Windows | GitLab CI/CD" width="900" height="506" src="https://www.youtube.com/embed/AGeYUNn8et4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to install Gitlab runner on Mac OS?</title>
		<link>https://www.bestdevops.com/how-to-install-gitlab-runner-on-mac-os/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Tue, 30 Nov 2021 04:21:45 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[CI/CD]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[GitLab]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[start]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22474</guid>

					<description><![CDATA[Hello-tech lover, welcome to the visualizing path of programming. You know better today trends to take up-gradation in technologies and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/11/CIFcfAWO5J-ksEmtOoTfMUndu62eVMDOS25K5sp_Hgw.jpg" alt="" class="wp-image-22476" width="729" height="382" srcset="https://www.bestdevops.com/wp-content/uploads/2021/11/CIFcfAWO5J-ksEmtOoTfMUndu62eVMDOS25K5sp_Hgw.jpg 640w, https://www.bestdevops.com/wp-content/uploads/2021/11/CIFcfAWO5J-ksEmtOoTfMUndu62eVMDOS25K5sp_Hgw-300x158.jpg 300w" sizes="auto, (max-width: 729px) 100vw, 729px" /></figure></div>



<p class="wp-block-paragraph">Hello-tech lover, welcome to the visualizing path of programming. You know better today trends to take up-gradation in technologies and their environment around the world. Through this article, we are going to give you lessons on Gitlab runner and we will go very basic step by step and learn how to install, register, and start Gitlab runner. So, if you have no primary knowledge of that then do not worry. We will start from scratch.</p>



<h2 class="wp-block-heading">What is a Gitlab runner?</h2>



<p class="wp-block-paragraph">Gitlab runner is used in Gitlab CI and you have not learnt yet Gitlab CI. Now, this is an open-source continuous <a href="https://www.devopsschool.com/">integration</a> service. It is included with Gitlab, is used to run jobs &amp; send results back to Gitlab. Now, let’s see, what are the steps you have to do for setting up Gitlab runner.</p>



<h2 class="wp-block-heading">How to install Gitlab runner?</h2>



<p class="wp-block-paragraph">Let us see, what we will do about this? You will go to Google and search for Gitlab runner. You will visit the website for Gitlab runner documentation and you will see all the documents over there. This is written in a go programming language, you can see some features like multiple jobs concurrently run. And if you will have to move down, there will be a section of install Gitlab runner. You would find every sort of documentations about Gitlab runner like how to configure, troubleshooting, etc. If you will click on the install option then there will be options like Mac for the operating system. So, you will click on the option to install Mac operating system and there you will have the steps if you want to install it manually. Then you will have to install the binary in your system and you can use that given command from there. You may copy and run it in your terminal then it will download the binary. So, you will have to give permissions from the given command. This is the first way, the second way is homebrew installation. If you will go for homebrew, there will be a website so, you will see there “<strong><em>the missing package manager for Mac OS”</em></strong> like this type of thing will be written there. To install homebrew, it is very simple so, you will have to copy that statement from there and will have to run on terminal. Then you can start using homebrew, it is a good way to install and manage packages on Mac. There will be a command so, you will have to run that on your terminal then this will install Gitlab runner on your Mac operating system. Here are some commands to install, version, start, and stop like</p>



<p class="wp-block-paragraph"><strong>Brew install Gitlab –runner</strong></p>



<p class="wp-block-paragraph"><strong>Gitlab-runner –version</strong></p>



<p class="wp-block-paragraph"><strong>Brew services start GitLab –runner</strong></p>



<p class="wp-block-paragraph"><strong>Brew services stop GitLab –runner</strong></p>



<h2 class="wp-block-heading">How to register Gitlab runner?</h2>



<p class="wp-block-paragraph">Let us see how can we register GitLab runner? So, there you will visit the Gitlab runner documentation. You will find the registration part in that you will have a register link and from there, you would see that what are the step to register the Gitlab runner? Now, on that page, if you will scroll down then you will find all the steps for Mac OS, window OS, etc. so, you will have to run the following command Gitlab –runner register, this is the first command. You will go to your terminal and run the command Gitlab –runner register then there, they shall ask for a Gitlab-ci token for this runner. So, to get the ci token, you will log in to your Gitlab account and you will have to take tokens from Gitlab projects. You will go to your project by doing a sign-in process then you would have to go to project settings. If you will see, scroll down and you will find the setting there. If you will go to settings under that you will get CI /CD section. You will go to CI/CD then you will have a section of runner then you will expand it. You will find the setup runner manually option will be there and there will be a token of your project. You will have to do copy that from there and provide it on the terminal and you will also put tags for your Gitlab ci like ssh, ci. Then you will see registering runner…..succeeded and after this, you will have to enter the name of executors like parallels, custom, Docker-ssh, etc. you have so many executors if you want to run on Docker and some Kubernetes. If you will put simple executor <strong><em>shell</em></strong> and press enter button. Then it will show the runner registered successfully. These are the commands which you have followed.</p>



<h2 class="wp-block-heading">How to start Gitlab runner?</h2>



<p class="wp-block-paragraph"> So, if you have to start Gitlab runner then you can use these <strong><em>brew services start Gitlab –runner</em></strong>. To start Gitlab runner, if you’re not using brew then you will have all the options there like <strong><em>Gitlab –runner stop</em></strong>. You can take <strong><em>Gitlab –runner start </em></strong>if you are not using brew. Then it will be successfully started and the next step will be to check runner is activated in the project. So, you will have to check runner is activated or not, again, you will go to your Gitlab, project, and in settings CI/CD. And there you will expand the runner section, if you will scroll down then you will see your runner will be there, it is started. You can also see the name and text that you had added. So, you have seen that how to use the runner and how to do Gitlab ci? I wish, these lessons will be very helpful for you.</p>



<h4 class="wp-block-heading">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_87809"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/j_8gibe4HWk?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to create an SSH key in Gitlab?</title>
		<link>https://www.bestdevops.com/how-to-create-an-ssh-key-in-gitlab/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Thu, 25 Nov 2021 13:16:41 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[gitbash]]></category>
		<category><![CDATA[GitLab]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[programmers]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[text editor]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22465</guid>

					<description><![CDATA[Hello my folks, welcome to the fascinating world of Gitlab. Nowadays, this has become a real use of every programmer/developer. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/11/gitlab-add-ssh-key-image-feature-800x400-1.png" alt="" class="wp-image-22467" width="738" height="369" srcset="https://www.bestdevops.com/wp-content/uploads/2021/11/gitlab-add-ssh-key-image-feature-800x400-1.png 800w, https://www.bestdevops.com/wp-content/uploads/2021/11/gitlab-add-ssh-key-image-feature-800x400-1-300x150.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/11/gitlab-add-ssh-key-image-feature-800x400-1-768x384.png 768w" sizes="auto, (max-width: 738px) 100vw, 738px" /></figure></div>



<p class="wp-block-paragraph">Hello my folks, welcome to the fascinating world of Gitlab. Nowadays, this has become a real use of every programmer/developer. You know every<a href="https://www.devopsschool.com/"> programmer</a> needs some space to situate their projects and code which have been made by them. Today, in this Gitlab mainstream, we are going to elaborate on the SSH key in this you will learn about the fact of how can you create, manage with the SSH key.</p>



<h2 class="wp-block-heading">What is an SSH key?</h2>



<p class="wp-block-paragraph">Let’s get started with SSH. SSH stands for secured shell and now, comes to the place of uses what is the use? This is used for authentication, by setting SSH you can connect to the Gitlab server without using a username and password each time. Once, you will set the SSH key so, you may skip using your username and password each time to connect your Gitlab server.</p>



<h2 class="wp-block-heading">How to set up an SSH key in Gitlab?</h2>



<p class="wp-block-paragraph">Let see, what will have to do here?</p>



<p class="wp-block-paragraph"><strong>Step 1: Run command SSH- keygen</strong></p>



<p class="wp-block-paragraph">You will have to run this command. If you are on MacBook, you can put terminal and will run the command <strong><em>SSH-keygen.</em></strong> You may enter the location or file where you have to save the key and press the enter key. So, you will have your ssh key created. This was on mac.</p>



<p class="wp-block-paragraph">On mac. &#8211; run command on terminal</p>



<p class="wp-block-paragraph">On windows – use putty or Git bash</p>



<p class="wp-block-paragraph">If you are on windows then you can use an application or a client called putty, it is ssh client that you can use on windows or you can also use Git bash to run the command. If you will have installed it before, you will go to your windows system and search for Git bash. And you will adjust fonts if you will need them. So, you will run <em><strong>$ ssh-keygen</strong></em> then it will ask you to enter the file do you want to save it then again, you will press the enter so, it will have been created. You will go to your folder from local disk to <strong><em>.ssh</em></strong> in that two files will be created in the <em>id_rsa</em> and <em>id_rsa.pub</em></p>



<p class="wp-block-paragraph">Now, step no.2 will be</p>



<p class="wp-block-paragraph"><strong>Step 2: log in to Gitlab account</strong></p>



<p class="wp-block-paragraph"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to an account</strong> &gt;&gt; <strong>Settings</strong> &gt;&gt; <strong>SSH keys</strong></p>



<p class="wp-block-paragraph">So, you will go to your Gitlab and log in. you will sign in to your account if you will go to your account or profile at the top right. You would find settings there and if you will go in that. So, you will find an option for SSH key then you will click on that. You would add the content of your file id_rsa.pub. If you will go to the file and open it with any text editor like notepad and notepad++, you can copy the entire thing from there. And you will paste it to the SSH key. Suppose, you want to give a name to your key then you can add that name in the title option and switch to add key. So, you will see that everything would be edited there. There would be a key that you can use to authenticate and log in to the Gitlab server.</p>



<p class="wp-block-paragraph">Now, here step no.3 is</p>



<p class="wp-block-paragraph"><strong>Step 3: copy contents of id_rsa.pub and add key</strong></p>



<p class="wp-block-paragraph"><strong>Step 4: verify SSh key is added</strong></p>



<p class="wp-block-paragraph"> You have been seen. This is how you can add an SSH key to your Gitlab. I wish this all will be very useful for you.</p>



<h4 class="wp-block-heading">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_81484"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/QaO9aWy4rmc?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How can you push code and cloning by the git command?</title>
		<link>https://www.bestdevops.com/how-can-you-push-code-and-cloning-by-the-git-command/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Tue, 16 Nov 2021 13:53:10 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Benefits]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[committed]]></category>
		<category><![CDATA[gitbash]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[repository]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22361</guid>

					<description><![CDATA[Hello folks, if you have a concept and skills on the git command so, that’s very great otherwise, you could [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/11/GitHub.jpg" alt="" class="wp-image-22364" width="713" height="355" srcset="https://www.bestdevops.com/wp-content/uploads/2021/11/GitHub.jpg 845w, https://www.bestdevops.com/wp-content/uploads/2021/11/GitHub-300x149.jpg 300w, https://www.bestdevops.com/wp-content/uploads/2021/11/GitHub-768x383.jpg 768w" sizes="auto, (max-width: 713px) 100vw, 713px" /></figure></div>



<p class="wp-block-paragraph">Hello folks, if you have a concept and skills on the git command so, that’s very great otherwise, you could pave your way in the glorious field of programming. Welcome to the admiring world of command that makes your way easy with day-to-day enhances which supports very in your life. This command could create <a href="https://www.devopsschool.com/">turbulence</a> in your daily workflow with innumerable enormous modes. With one command structure, you could conquer all your miseries over the git commands.</p>



<h2 class="wp-block-heading">Push code to the remote repository</h2>



<p class="wp-block-paragraph">Suppose, you have a file in that you have done everything and you have to upload that all files on GitHub. So, open your GitHub, if you have your own GitHub account then you will log in to that. After the opening of your account, there will be the repository option. So, clicking on the new option, you will have to take create a new repository in the name <strong><em>all about git.</em></strong> Then you will give a description like <strong><em>this is git status one video repository</em></strong> so, after doing the public option you can create a repository. You can do public or private, whatever you want, there is no issue with that. You will see that there will show something command to you. Suppose, you have files in the name node integration so, which you have files in the node integration. First, you will have to take merge from node integration to the main branch then what will you do for that? You will do checkout in master by putting <strong><em>$ git checkout master</em></strong>. After that, you will put like <strong><em>$ git merge node integration, </em></strong>if you will write node and press tab then it will give to write whole. You will see, your branches will have been merged there. If you will visit vs code then node has also come in master. You could directly upload all files from vs code through the command line, how can you do that? First, you will have to take commit by putting $ git commit –m “All files done ready to upload” and after the commit, you will see git status by putting $ git status. You will have to take copy the command from GitHub and paste it into the command line. If you will have to do push so, you will see one thing over there, you could do two or three things. You have been seen everything how does it make? You have a remote repository that exists on the server. You have all files in the file explorer that you have to upload in it. So, you will put $ git remote then it will show you that it exists on the origin. When you will put $ git remote v then it will show you from where it will do fetch or push, it means you are fetching those files and uploading them on the server. Again, you will run a command for push like $ git origin master so, it will take time in demanding id &amp; password then it will have happened push. When you will see fetching into GitHub and refresh that. Every committed file will be present there when you have committed and created it. You can see commits from there, when you will click on your name then every commit has been uploaded there. This is real benefits reach to our GitHub through the command line.</p>



<h2 class="wp-block-heading">Clone a project command</h2>



<p class="wp-block-paragraph">Suppose, you have to do a clone, any repository is there. First, you will have to go home, in the name js project repository. You have opened any basic project from there and you have to clone that so, you will move in the code &amp; copy that. So, you have an online js repository that somebody has made, you have to do clone and download it to your system. Then you will have to make a file on the desktop. Suppose, you have made a file in the name clone GitHub so, you will open <strong><em>GIT bash</em></strong> in that. Then you will put <strong><em>$ git clone</em></strong> and after, you will put copied URL with js project that you have done before. So, it will have to give clone, download, and receive. If you will see into GitHub then in the name js project file has been made. When every process will have done so, every file will have come. This is the real meaning of clone, any project exists on GitHub. So, you can directly clone in any repository. You will see that every file has come in the file explorer which another person had uploaded in their own project. Usually, you can do a clone, and anybody of project you can do. Those have a public project, you can do a clone of that. You can give an open-source contribution to that. So, you will use only GitHub because it is very reliable which is from Microsoft and it has seamless services.</p>



<h4 class="wp-block-heading">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_10074"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/5HLst694D_Y?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How can we do branching from the command line?</title>
		<link>https://www.bestdevops.com/how-can-we-do-branching-from-the-command-line/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Mon, 15 Nov 2021 10:12:34 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Adding]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[vs code]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22342</guid>

					<description><![CDATA[Hello techno-friendly users, welcome to the featuring era of programming. Today, we shall raise our points on the topic of [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/11/git-checkout-remote-branches-1024x509.png" alt="" class="wp-image-22351" width="770" height="382" srcset="https://www.bestdevops.com/wp-content/uploads/2021/11/git-checkout-remote-branches-1024x509.png 1024w, https://www.bestdevops.com/wp-content/uploads/2021/11/git-checkout-remote-branches-300x149.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/11/git-checkout-remote-branches-768x382.png 768w, https://www.bestdevops.com/wp-content/uploads/2021/11/git-checkout-remote-branches-1536x764.png 1536w, https://www.bestdevops.com/wp-content/uploads/2021/11/git-checkout-remote-branches-2048x1018.png 2048w" sizes="auto, (max-width: 770px) 100vw, 770px" /></figure></div>



<p class="wp-block-paragraph">Hello techno-friendly users, welcome to the featuring era of programming. Today, we shall raise our points on the topic of branching and how directly you can establish your branch through the git command line without opening the GitHub platform. If you will also unaware to take git branching so, you have difficulties in relation to <a href="https://www.devopsschool.com/">command</a> branching then you can receive every kind of solution related to creating, merging, and adding branches. This is the place where you could get all steps regarding branch creations.</p>



<h2 class="wp-block-heading">Creating branch from the command line</h2>



<p class="wp-block-paragraph">Suppose, you have to make a branch so, let’s have a look that what is branch happening? If you have software and you are working in google and that Google is working in a master branch, all files are running there. Suppose, you want to add a feature in the file but you are not so sure to talking that your boss will give you permission or not. If you do in the main file that will be affected on your main server, the file has become loose then your server will be shut down. So, here comes the talk of the branch, you will make a copy, the branch means making copies of the same file. Then first, you will write git status so, it will show on branch master, nothing to commit. When you will put <strong><em>$ git branch </em></strong>then it will show you in the master branch, if you have to make a branch so, you will put <strong><em>$ git branch update code </em></strong>then update code is branch name happen. So, again, you will run the <strong><em>$ git branch, </em></strong>there will be branches as master and update code that you have been made. If you have to do the switch in the update code so, you will have to put like <strong><em>$ git checkout update code </em></strong>then it will show you switched to branch ‘update code’ option. If you will move in the vs code file, you will do enhances in one then there will not be affected another file. Suppose, you have a file in the name <strong>contact.html</strong>, you have to write anything in that. You have been made a file in the name <strong>comment.html</strong>, you have paste similar code of your file and changed something code in that. If you will run git status then it will show you unstaged, when you will do commit through <strong><em>$ git commit –a –m “this update code files updated”</em></strong>. You will do update put anything message so, again, you will run git status then it will show you untracked files. Then you will first add that by putting <strong><em>$ git add –A</em></strong> when you will run git status, it will show you on branch update code nothing to commit, working tree clean. When you will do switch to the master branch then you will see what will happen with <strong>comment.html</strong> so, you will have to see two branches that you had made by putting <strong><em>$ git branch</em></strong>.</p>



<h2 class="wp-block-heading">Merging two branch command</h2>



<p class="wp-block-paragraph">You had made a file in the name <strong>comment.html </strong>then it will happen in the update code branch. So, again, you will switch by putting <strong><em>$ git checkout master</em></strong> then they will have switched to branch ‘master’. When you will move to the vs code so, the comment.html file will not be there and also not visible in the file explorer because you had not that file in the master branch and you are updating that file in the update code. Again, you will do a checkout to update the code so, that the comment.html file will retrieve again in the vs code. This is the real meaning of branch, you can do switch, comment set up, add features also, and anything you want to do. Differently, you can make replicas of the project doing adding features in that, and after, you can merge them. Now, look at how can you do merge, what is merge means? Suppose, you have a project in the name comment.html in vs code, you have made that. You had made features in that boss has liked most, if they say that you have to give merge that with the master branch so, git has to give it directly. How does it do? So, what will be the command? First, you will see the git log by putting the $ git log then you will see files that will have been committed to those files you have done. By pressing Q, you have to give quit, first, you will have to move master. In master, you have to do merge update code then you will move by putting $ git checkout master so, it will have to give switch.</p>



<p class="wp-block-paragraph"> Now, one command is happen like <strong><em>$ git merge update code</em></strong> then you will have to go in the vs code that file has merged there. When you will have to give a close file from vs code then it will give to see you all files and features that have been added. That files were in an update code, you will see they have been shifted to master, whenever you will put git status then it will see on branch master, working tree clean. When you open vs code by putting <strong><em>$ code.</em></strong> Then you will see comment file will have arrived in the master branch. So, this real meaning happens of merge, it is a very good feature. Suppose, you are making a code differently or doing the work of some other person and after that, you have to do merge all of the codes then only you will put git merge along with branch name and from which branch. It’s happened only, git shows us all work from professionally or the good way how ideally you are making and doing file. Suppose, you have to make a file of a node in that all Html files would work as backhand, you have to do server-side logics and make something in backhand. So, for giving him the layout, you will make a file of nodes. First, separately, you will have to make a branch then you will write <strong><em>$ git branch</em></strong>, and again, you will put <strong><em>$ git branch node integration</em></strong>, your branch will make. You will again put git branch then the branching file will show now, you have to make a file, and the direct switch also. It means that you make a branch, you want to do a switch. So, one command that is happening is <strong><em>$ git –b nodeintegration</em></strong>.</p>



<h2 class="wp-block-heading">Adding JavaScript branch</h2>



<p class="wp-block-paragraph">If you will put <strong><em>$ git –b nodeintegration </em></strong>then it will show checkout changes. When you will do <strong><em>$ git checkout node integration</em></strong> then it will be switched to branch node integration. You will make a file in the name <strong><em>$ touch node.js</em></strong> so, you will see a file has been made in a vs code. Suppose, you have written anything in that like</p>



<p class="wp-block-paragraph"><strong>console.log (“this is the server-side language”) &nbsp;</strong></p>



<p class="wp-block-paragraph"><strong>console.log (“this is git hub training”)</strong></p>



<p class="wp-block-paragraph">You have done a server-side in the node integration branch. Now, what can you do? Normally, you can check that. Suppose, you do <strong><em>$ git checkout master</em></strong> then your file node configuration will vanish from the vs code. You have made a file then first, you will add by putting <strong><em>$ git add –A</em></strong> so, it will come in the staging area. Next, you will do it by putting <strong><em>$ git commit –m “this is server-side js file” </em></strong>then the file will be added so, you have committed all files. Suppose, you have to give branch change by adding $ git checkout master when you do switch from the master then the node.js file will have vanished because your file doesn’t exist in the master branch, it will exist in the node integration. Again, you will put as <strong><em>$ git checkout nodeintegration</em></strong> so, the file will be retrieved again in the vs code. It is the meaning of branch, and merge. You have looked at it.</p>



<h4 class="wp-block-heading">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_45334"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/9oAOou7zUJI?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How can we build git commands?</title>
		<link>https://www.bestdevops.com/how-can-we-build-git-commands/</link>
		
		<dc:creator><![CDATA[rahulkr]]></dc:creator>
		<pubDate>Sat, 06 Nov 2021 11:14:16 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[commits]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[gitbash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[vs code]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=22318</guid>

					<description><![CDATA[Hello techies, welcome to the configurable world of programming. Today, we are going to talk about facts that matter obviously [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4-1024x576.jpg" alt="" class="wp-image-22320" width="762" height="428" srcset="https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4-1024x576.jpg 1024w, https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4-300x169.jpg 300w, https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4-768x432.jpg 768w, https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4-1536x864.jpg 1536w, https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4-375x210.jpg 375w, https://www.bestdevops.com/wp-content/uploads/2021/11/l13c0kdzdzppcm5z3zj4.jpg 1600w" sizes="auto, (max-width: 762px) 100vw, 762px" /></figure></div>



<p class="wp-block-paragraph">Hello techies, welcome to the configurable world of programming. Today, we are going to talk about facts that matter obviously in your git command order. Whether you have fear regarding the command line. After reading, these awesome steps, you will be gain more awaking and stability on the command line. Perhaps, before learning new stuff or things, you have doubt on either you will be eligible or not in getting that. So, this comprehensive part will make you precisely expert in the daily upcoming command matters.</p>



<h2 class="wp-block-heading">Four stages of files</h2>



<p class="wp-block-paragraph">Some have terms related to git. Let’s have a look at the terms. There are four stages such as <strong><em>untracked</em></strong>, <strong><em>unmodified</em></strong>, <strong><em>modified</em></strong>, and <strong><em>staged</em></strong>. Let’s look at these four. Whenever we make a repository, initialize the git. There is an untracked file, what does it mean? Just until git is not giving care to them. They will not track them, nothing will do, whatever you will do, it will show untracked to you. If you will do adding the file then it reaches the staging area, what is the staging area? the Staging area is the place where your file is ready to be committed. What is a commit? It means, one type of you have been done all codes, you are ready to upload them. Suppose, you make a<a href="https://www.devopsschool.com/"> program</a> doing little-little now, the program doesn’t make at once. So, Doing little, you are ready to upload, one work, one module has been made, you will upload this, the second module has been made, you will upload that. So that, your file is not going to vanish or lose. This has been happened about staged and untracked. What is unmodified happen? Whenever you do commit, suppose, you have done commit then it will move into the unmodified. After doing the commit, firstly, you will do untracked to add file then it will come in the staged area. Again, what will you do? You will do commit so, it comes in unmodified. Suppose, you have a program, there is a file which is in commit then after, you have added some more commands in that. What will happen next? The file will be modified. Again, you edit that file then it will show you modified because you have modified and added codes to them. Again, you have to do stage the file and commit, you can also remove that file from commit. These all are special stages of commands, you may also see that through the command line. Everything will come in understanding if you will see through the command line. Now, you will move to your git bash and make some files over there. You would make a file from touch, touch is a command which is used for making empty files. Suppose, you want to make a blog site then you need some files like <strong><em>$ touch about.html</em></strong> again, you type <strong><em>$ touch news.html</em></strong>, you have made two files then you will see vs code, the two files will be there to the name of <strong><em>about.html,</em></strong> and <strong><em>news.html.</em></strong> These two files will be empty, you have made these files through the command line. Now, you will check by writing some Html codes so, you can make your own basic structure like Html: 5 then your full page layout will be ready like this,</p>



<p class="wp-block-paragraph">For <strong><em>about.html,</em></strong></p>



<p class="wp-block-paragraph"><strong><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em></strong>&lt;! DOCTYPE html&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;html Lang=”en”&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Head&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Meta charset=”UTF-8”&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Meta name=”viewport” content=” width=device-width, initial- scale=1.0”&gt;</p>



<p class="wp-block-paragraph">&lt;Title&gt; <strong>about page</strong>&lt;/title&gt;</p>



<p class="wp-block-paragraph">&lt;/head&gt;</p>



<p class="wp-block-paragraph">&lt;Body&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>This is about page</strong></p>



<p class="wp-block-paragraph">&lt;/body&gt;</p>



<p class="wp-block-paragraph">&lt;/html&gt;</p>



<p class="wp-block-paragraph">For <strong><em>news.html,</em></strong></p>



<p class="wp-block-paragraph"><strong><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em></strong>&lt;! DOCTYPE html&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;html Lang=”en”&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Head&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Meta charset=”UTF-8”&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Meta name=”viewport” content=” width=device-width, initial- scale=1.0”&gt;</p>



<p class="wp-block-paragraph">&lt;Title&gt; <strong>News page</strong>&lt;/title&gt;</p>



<p class="wp-block-paragraph">&lt;/head&gt;</p>



<p class="wp-block-paragraph">&lt;Body&gt;</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>This is news page</strong></p>



<p class="wp-block-paragraph">&lt;/body&gt;</p>



<p class="wp-block-paragraph">&lt;/html&gt;</p>



<p class="wp-block-paragraph">Suppose, you have been made these two things so, again, you put <strong><em>$ git status</em></strong> then there will show untracked files. If you want to track all files then there has a command like <strong><em>$ git add about.html</em></strong> then it will do track. Now, you will put <strong><em>$ git status</em></strong> so, it will show you two files one will be tracked or another will be untracked. Suppose, you have ten to twelve files, very huge projects, and so many files so, you will not do it one by one. For doing at once, what will be the command? Then the command will be <strong><em>$ git add –A</em></strong> so, your all folder files will be shifted into the staging area. When you will type <strong><em>$ git status</em></strong> then all your files will be shown in the staging area. You can do unstage so, you will see just how we can do unstage.</p>



<h2 class="wp-block-heading">Git commit command</h2>



<p class="wp-block-paragraph">So, lets us do commit this, what would be the command for doing commit? For commit, you will put like <strong><em>$ git commit –m “the first commit”</em></strong> when you do enter from there will be committed with the message. So, there all files will be commit</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>[master (root-commit) 3b17be6] The first commit</strong></p>



<p class="wp-block-paragraph"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <u>&nbsp;</u>&#8212; Files changed, &#8212;- insertions (+)</strong></p>



<p class="wp-block-paragraph"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create mode 100644 .vscode/settings. json</strong></p>



<p class="wp-block-paragraph"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create mode 100644 about.html</strong></p>



<p class="wp-block-paragraph"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create mode 100644 news.html</strong></p>



<h2 class="wp-block-heading">Get checkout command</h2>



<p class="wp-block-paragraph">Suppose, something has happened as your file has been deleted. At once, you have been done commit after that, your all files are deleted by anyhow or somebody has saved that and closed it. Also, the editor has been closed. So, for retrieving that file, one command is happen there. Through that file, it matches your previous commit so, what are they happen? <strong><em>$ git checkout about.html</em></strong>, you will see that your about.html file will retrieve once again. It means your all files have been deleted after doing save. You have ten to twelve files that have been deleted but one time commit should happen, you have done commit and all your files have been deleted. So, you have to retrieve all files then you will type like <em><strong>$ code.</strong></em> Then your vs code will open. You have saved your file and deleted them, if you have to match these files to the previous commit, those have been deleted and you want to retrieve that files into about.html and news.html. So, the checkout one more command happens like <strong><em>$ git checkout –f</em></strong>, when you will put this then it has been matched all files from the previous commit. You will see that all files are available in vs code, it is a useful command. From here, the benefits will be ready to see you, why do GIT use? For what GIT is used? These all benefits, you will have to see that if your file will have been deleted then how you can retrieve them and match to the previous commit. About these all thing, you are seeing.</p>



<h2 class="wp-block-heading">Git log command</h2>



<p class="wp-block-paragraph">One more command happens whose name is GIT log. What does it do? When you run the <strong><em>$ git log </em></strong>command then it will show you all details about the first commit like the author, and date. Suppose, you have done a hundred commits so, you will do GIT log then all commits will be retrieved there. If you have to see two or three commits then what will you do there, you will put like $ git log -p -1 so, it shows your last commit in detail with diff. what is diff.? You will see just now, there will show you first commit and what changes you have added in that. When you will press Q then it will happen quit and will move in the editor. Suppose, you make a file like $ git touch contact.html then the file has been done. You will see that your file will be ready in vs code to the name contact.html so, you will write code, as usual, you have written previously in that. You will see a U signal besides contact.html which means it is unstaged and untracked. You would continuously run the $ git status command so that you should know what is happening in your file then it will show you the contact.html file and untracked also. First, you will add that by typing command $ git add –A so, it will come in the staging area. When you will put $ git status then your new file will show there. So, you do any advancement in the news.html file and you have added them in that file then what will show to you?&nbsp; When you put $ git status then it will show you modified because you have done changes in that.</p>



<p class="wp-block-paragraph"> Again, you have to send in the staging area so, as you will write <strong><em>$ git add –A</em></strong> then it will move to the staging area. So, GIT will hold your all records like what are you doing or not? You will add some features in all files so, again, you will run the command like <strong><em>$ git status </em></strong>then all your files will show you modified. After that, you will do add in staging area and commit that by <strong><em>$ git add –A</em></strong>. Again, you will run <strong><em>$ git status</em></strong> then it will show your all files status, if you will write <strong><em>$ git commit –m “Adding the new features to files”</em></strong> then it will show your file details. Suppose, you have added some features in all files through going vs code, let them will save otherwise, the effect will not happen then again, you will put <strong><em>$ git status</em></strong> so, all will be modified, you want to do a direct commit, without sending them staging area. So, there will be commands like <em><strong>$ git commit –a –m “skipping the staged area” </strong></em>from there, staging area will have to give skip and directly, they will be print so, you can check through <strong><em>$ git log p 2</em></strong> then everything will show you there. If you will put Q then it will do quit from the editor. When you will do <strong><em>$ ls </em></strong>then it will show you all files, like <strong><em>$ pwd, $ ls</em></strong> command, these all happen unique command, you are using in git then it is also work as a terminal command in git bash. Suppose, you make a file by default to the name <strong><em>$ touch delete.html</em></strong>, you have added some feature in that file then you will type $ git status then it will show you untracked because you have not added in the staging area.</p>



<h4 class="wp-block-heading">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_44516"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/T8Ds409jQLM?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Install a Laravel project inside htdocs folder in ubuntu</title>
		<link>https://www.bestdevops.com/install-a-laravel-project-inside-htdocs-folder-in-ubuntu/</link>
		
		<dc:creator><![CDATA[pradeep]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 09:49:10 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[mbstring]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18793</guid>

					<description><![CDATA[I was moving a Laravel project to a ubuntu virtual machine.Steps that I followed: 1. Installed Xampp 2. Another thing [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">I was moving a Laravel project to a  ubuntu  virtual machine.<br>Steps that I followed:</h3>



<h3 class="wp-block-heading">1.  Installed Xampp </h3>



<figure class="wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="lwILFIsreb"><a href="https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/">How to install  and Configure XAMPP  on Ubuntu?</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;How to install  and Configure XAMPP  on Ubuntu?&#8221; &#8212; DevOpsSchool.com" src="https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/embed/#?secret=AiPeZ0yBbG#?secret=lwILFIsreb" data-secret="lwILFIsreb" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div><figcaption>By following this blog i was successfully xampp running on my machine. Thanks to the auther Rajesh Kumar</figcaption></figure>



<h3 class="wp-block-heading">2. Another thing which is required is Composer </h3>



<figure class="wp-block-embed is-type-wp-embed is-provider-devops-devsecops-sre-dataops-aiops wp-block-embed-devops-devsecops-sre-dataops-aiops"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="ep8po4mbU8"><a href="https://www.bestdevops.com/install-composer-using-cli-in-ubuntu-globally/">Install composer using CLI in ubuntu (Globally)</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Install composer using CLI in ubuntu (Globally)&#8221; &#8212; Best DevOps" src="https://www.bestdevops.com/install-composer-using-cli-in-ubuntu-globally/embed/#?secret=EhSiZXmf7j#?secret=ep8po4mbU8" data-secret="ep8po4mbU8" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h3 class="wp-block-heading">3. Now the thing is when we try to install Laravel project inside our htdocs folder it through an error</h3>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="884" height="260" src="https://www.bestdevops.com/wp-content/uploads/2021/08/image-42.png" alt="" class="wp-image-18795" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/image-42.png 884w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-42-300x88.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-42-768x226.png 768w" sizes="auto, (max-width: 884px) 100vw, 884px" /></figure>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading">4. To resolve this error first create a folder inside your htdocs.</h3>


<pre class="wp-block-code"><span><code class="hljs">mkdir Projects</code></span></pre>


<h3 class="wp-block-heading">5 grant read and write permissions to this folder by running this commands</h3>


<pre class="wp-block-code"><span><code class="hljs">sude chmod +rw Projects</code></span></pre>


<h3 class="wp-block-heading">6. You may get another error while installing is (&#8220;mbstring&#8221; extension is missing.)</h3>



<p class="wp-block-paragraph">Run the below commands to resolve these errors</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">sudo apt-<span class="hljs-keyword">get</span> install php-mbstring
</code></span></pre>

<pre class="wp-block-code"><span><code class="hljs">sudo su - root
</code></span></pre>


<h3 class="wp-block-heading">7. That&#8217;s it now try installing your project again </h3>


<pre class="wp-block-code"><span><code class="hljs language-javascript">composer create-project --prefer-dist laravel/laravel testProject <span class="hljs-string">"5.8.*"</span></code></span></pre>


<p class="wp-block-paragraph">That&#8217;s it, Hope it help someone out there.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Completely Uninstall Docker on Ubuntu/Debian</title>
		<link>https://www.bestdevops.com/how-to-completely-uninstall-docker/</link>
					<comments>https://www.bestdevops.com/how-to-completely-uninstall-docker/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Thu, 13 Jul 2017 07:50:26 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[DevOps Tools]]></category>
		<category><![CDATA[BestDevOps]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[uninstall docker]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=2087</guid>

					<description><![CDATA[A step-by-step guide to fully removing Docker Engine and all its residual files, directories, and configuration from Ubuntu and Debian-based Linux systems.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Uninstalling Docker using only the standard package manager commands often leaves behind configuration files, volumes, networks, and other residual data scattered across the filesystem. This guide walks through a thorough removal process to ensure Docker is completely gone from an Ubuntu or Debian-based system.</p>




<p class="wp-block-paragraph"><strong>Note:</strong> The steps below will permanently delete all Docker containers, images, volumes, and networks stored on your machine. Back up anything you need before proceeding.</p>




<h2 class="wp-block-heading">Step 1: Stop the Docker Service</h2>



<p class="wp-block-paragraph">Before removing any packages, stop the Docker daemon to avoid file-in-use errors:</p>


<pre class="wp-block-code"><span><code class="hljs">sudo systemctl stop docker
sudo systemctl disable docker</code></span></pre>


<h2 class="wp-block-heading">Step 2: Remove Docker Packages</h2>



<p class="wp-block-paragraph">Use <code>apt-get purge</code> to remove the Docker packages along with their configuration files, then <code>autoremove</code> to clean up any unused dependencies:</p>


<pre class="wp-block-code"><span><code class="hljs language-css"><span class="hljs-selector-tag">sudo</span> <span class="hljs-selector-tag">apt-get</span> <span class="hljs-selector-tag">purge</span> <span class="hljs-selector-tag">docker-engine</span> <span class="hljs-selector-tag">docker</span> <span class="hljs-selector-tag">docker</span><span class="hljs-selector-class">.io</span> <span class="hljs-selector-tag">docker-ce</span> <span class="hljs-selector-tag">docker-ce-cli</span> <span class="hljs-selector-tag">containerd</span><span class="hljs-selector-class">.io</span>
<span class="hljs-selector-tag">sudo</span> <span class="hljs-selector-tag">apt-get</span> <span class="hljs-selector-tag">autoremove</span> <span class="hljs-selector-tag">--purge</span> <span class="hljs-selector-tag">docker-engine</span> <span class="hljs-selector-tag">docker</span> <span class="hljs-selector-tag">docker</span><span class="hljs-selector-class">.io</span> <span class="hljs-selector-tag">docker-ce</span> <span class="hljs-selector-tag">containerd</span><span class="hljs-selector-class">.io</span>
<span class="hljs-selector-tag">sudo</span> <span class="hljs-selector-tag">apt-get</span> <span class="hljs-selector-tag">autoclean</span></code></span></pre>


<p class="wp-block-paragraph">The exact package names vary depending on how Docker was installed (from the Ubuntu default repositories versus the official Docker repository). Running the command with all common package names is safe — <code>apt-get</code> will simply skip packages that are not installed.</p>



<h2 class="wp-block-heading">Step 3: Remove Docker Data Directories</h2>



<p class="wp-block-paragraph"><code>apt-get purge</code> does not remove Docker&#8217;s runtime data: images, containers, volumes, and custom networks are stored separately in <code>/var/lib/docker</code>. Remove them manually:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">sudo rm -rf /<span class="hljs-keyword">var</span>/lib/docker
sudo rm -rf /<span class="hljs-keyword">var</span>/lib/containerd</code></span></pre>


<h2 class="wp-block-heading">Step 4: Remove Residual Configuration and Binary Files</h2>



<p class="wp-block-paragraph">Docker may leave behind configuration files, CLI plugins, and systemd unit files in several locations. Remove them with the following commands:</p>


<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># Docker configuration directory</span>
sudo rm -rf /etc/docker

<span class="hljs-comment"># systemd drop-in and service files</span>
sudo rm -rf /etc/systemd/system/docker.service.d
sudo rm -f /etc/systemd/system/docker.service
sudo rm -f /etc/systemd/system/docker.socket

<span class="hljs-comment"># Docker context and CLI config (per-user)</span>
rm -rf ~/.docker

<span class="hljs-comment"># Reload systemd after removing unit files</span>
sudo systemctl daemon-reload</code></span></pre>


<h2 class="wp-block-heading">Step 5: Remove the Docker APT Repository and GPG Key</h2>



<p class="wp-block-paragraph">If you added Docker&#8217;s official APT repository, remove it so it does not interfere with future package operations:</p>


<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># Remove the repository source file</span>
sudo rm -f /etc/apt/sources.<span class="hljs-keyword">list</span>.d/docker.<span class="hljs-keyword">list</span>

<span class="hljs-comment"># Remove the GPG keyring (path may differ based on how it was added)</span>
sudo rm -f /usr/share/keyrings/docker-archive-keyring.gpg
sudo rm -f /etc/apt/keyrings/docker.gpg

<span class="hljs-comment"># Update the package index</span>
sudo apt-get update</code></span></pre>


<h2 class="wp-block-heading">Step 6: Remove Docker Groups and Users</h2>



<p class="wp-block-paragraph">Docker installation creates a <code>docker</code> system group. Remove it if it is no longer needed:</p>


<pre class="wp-block-code"><span><code class="hljs">sudo groupdel docker</code></span></pre>


<p class="wp-block-paragraph">If the command returns a &#8220;group does not exist&#8221; error, the group was already removed by the package purge step — that is fine.</p>



<h2 class="wp-block-heading">Step 7: Verify No Docker Files Remain</h2>



<p class="wp-block-paragraph">Run a filesystem search to confirm that Docker-related files are gone. Be aware that some paths — such as entries under <code>/proc</code>, <code>/sys</code>, and <code>/run</code> — are virtual/pseudo-filesystems and will not persist after a reboot. Entries there do not necessarily indicate a problem:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">sudo find / -name <span class="hljs-string">'*docker*'</span> <span class="hljs-number">2</span>&gt;<span class="hljs-regexp">/dev/</span><span class="hljs-literal">null</span></code></span></pre>


<p class="wp-block-paragraph">After completing the steps above, any remaining results should be limited to virtual kernel filesystems (<code>/proc</code>, <code>/sys</code>) or user-level cache entries. A reboot will clear ephemeral entries in <code>/run</code> and <code>/proc</code>.</p>



<h2 class="wp-block-heading">Understanding Residual Paths</h2>



<p class="wp-block-paragraph">When the original community question (sourced from <strong>askubuntu.com</strong>) ran the <code>find</code> command after purging Docker, it discovered references in the following top-level directories:</p>



<ul class="wp-block-list">
<li><strong>/etc</strong> — Persistent configuration files not removed by <code>purge</code></li>
<li><strong>/lib</strong> or <strong>/usr/lib</strong> — Shared libraries or systemd unit files</li>
<li><strong>/usr</strong> — Binaries, man pages, and CLI plugins</li>
<li><strong>/var</strong> — Runtime data: images, containers, volumes</li>
<li><strong>/run</strong> — Ephemeral runtime sockets and PID files (disappear after reboot)</li>
<li><strong>/sys</strong> — Virtual kernel filesystem entries (disappear after reboot)</li>
<li><strong>/proc</strong> — Virtual process filesystem entries (disappear after reboot)</li>
</ul>



<p class="wp-block-paragraph">The steps in this guide address the persistent paths. Entries under <code>/run</code>, <code>/sys</code>, and <code>/proc</code> are managed by the kernel and will be absent after the next reboot.</p>



<h2 class="wp-block-heading">Quick Reference: Full Removal Script</h2>



<p class="wp-block-paragraph">The commands below combine everything into a single sequence you can run on an Ubuntu/Debian system. Review each line before executing.</p>


<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment">#!/usr/bin/env bash</span>
set -e

<span class="hljs-comment"># 1. Stop and disable the Docker daemon</span>
sudo systemctl stop docker <span class="hljs-number">2</span>&gt;/dev/<span class="hljs-keyword">null</span> || <span class="hljs-keyword">true</span>
sudo systemctl disable docker <span class="hljs-number">2</span>&gt;/dev/<span class="hljs-keyword">null</span> || <span class="hljs-keyword">true</span>

<span class="hljs-comment"># 2. Purge Docker packages</span>
sudo apt-get purge -y \
  docker-engine docker docker.io \
  docker-ce docker-ce-cli docker-ce-rootless-extras \
  containerd.io
sudo apt-get autoremove --purge -y
sudo apt-get autoclean

<span class="hljs-comment"># 3. Remove data directories</span>
sudo rm -rf /<span class="hljs-keyword">var</span>/lib/docker /<span class="hljs-keyword">var</span>/lib/containerd

<span class="hljs-comment"># 4. Remove configuration and service files</span>
sudo rm -rf /etc/docker
sudo rm -f /etc/systemd/system/docker.service \
           /etc/systemd/system/docker.socket
sudo rm -rf /etc/systemd/system/docker.service.d
rm -rf ~/.docker

<span class="hljs-comment"># 5. Remove APT repository and key</span>
sudo rm -f /etc/apt/sources.<span class="hljs-keyword">list</span>.d/docker.<span class="hljs-keyword">list</span>
sudo rm -f /usr/share/keyrings/docker-archive-keyring.gpg
sudo rm -f /etc/apt/keyrings/docker.gpg
sudo apt-get update

<span class="hljs-comment"># 6. Remove the docker group</span>
sudo groupdel docker <span class="hljs-number">2</span>&gt;/dev/<span class="hljs-keyword">null</span> || <span class="hljs-keyword">true</span>

<span class="hljs-comment"># 7. Reload systemd</span>
sudo systemctl daemon-reload

<span class="hljs-keyword">echo</span> <span class="hljs-string">"Docker removal complete. Reboot to clear any remaining ephemeral entries."</span></code></span></pre>


<p class="wp-block-paragraph">After rebooting, re-run <code>sudo find / -name '*docker*' 2>/dev/null</code> to confirm a clean state.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/how-to-completely-uninstall-docker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
