<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Git Quicksheet by nvmoyar</title>
      <link>https://padlet.com/nvmoyar/b57jqgdqo2td</link>
      <description>Git at a glance (from Datacamp github course)</description>
      <language>en-us</language>
      <pubDate>2017-11-16 09:29:51 UTC</pubDate>
      <lastBuildDate>2025-10-12 13:32:28 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-assets.s3.amazonaws.com/icons/Dartstarget.png</url>
      </image>
      <item>
         <title>Recent commit/s</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207570247</link>
         <description><![CDATA[<div>last commit:<br><strong>$ git log -1</strong>  --&gt; equivalent to git show HEAD<br><strong>$ git log</strong><br>----<br><strong>$ git show HEAD~1</strong> (previous to last commit)<br><strong>$ git show HEAD~2 </strong><br>(HEAD-2 commits ago)</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 09:30:41 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207570247</guid>
      </item>
      <item>
         <title>Last commit changes</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207572560</link>
         <description><![CDATA[<div><strong>$ git show<br>$ git show 2343 (first hash chars)</strong><br>The first part is the same as the log entry shown by git log. The second part shows the changes; as with git diff, lines that the change removed are prefixed with -, while lines that it added are prefixed with +.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 09:38:19 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207572560</guid>
      </item>
      <item>
         <title>What is going to be committed? </title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207576579</link>
         <description><![CDATA[<div>In order to compare the file as it currently is to the changes in the staging area, you can use <strong>git diff -r HEAD filename</strong>. The -r flag means "compare to a particular revision", and HEAD is a shortcut meaning "the most recent commit". We will explore other uses of -r and HEAD in the next chapter.<br><br></div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 09:50:50 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207576579</guid>
      </item>
      <item>
         <title>Who changed that file</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207595875</link>
         <description><![CDATA[<div><strong>$ git annotate file</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 10:57:49 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207595875</guid>
      </item>
      <item>
         <title>Git Diff</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207599676</link>
         <description><![CDATA[<div><strong>$ git diff 920252..4504188</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 11:11:27 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207599676</guid>
      </item>
      <item>
         <title>Unwanted files</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207602473</link>
         <description><![CDATA[<div><strong>$ git clean -n</strong> <br>will show you a list of files that are in the repository, but whose history Git is not currently tracking<br><strong> $ git clean -f </strong><br>will then delete those files.</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 11:21:49 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207602473</guid>
      </item>
      <item>
         <title>Git Configuration</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207604525</link>
         <description><![CDATA[<h1><strong>$ git config --list (AND one of these flags)</strong></h1><ul><li>--system: settings for every user on this computer.</li><li>--global: settings for every one of your projects.</li><li>--local: settings for one specific project.</li></ul><div><br></div><pre>git config --global setting.name myemail@email.com</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 11:28:56 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207604525</guid>
      </item>
      <item>
         <title>Undo changes to unstaged files</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207611300</link>
         <description><![CDATA[<div><strong>$ git checkout -- filename </strong><br>(two scores - - )</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 11:56:15 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207611300</guid>
      </item>
      <item>
         <title>Unstage a file already staged</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207614500</link>
         <description><![CDATA[<div><strong>$ git checkout -- filename </strong><br>Discard the changes in your repository.<br>will undo changes that have not yet been staged. <br>If you want to undo changes that <em>have</em> been staged, you can use <br><br><strong>$ git reset HEAD filename</strong><br> This does <em>not</em> restore the file to the state it was in before you started making changes. Instead, it resets the file to the state you last staged. <br>If you want to go all the way back to where you were before you started making changes, you must <br><br><strong>$ git checkout -- filename</strong><br><br></div><div>(You may be wondering why there are two commands for re-setting changes. The answer is that unstaging a file and undoing changes are both special cases of more powerful Git operations that you have not yet seen.)<br><br></div>]]></description>
         <enclosure url="https://stackoverflow.com/questions/2530060/can-you-explain-what-git-reset-does-in-plain-english" />
         <pubDate>2017-11-16 12:09:18 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207614500</guid>
      </item>
      <item>
         <title>Restore an old version</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207615500</link>
         <description><![CDATA[<div><strong>$ git checkout 2242bd report.md</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 12:12:53 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207615500</guid>
      </item>
      <item>
         <title>Undo all the changes made</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207621359</link>
         <description><![CDATA[<div>Git command to remove all files from the staging area<br><strong>$ git reset HEAD .</strong><br>Re-set those files to their previous state<br><strong>$ git checkout -- .</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 12:36:38 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207621359</guid>
      </item>
      <item>
         <title>Git Diagram</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207626426</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/234685987/7522303d7caa109136bf8492459af7ec/Screen_Shot_2017_11_16_at_13_56_53.png" />
         <pubDate>2017-11-16 12:53:34 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207626426</guid>
      </item>
      <item>
         <title></title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207638233</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/234685987/40bacafe8adcc5be32d3025ec9a835fa/Screen_Shot_2017_11_16_at_13_56_04.png" />
         <pubDate>2017-11-16 13:24:42 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207638233</guid>
      </item>
      <item>
         <title>Git  branches</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207640527</link>
         <description><![CDATA[<div>Git list branches<br><strong>$ git branch<br></strong>Git differences btw branches<strong><br>$ git diff summary-statistics..master<br></strong>Change branch name<strong><br>$ git checkout branch-name<br></strong>Create branch<br>git checkout -b deleting-report<strong><br></strong><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 13:30:00 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207640527</guid>
      </item>
      <item>
         <title>Remove a file</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207669525</link>
         <description><![CDATA[<div>$ git rm report.txt</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 14:20:05 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207669525</guid>
      </item>
      <item>
         <title>Git merge</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207678912</link>
         <description><![CDATA[<div><strong>$ git merge summary-statistics master</strong><br>Git without edit and message<br><strong>$ git merge --no-edit -m "Merging altered report title" alter-report-title master</strong><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 14:33:48 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207678912</guid>
      </item>
      <item>
         <title>Git Clone and Working with remotes (Push/Pull)</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207705313</link>
         <description><![CDATA[<div><strong>$ git clone file:///home/thunk/repo dental<br></strong>A remote is like a browser bookmark with a name and a URL. If you are in a repository, you can list the names of its remotes using git remote.<br><br></div><h1>How can I define remotes?</h1><div>When you clone a repository, Git automatically creates a remote called origin that points to the original repository. You can add more remotes using:<br><br>***************  <strong>Add remote  ********************</strong><br><br>git remote add remote-name URL</div><pre>git remote add remote-name URL</pre><div>and remove existing ones using:<br><br></div><pre>git remote rm remote-name</pre><div><strong><br>$ git remote add thunk file:///home/thunk/repo<br><br></strong>You are in the master branch of the repository dental, which has a remote called origin. Pull all of the changes in the master branch of that remote repository into the master branch of your repository.<br><strong><br>$ git pull origin master<br>$ git push origin master<br><br>****************  Change remote  ******************<br></strong><br></div><pre>git remote -v
git remote set-url origin https://github.com/<em>USERNAME</em>/<em>REPOSITORY</em>.git
git push -u origin master</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-11-16 15:11:47 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/207705313</guid>
      </item>
      <item>
         <title>Good practices writing commits</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/229472094</link>
         <description><![CDATA[<div>subject (mandatory) =  type + title<br><br>Subjects should be no greater than 50 characters, should begin with a capital letter and <strong>do not end with a period. </strong>Use an imperative tone to describe what a commit does. <br><br>type (values): </div><ul><li><strong>feat:</strong> a new feature</li><li><strong>fix:</strong> a bug fix</li><li><strong>docs:</strong> changes to documentation</li><li><strong>style:</strong> formatting, missing semi colons, etc; no code change</li><li><strong>refactor:</strong> refactoring production code</li><li><strong>test:</strong> adding tests, refactoring test; no production code change</li><li><strong>chore:</strong> updating build tasks, package manager configs, etc; no production code change</li></ul><div><mark>\n (mandatory)</mark></div><div>body(optional):  Use the body to explain the <strong>what</strong> and <strong>why</strong> of a commit, not the how. 72 chars max. <br><mark>\n (mandatory)</mark><br>footer(optional): The footer is optional and is used to reference issue tracker IDs.</div><div><br><br></div>]]></description>
         <enclosure url="https://udacity.github.io/git-styleguide/" />
         <pubDate>2018-02-08 09:33:41 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/229472094</guid>
      </item>
      <item>
         <title>Example of git working workflow</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/229476985</link>
         <description><![CDATA[<ul><li>git branch -a // list my branches<ul><li>case1: the name of my new branch do not exist : </li></ul></li><li>git checkout -b [my new branch name] // creates new brach<ul><li>case 2: the name of my new branch is already exist but i dont have that branch on my local : </li></ul></li><li>git checkout -b [already existing branch] origin/[already existing branch]  /</li></ul><div><br>git status  // check changes<br>git add .    // if some and we want to stage them all (or we can do it individually etc.)<br>git commit -m "doc: Check the commit message to prevent error propagation"<br>git push -u [my new branch name] OR git push (if I'm already on the branch) <br>git merge --no-ff origin/[my new branch name/existing branch] // merges your branch<br><br></div>]]></description>
         <enclosure url="https://guides.github.com" />
         <pubDate>2018-02-08 09:50:32 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/229476985</guid>
      </item>
      <item>
         <title>Git unrelated stories</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/235816082</link>
         <description><![CDATA[<div>"git merge" used to allow merging two branches that have no common base by default, which led to a brand new history of an existing project created and then get pulled by an unsuspecting maintainer, which allowed an unnecessary parallel history merged into the existing project. The command has been taught <strong>not to allow this by default</strong>, with an escape hatch --allow-unrelated-histories option to be used in a rare event that merges histories of two projects that started their lives independently.<br><br><br></div>]]></description>
         <enclosure url="https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories" />
         <pubDate>2018-02-27 12:03:12 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/235816082</guid>
      </item>
      <item>
         <title>Git rebase</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/235944774</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase" />
         <pubDate>2018-02-27 15:47:58 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/235944774</guid>
      </item>
      <item>
         <title>Remove untracked files added to .ignore (.gitignore is is ignoring the untracked files)</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/252066920</link>
         <description><![CDATA[<div><br></div><pre>git rm -r --cached .
git add .
git commit -m "F untracked files"</pre>]]></description>
         <enclosure url="" />
         <pubDate>2018-04-16 10:19:31 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/252066920</guid>
      </item>
      <item>
         <title>Git objects</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/255126125</link>
         <description><![CDATA[<div>Git stores four kinds of objects in the repo: <strong>blobs</strong> (files)</div><div><strong>trees </strong>(directories)<br><strong>commits</strong> (which form a directed acyclic graph through <em>parent</em> identifiers, with each commit carrying one <em>tree</em> object, one author, one committer, its set-of-parents, and an arbitrary log message)</div><div><strong>annotated-tag objects </strong>(which have no strongly defined relationship, but every tag has exactly one target object, normally a commit).<br><br></div>]]></description>
         <enclosure url="https://stackoverflow.com/questions/41456892/labeling-marking-a-group-of-files-in-git" />
         <pubDate>2018-04-25 08:11:29 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/255126125</guid>
      </item>
      <item>
         <title>Remove staged</title>
         <author>nvmoyar</author>
         <link>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/991990410</link>
         <description><![CDATA[<pre>Remove staged without removing the actual files
git rm --cached -r .</pre><div>https://stackoverflow.com/questions/19730565/how-to-remove-files-from-git-staging-area#:~:text=to%20unstage%20all%20the%20staged%20files.&amp;text=git%20rm%20%2D%2Dcached%20%2Dr,you%20want%20to%20keep%20tracking.</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-12-06 18:53:37 UTC</pubDate>
         <guid>https://padlet.com/nvmoyar/b57jqgdqo2td/wish/991990410</guid>
      </item>
   </channel>
</rss>
