<?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>vs code &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/vs-code/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>Tue, 16 Nov 2021 06:41:55 +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 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 fetchpriority="high" 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="(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  id="_ytid_60955"  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 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="(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_33834"  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>Most Popular Visual Studio Code Shortcut</title>
		<link>https://www.bestdevops.com/most-popular-visual-studio-code-shortcut/</link>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Sat, 31 Jul 2021 12:14:43 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[vs code]]></category>
		<category><![CDATA[vs code shortcuts]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18575</guid>

					<description><![CDATA[In Visual Studio Code, the lines will be checked while someone is typing the line on vs code . when [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In <strong>Visual Studio Code</strong>, the lines will be checked while someone is typing the line on vs code . when the line gets completed , errors get highlighted that time only. It shows how to fix those error. A person can also open two files together side by side in that software, can even open three tabs side by side and look at that same time.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="318" height="159" src="https://www.bestdevops.com/wp-content/uploads/2021/07/image-37.png" alt="" class="wp-image-18576" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/image-37.png 318w, https://www.bestdevops.com/wp-content/uploads/2021/07/image-37-300x150.png 300w" sizes="auto, (max-width: 318px) 100vw, 318px" /></figure></div>



<h2 class="wp-block-heading">Popular shortcut of V S Code</h2>



<ul class="wp-block-list"><li><strong>Ctrl + Shift + F:&nbsp;</strong>Search in all files.<br></li><li><strong>Ctrl + Shift + H</strong>: Replace in all the files<br></li><li><strong>Ctrl + T:</strong>&nbsp;Go to symbol in all files<br></li><li><strong>Ctrl + B :</strong>&nbsp;Toggle Slider Bar<br></li><li><strong>Ctrl + 1</strong>: Focus Left Editor<br></li><li><strong>Ctrl+ 2:</strong>&nbsp;Focus Right Editor<br></li><li><strong>F2:</strong>&nbsp;Rename symbol and function</li></ul>



<ul class="wp-block-list"><li><strong>Ctrl + 1</strong>: Focus Left Editor<br></li><li><strong>Ctrl + Shift + X</strong>&nbsp;: Go to Extension Window<br></li><li><strong>Ctrl + J</strong>: Toggle Panels<br></li><li><strong>Ctrl + `</strong>&nbsp;: Open terminal in VS Code<br></li><li><strong>Ctrl + Shift + U</strong>: Show output Window<br></li><li><strong>Ctrl + Shift + M</strong>&nbsp;: Show problems, Where you can see all the problems related to code and warnings.</li></ul>



<ul class="wp-block-list"><li><strong>Alt + Left:</strong>&nbsp;Navigate &nbsp;between files goes to the left side of files<br><strong></strong></li><li><strong>Alt+ Right:&nbsp;</strong>Navigate between files goes to the right side of files<br><strong></strong></li><li><strong>Alt + F12</strong>: Peek definition, You can see preview of code for a function<br><strong></strong></li><li><strong>Ctrl + Shift + D:&nbsp;</strong>Debug folder or file.</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>List of Top 11 Text/Code Editor Software in 2021</title>
		<link>https://www.bestdevops.com/list-of-top-11-text-code-editor-software-in-2021/</link>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 10:14:38 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[code editor]]></category>
		<category><![CDATA[list of top]]></category>
		<category><![CDATA[list of top code editor]]></category>
		<category><![CDATA[list of top text editor]]></category>
		<category><![CDATA[most used code editor]]></category>
		<category><![CDATA[software 2021]]></category>
		<category><![CDATA[text editor]]></category>
		<category><![CDATA[visual code]]></category>
		<category><![CDATA[visual studio code]]></category>
		<category><![CDATA[vs code]]></category>
		<category><![CDATA[what can you do with code editior]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=17997</guid>

					<description><![CDATA[Notepad++ Atom Visual Studio Code Brackets NetBeans Bluefish TextMate vim Komodo Edit BBEdit Codeshare What are code editors called? Code [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list"><li>Notepad++</li><li>Atom</li><li>Visual Studio Code</li><li>Brackets</li><li>NetBeans</li><li>Bluefish</li><li>TextMate</li><li>vim</li><li>Komodo Edit</li><li>BBEdit</li><li>Codeshare</li></ul>



<h2 class="wp-block-heading">What are code editors called?</h2>



<p class="wp-block-paragraph">Code editors or source code editors are the software that is designed specifically to help developers in coding. These are actually the text editors with some additional functionalities to manage and edit code. It can be standalone or it can be a part of an IDE.</p>



<p class="wp-block-paragraph">Using the best code editor can improve the speed of coding.<br>Code editors are programming language specific. Some editors support one or two programming languages whereas some support multiple programming languages. It can give suggestions and highlights only based on language support.</p>



<p class="wp-block-paragraph">Structure editor is a type of coding editor or we can say that it is the functionality which is included in the editors. Structure editing is used for manipulating the structure of a code based on the syntax tree. The syntax tree is nothing but the structure of the code which is written in a programming language.</p>



<p class="wp-block-paragraph">The code editors don’t compile the code. It just allows you to write and edit the source code.</p>



<h2 class="wp-block-heading">Which editor you will use for coding?</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.bestdevops.com/wp-content/uploads/2021/07/vsc-01.jpg" alt="" class="wp-image-18005" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/vsc-01.jpg 800w, https://www.bestdevops.com/wp-content/uploads/2021/07/vsc-01-300x225.jpg 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/vsc-01-768x576.jpg 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></figure>



<p class="wp-block-paragraph"><strong>Visual Studio Code</strong>&#8211; It is an open-source text editor, which can be easily run anywhere whether it be Windows, Linux, and Mac. It is a very light-weighted tool i.e., does not support much space on RAM. It provides Syntax Highlighting, auto-completion for various imported modules, definitions of functions, and types of variables. It also provides debugging with call stacks, breakpoints, and an interactive console. It is a customizable and extensible text editor. It is available free of cost and supports all types of programming languages.</p>



<h2 class="wp-block-heading">What is the most used code editor?</h2>



<p class="wp-block-paragraph">Visual Studio Code, also known as VS Code, is an open-source code editor by Microsoft. It is a cross-platform text editor that can run on any device, either on Linux, Windows, or Mac.</p>



<p class="wp-block-paragraph">This text editor is focused on increasing the developer’s performance. Features like auto-completion, system debugging help to improve the developer’s daily tasks.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="880" height="350" src="https://www.bestdevops.com/wp-content/uploads/2021/07/000-Best-Code-Editor-VS-Code.png" alt="" class="wp-image-18006" srcset="https://www.bestdevops.com/wp-content/uploads/2021/07/000-Best-Code-Editor-VS-Code.png 880w, https://www.bestdevops.com/wp-content/uploads/2021/07/000-Best-Code-Editor-VS-Code-300x119.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/07/000-Best-Code-Editor-VS-Code-768x305.png 768w" sizes="auto, (max-width: 880px) 100vw, 880px" /></figure>



<p class="wp-block-paragraph">Of all the code editors on the list, it is probably the closest to being an IDE. Although it is compelling, it requires considerable time during start-up, which is the only cons of this text editor. However, while using it, VS Code is quick and able to handle quite a few exciting tasks, such as fast Git commits or opening and sorting through multiple folders’ worth of content.</p>



<p class="wp-block-paragraph">VS Code has a built-in terminal and built-in Git support, making this text editor one of the best text editors in the market. It can be customized according to your need. Through VS Code extensions, you can install many features, and you can perform all the works that can be performed on an IDE.</p>



<h2 class="wp-block-heading">What can you do with a code editor?</h2>



<p class="wp-block-paragraph">A code editor is nothing but a text editor that is specialized for writing software. It may be a stand-alone program or part of an integrated development environment (IDE). They make writing and reading the source code easier by differentiating the elements, so the programmers can view their code.</p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
