<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Robin Hooda</title>
    <description>The latest articles on DEV Community by Robin Hooda (@robinhooda).</description>
    <link>https://dev.to/robinhooda</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F351748%2F55c5d942-d8cd-4786-8bc9-cd82f6b009c1.jpeg</url>
      <title>DEV Community: Robin Hooda</title>
      <link>https://dev.to/robinhooda</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robinhooda"/>
    <language>en</language>
    <item>
      <title>Master CSS Selectors</title>
      <dc:creator>Robin Hooda</dc:creator>
      <pubDate>Fri, 25 Dec 2020 08:51:21 +0000</pubDate>
      <link>https://dev.to/robinhooda/all-about-css-selectors-55b2</link>
      <guid>https://dev.to/robinhooda/all-about-css-selectors-55b2</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4vxtiaivbb2dlneeymb3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4vxtiaivbb2dlneeymb3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;What are CSS selectors?&lt;/strong&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;In CSS, selectors are patterns used to select the HTML element(s) on our web pages we want to style.&lt;/li&gt;
&lt;li&gt;In layman terms, selectors are used to grab a DOM element to apply styles to it&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;What are different types of CSS selectors?&lt;/strong&gt;
&lt;/h1&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;.class&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Selects all elements with given class name&lt;/li&gt;
&lt;li&gt;Write a period (.) character, followed by the name of the class&lt;/li&gt;
&lt;li&gt;It will select all p with class="myClass"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7jot0awoktucwxbtelv5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7jot0awoktucwxbtelv5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;child .class&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;We can target child element using a class hierarchy&lt;/li&gt;
&lt;li&gt;We have to write parent class name followed by a space, and then followed by the child's class
name&lt;/li&gt;
&lt;li&gt;Below example will add background-color: yellow to the paragraph&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fysnn376awsadeqdfkp0n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fysnn376awsadeqdfkp0n.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;#id&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Style the element with given id attribute&lt;/li&gt;
&lt;li&gt;In below example intro is the id of the paragraph&lt;/li&gt;
&lt;li&gt;We select the elements by adding # followed by the id attribute of the element&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fhsywzhoub3c6f9031sph.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fhsywzhoub3c6f9031sph.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;element tag&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;We can directly select an element by its tag name and apply the styles&lt;/li&gt;
&lt;li&gt;In this case we don't have to mention id or the class - simply write the element name in our
styles and add properties to it&lt;/li&gt;
&lt;li&gt;Below example will grab all the p elements and apply the style to it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdiga68i87p5xa7t6fhqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdiga68i87p5xa7t6fhqh.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Mixture of #id, .class and element tag&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Below example will grab all the h1 elements which have class named heading and id's as greeting and intro respectively.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4tcxkjcy0mueazlrb0yg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4tcxkjcy0mueazlrb0yg.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;And it's output will look like this-&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1uxotulfmztk9bb1zf0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1uxotulfmztk9bb1zf0m.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;adjacent selector&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Selects only the element which is preceded by the former element&lt;/li&gt;
&lt;li&gt;In this case, only the first paragraph after each h1 will have gray text&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi12hi9hcg67km6ihp5mj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi12hi9hcg67km6ihp5mj.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;attributes selector&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Will only select the anchor tags that have a title attribute&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffhgzr8ofd62huv15a78i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffhgzr8ofd62huv15a78i.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Will style all anchor tags which link to &lt;a href="http://www.google.com" rel="noopener noreferrer"&gt;http://www.google.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvj7ocwpxwcsypj5vmv0n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvj7ocwpxwcsypj5vmv0n.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Star designates that the proceeding value must appear somewhere in the attribute's value&lt;/li&gt;
&lt;li&gt;This covers any links which consists of 'com' in them such as, google.com, gmail.com, wikipedia.com&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9v9feapmddqotkslkxfo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9v9feapmddqotkslkxfo.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Attribute "contains" value&lt;/li&gt;
&lt;li&gt;Needs to be whole word&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F26wxwh52dgfobwbt29rj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F26wxwh52dgfobwbt29rj.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Attribute "contains" value&lt;/li&gt;
&lt;li&gt;Does not have to be whole word&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F84fpahf4xi80v0yxutwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F84fpahf4xi80v0yxutwh.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Attribute "starts with" value&lt;/li&gt;
&lt;li&gt;The value has to be a whole word

&lt;ul&gt;
&lt;li&gt;Either whole word&lt;/li&gt;
&lt;li&gt;Or word followed by -&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6qw8o020qptvouaa8esf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6qw8o020qptvouaa8esf.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Attribute "starts with" value&lt;/li&gt;
&lt;li&gt;The value DOEST NOT have to be a whole word&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F60cy6aszj5n8im1sgm8l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F60cy6aszj5n8im1sgm8l.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;Attribute "ends with" value&lt;/li&gt;
&lt;li&gt;The value DOEST NOT have to be a whole word&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6mgkw7qtemqcqsk2124j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6mgkw7qtemqcqsk2124j.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If still have any doubts, do drop me a message on my &lt;a href="https://www.linkedin.com/in/robin-hooda-384835120/" rel="noopener noreferrer"&gt;linkedin&lt;/a&gt; or &lt;a href="https://twitter.com/robinHoodaDev" rel="noopener noreferrer"&gt;twitter&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Don't forget to follow me on - &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.linkedin.com/in/robin-hooda-384835120/" rel="noopener noreferrer"&gt;linkedin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://twitter.com/robinHoodaDev" rel="noopener noreferrer"&gt;twitter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/robinhooda" rel="noopener noreferrer"&gt;github&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>selectors</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Clean Code Philosophy</title>
      <dc:creator>Robin Hooda</dc:creator>
      <pubDate>Sun, 20 Dec 2020 18:09:23 +0000</pubDate>
      <link>https://dev.to/robinhooda/clean-code-philosophy-1b2p</link>
      <guid>https://dev.to/robinhooda/clean-code-philosophy-1b2p</guid>
      <description>&lt;p&gt;A guide to know all about clean code and its importance&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Guide to Git commands</title>
      <dc:creator>Robin Hooda</dc:creator>
      <pubDate>Sun, 20 Dec 2020 18:08:40 +0000</pubDate>
      <link>https://dev.to/robinhooda/guide-to-git-commands-1odc</link>
      <guid>https://dev.to/robinhooda/guide-to-git-commands-1odc</guid>
      <description>&lt;p&gt;A blog on guide to git and its important commands that are used daily in the developer's life&lt;/p&gt;

&lt;p&gt;Here is a list of 15 Git commands that you may not know yet, but hopefully they will help you out on a journey to master this tool.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Modify The Most Recent Commit&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;git commit --amend&lt;br&gt;
—-amend allows to append staged changes (e.g. to add a forgotten file) to the previous commit. Adding —-no-edit on top of that will amend the last commit without changing its commit message. If there are no changes, -—amend will allow you to reword the last commit message.&lt;/p&gt;

&lt;p&gt;For more: git help commit&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Interactively Add Selected Parts of Files
git add -p
-p (or —patch) allows to interactively select parts of each tracked file to commit. This way each commit contains only related changes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For more: git help add&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Interactively Stash Selected Parts of Files
git stash -p
Similar to git-add , you can use --patch option to interactively select parts of each tracked file to stash.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For more: git help stash&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Stash with untracked&lt;br&gt;
git stash -u&lt;br&gt;
By default, when stashing, the untracked files are not included. In order to change that bevahiour and include those files as well you need to use -u parameter. There is also -a (—all) which stashes both untracked and ignored files altogether, which is probably something you usually won’t need.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Interactively Revert Selected Parts of Files&lt;br&gt;
git checkout -p&lt;br&gt;
--patch can be also used to selectively discard parts of each tracked file. I aliased this command as git discard&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For more: git help checkout&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Switch to Previous Branch&lt;br&gt;
git checkout -&lt;br&gt;
This command allows you to quickly switch to the previously checked out branch. On a general note - is an alias for the previous branch. It can be used with other commands as well. I aliased checkout to co so, it becomes just git co -&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Revert All Local Changes&lt;br&gt;
git checkout .&lt;br&gt;
If you are sure that all of your local changes can be discarded, you can use . to do it at once. It is, however, a good practice to always use checkout --patch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Show changes&lt;br&gt;
git diff --staged&lt;br&gt;
This command shows all staged changes (those added to the index) in contrast to just git diff which only shows changes in the working directory (without those in the index).&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For more: git help diff&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Rename Branches Locally&lt;br&gt;
git branch -m old-name new-name&lt;br&gt;
If you want to rename the currently checked out branch, you can shorten this command to the following form:&lt;br&gt;
git branch -m new-name&lt;br&gt;
For more: git help branch&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Rename Branches Remotely&lt;br&gt;
In order to rename a branch remotely, once you renamed your branch locally, you need to first remove that branch remotely and then push the renamed branch again.&lt;br&gt;
git push origin :old-name&lt;br&gt;
git push origin new-name&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open All Files with Conflicts at Once&lt;br&gt;
Rebasing may lead to conflicts, the following command will open all files which need your help to resolve these conflicts.&lt;br&gt;
git diff --name-only --diff-filter=U | uniq  | xargs $EDITOR&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What changed?&lt;br&gt;
git whatchanged —-since=‘2 weeks ago’&lt;br&gt;
This command will show a log with changes introduced by each commit from the last two weeks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Remove file from last commit&lt;br&gt;
Let's say you committed a file by mistake. You can quickly remove that file from the last commit by combining rm and commit --amend commands:&lt;br&gt;
git rm —-cached &lt;br&gt;
git commit —-amend&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Find Branches&lt;br&gt;
git branch --contains &lt;br&gt;
This command will show all branches that contain a particular commit.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Optimize the repository locally&lt;br&gt;
git gc --prune=now --aggressive&lt;br&gt;
For more: git help gc&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
  </channel>
</rss>
