<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>tag &amp;mdash; Notes and Useful Info</title>
    <link>https://jwc.writeas.com/tag:tag</link>
    <description></description>
    <pubDate>Fri, 17 Apr 2026 00:22:09 +0000</pubDate>
    <item>
      <title>Git</title>
      <link>https://jwc.writeas.com/git?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[5 Ways to Undo Mistakes with Git: Discarding Some of Your Local Changes, Resetting a Specific File to a Previous State, Recovering a Lost Revision with the Reflog, Recovering a Deleted Branch, Moving a Commit to a Different Branch&#xA;&#xA;Removing a git commit and force pushing to remove it from history; simonw TILs&#xA;&#xA;How to push to a repo to maintain only one commit - useful if you would otherwise have a whole bunch of data-hogging commits that aren&#39;t necessary to keep. From simonw: The latest til.db file is now stored in https://github.com/simonw/til-db - every time I push a new copy of the file there I use git commit --amend to rewrite history followed by git push --force - so that repo only ever contains a single commit which is the commit that added the file. [source]&#xA;&#xA;How to change git master to main note the caveats in the thread&#xA;&#xA;How to remove a pushed commit&#xA;Committed and pushed incorrect file otd-tweets-by-mcnees (forgot the html extension).&#xA;I could have dealt with the unpushed change but was in a rush and instead went ahead and committed/pushed corrected version otd-tweets-by-mcnees.html&#xA;But later I wanted to remove that bad commit/push. Here&#39;s how I did it, using procedure from the above web page:&#xA;git revert e98adc579131244c56913e0d5afbd5ba395bc6c8&#xA;Then git status said local repo was ahead of remote by 1 and that a push was needed. So I did the git push.&#xA;The file then did not show up in the jrdmb/jrdmb github repo.&#xA;&#xA;How to Squash the First Two Commits in a Git Repository — Marius Schulz &#xA;&#xA;Github account security log&#xA;&#xA;a href=&#34;https://git-rebase.io/&#34;Learn to change history with git rebase;  git rebase in depth/a | a href=&#34;https://dev.to/duomly/tutorial-how-does-git-rebase-work-and-compare-with-git-merge-and-git-interactive-rebase-b85&#34;How does Git Rebase work and compare with Git Merge and Git Interactive Rebase/a | a href=&#34;https://www.cloudsavvyit.com/852/what-is-git-rebase-and-how-is-it-different-than-merging/&#34;What is Git Rebase and How Is it Different than Merging?/a | Change a Git Commit in the Past with Amend and Rebase Interactive - Nick Janetakis  |&#xA;Top 20 git commands and examples&#xA;caltlgin git wiki tips and commans ref&#xA;a href=&#34;https://stackoverflow.com/questions/15685074/git-clear-local-and-remote-repo-and-start-over&#34;Git: Clear local and remote repo and start over/a | a href=&#34;http://christoph.ruegg.name/blog/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit.html&#34;Git HowTo: revert commit already pushed to remote repository; delete earlier commits/a | a href=&#34;https://dev.to/lofiandcode/git-and-github-how-to-revert-a-single-file-dha&#34;Git and GitHub: How to Revert a Single File/a |&#xA;Wiki on git&#xA;a href=&#34;https://dev.to/mahithchigurupati/github-everything-you-need-to-know-2ija&#34;GitHub: Everything you need to know/a&#xA;&#xA;Git Alternatives&#xA;Launchpad&#xA;&#xA;Git articles/Tutorials&#xA;How to Host Your Blog for Free with Jekyll and GitHub Pages | How writers can use github, nice setup/config info | GitHub Project Management |&#xA;15 git commands you may not know Especially see #15 on optimizing local repo with &#39;git gc&#39;&#xA;jermity Git Notes&#xA;Glossary with Step Procs | Getting  Started | Tutorials | BitBucket 101 |&#xA;Pro Git online eBook | Learning Git online eBook |&#xA;How to place the git folder out of your working tree | !--more--&#xA;Remove sensitive data from Git history, bfg | git help: remove sensitive data from repo, bfg |&#xA;Here&#39;s How to Clean Git and Remove Untracked Files &#xA;&#xA;GitHub&#xA;GetHub Pages | GitHub Project Pages and User Pages | cjeller | &#xA;Search Syntax | GitHub API | Emoji CheatSheet |&#xA;&#xA;General&#xA;Portable version of Git for Windows&#xA;&#xA;Gists&#xA;Amit Agarwal article on Gists&#xA;Display fiddle from Gist&#xA;Constant URL for Gist after Editing | subPattern: https://gist.github.com/USERNAME/GISTID/raw/GISTFILENAME/sub&#xA;Gist API v3 | https://api.github.com/users/username/gists&#xA;&#xA;Use #hashtag in description, so you can search your gists by tags via myusername #tag&#xA;&#xA;http://gistboxapp.com supports searching, editing and labels&#xA;&#xA;http://www.gistoapp.com/  Gisto is a code snippet manager that runs on GitHub Gists and adds additional features such as searching, tagging and sharing gists while including a rich code editor. All your data is stored on GitHub and you can access it from GitHub Gists at any time with changes carrying over to Gisto.&#xA;&#xA;Build A Blog With Jekyll And GitHub Pages&#xA;&#xA;jlord code-life&#xA;&#xA;Wikis&#xA;Mastering Github Wikis &#xA;&#xA;Markdown&#xA;Markdown Basics | Cheat Sheet | Mastering Markdown | QuickRef | &#xA; a href=&#34;http://www.makeuseof.com/tag/learning-markdown-write-web-faster/&#34;Learning Markdown (MUO)/a|&#xA;Markdown to HTML online: a href=&#34;https://stackedit.io/editor&#34;StackEdit.io/a|&#xA;a href=&#34;http://dillinger.io/&#34;Dillinger.io/a|fiddle.md | &#xA;John Gruber Markdown Syntax |&#xA;&#xA;Use sub and /sub to for subscripts: Hsub2/sub0. Superscripts are \sup\ and \/sup\: esup2/sup.&#xA;&#xA;This is a code block. For inline code blocks, use a single backtick.&#xA;&#xA;Articles About BitBucket&#xA;Makeuseof: 4 reasons to use it | Lifehacker: 4 alternative to Google Code |&#xA;&#xA;Useful Tips&#xA;Bitbucket Supported Markdown | Publish Website on BitBucket | TechRepublic: Hosting Static Websites | Portmanteau: VC with BitBucket and Dropbox | Code in the Cloud with BitBucket |&#xA;a href=&#34;https://dev.to/milufranz/git-explained-tips-and-tricks-4299&#34;Git Explained: Tips and Tricks/a&#xA;&#xA;h4 id=&#34;html-stuff&#34;HTML stuff/h4&#xA;subUse code&amp;lt;sub&amp;gt;/code and code&amp;lt;/sub&amp;gt;/code for smaller-text subscripts/sub This tag is HTML, not Markdown; example usage: Hsub2/subO&#xA;xsup3/sup is an option to use instead of x^3 &#xA;xsubj/subsup3/sup &#xA;&#xA;Hashtags: #devel]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://www.sitepoint.com/5-ways-to-undo-mistakes-with-git/" rel="nofollow">5 Ways to Undo Mistakes with Git</a>: Discarding Some of Your Local Changes, Resetting a Specific File to a Previous State, Recovering a Lost Revision with the Reflog, Recovering a Deleted Branch, Moving a Commit to a Different Branch</p>

<p><a href="https://til.simonwillison.net/git/remove-commit-and-force-push" rel="nofollow">Removing a git commit and force pushing to remove it from history; simonw TILs</a></p>

<p><strong>How to push to a repo to maintain only one commit</strong> – useful if you would otherwise have a whole bunch of data-hogging commits that aren&#39;t necessary to keep. From simonw: The latest <code>til.db</code> file is now stored in <a href="https://github.com/simonw/til-db" rel="nofollow">https://github.com/simonw/til-db</a> – every time I push a new copy of the file there I use <code>git commit --amend</code> to rewrite history followed by <code>git push --force</code> – so that repo only ever contains a single commit which is the commit that added the file. <a href="https://github.com/simonw/til/issues/25#issuecomment-685310072" rel="nofollow">[source]</a></p>

<p><a href="https://twitter.com/mattkenworthy/status/1359768601700532224" rel="nofollow">How to change git master to main</a> note the caveats in the thread</p>

<p><a href="https://sethrobertson.github.io/GitFixUm/fixup.html#pushed_new_simple" rel="nofollow"><strong>How to remove a pushed commit</strong></a>
Committed and pushed incorrect file <code>otd-tweets-by-mcnees</code> (forgot the html extension).
I could have dealt with the unpushed change but was in a rush and instead went ahead and committed/pushed corrected version <code>otd-tweets-by-mcnees.html</code>
But later I wanted to remove that bad commit/push. Here&#39;s how I did it, using procedure from the above web page:
<code>git revert e98adc579131244c56913e0d5afbd5ba395bc6c8</code>
Then <code>git status</code> said local repo was ahead of remote by 1 and that a push was needed. So I did the <code>git push</code>.
The file then did not show up in the jrdmb/jrdmb github repo.</p>

<p><a href="https://mariusschulz.com/blog/how-to-squash-the-first-two-commits-in-a-git-repository" rel="nofollow">How to Squash the First Two Commits in a Git Repository — Marius Schulz </a></p>

<p><a href="https://github.com/settings/security-log" rel="nofollow"><strong>Github account security log</strong></a></p>

<p><a href="https://git-rebase.io/" rel="nofollow">Learn to change history with git rebase;  git rebase in depth</a> | <a href="https://dev.to/duomly/tutorial-how-does-git-rebase-work-and-compare-with-git-merge-and-git-interactive-rebase-b85" rel="nofollow">How does Git Rebase work and compare with Git Merge and Git Interactive Rebase</a> | <a href="https://www.cloudsavvyit.com/852/what-is-git-rebase-and-how-is-it-different-than-merging/" rel="nofollow">What is Git Rebase and How Is it Different than Merging?</a> | <a href="https://nickjanetakis.com/blog/change-a-git-commit-in-the-past-with-amend-and-rebase-interactive" rel="nofollow">Change a Git Commit in the Past with Amend and Rebase Interactive – Nick Janetakis </a> |
<a href="https://www.greengeeks.com/tutorials/article/top-20-git-commands-and-examples/" rel="nofollow">Top 20 git commands and examples</a>
<a href="https://git.fossdaily.xyz/caltlgin/wiki/src/branch/master/git.md" rel="nofollow">caltlgin git wiki tips and commans ref</a>
<a href="https://stackoverflow.com/questions/15685074/git-clear-local-and-remote-repo-and-start-over" rel="nofollow">Git: Clear local and remote repo and start over</a> | <a href="http://christoph.ruegg.name/blog/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit.html" rel="nofollow">Git HowTo: revert commit already pushed to remote repository; delete earlier commits</a> | <a href="https://dev.to/lofiandcode/git-and-github-how-to-revert-a-single-file-dha" rel="nofollow">Git and GitHub: How to Revert a Single File</a> |
<a href="https://htyp.org/Git" rel="nofollow">Wiki on git</a>
<a href="https://dev.to/mahithchigurupati/github-everything-you-need-to-know-2ija" rel="nofollow">GitHub: Everything you need to know</a></p>

<p><strong>Git Alternatives</strong>
<a href="https://help.launchpad.net/Code/QuickStart" rel="nofollow">Launchpad</a></p>

<p><strong>Git articles/Tutorials</strong>
<a href="https://www.maketecheasier.com/host-blog-for-free-jekyll-github-pages/" rel="nofollow">How to Host Your Blog for Free with Jekyll and GitHub Pages</a> | <a href="https://www.howtogeek.com/438252/how-writers-can-use-github-to-store-their-work/" rel="nofollow">How writers can use github, nice setup/config info</a> | <a href="https://www.maketecheasier.com/get-started-with-github-project-management/" rel="nofollow">GitHub Project Management</a> |
<a href="https://dev.to/zaiste/15-git-commands-you-may-not-know-4a8j" rel="nofollow">15 git commands you may not know</a> Especially see #15 on optimizing local repo with &#39;git gc&#39;
<a href="https://jermity.bitbucket.io/gitnotes.htm" rel="nofollow">jermity Git Notes</a>
<a href="https://www.atlassian.com/git/glossary" rel="nofollow">Glossary with Step Procs</a> | <a href="http://alistapart.com/article/get-started-with-git" rel="nofollow">Getting  Started</a> | <a href="https://www.atlassian.com/git/tutorials" rel="nofollow">Tutorials</a> | <a href="https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+101" rel="nofollow">BitBucket 101</a> |
<a href="https://git-scm.herokuapp.com/book/en/v2" rel="nofollow">Pro Git online eBook</a> | <a href="http://www.git-tower.com/learn/ebook/command-line/basics/what-is-version-control#start" rel="nofollow">Learning Git online eBook</a> |
<a href="http://rakhesh.com/coding/how-to-move-separate-the-git-folder-out-of-your-working-tree/" rel="nofollow">How to place the git folder out of your working tree</a> | 
<a href="https://dev.to/edmondso006/removing-sensitive-data-from-git-history-5g63" rel="nofollow">Remove sensitive data from Git history, bfg</a> | <a href="https://help.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository" rel="nofollow">git help: remove sensitive data from repo, bfg</a> |
<a href="https://www.muo.com/git-clean/" rel="nofollow">Here&#39;s How to Clean Git and Remove Untracked Files </a></p>

<p><strong>GitHub</strong>
<a href="https://guides.github.com/features/pages/" rel="nofollow">GetHub Pages</a> | <a href="https://help.github.com/en/articles/user-organization-and-project-pages" rel="nofollow">GitHub Project Pages and User Pages</a> | <a href="https://discuss.write.as/t/searching/768/8" rel="nofollow">cjeller</a> |
<a href="https://help.github.com/articles/searching-code/" rel="nofollow">Search Syntax</a> | <a href="https://developer.github.com/v3/" rel="nofollow">GitHub API</a> | <a href="http://www.emoji-cheat-sheet.com/" rel="nofollow">Emoji CheatSheet</a> |</p>

<p><strong>General</strong>
<a href="https://git-scm.com/download/win" rel="nofollow">Portable version of Git for Windows</a></p>

<p><strong>Gists</strong>
<a href="http://www.labnol.org/internet/github-gist-tutorial/28499/" rel="nofollow">Amit Agarwal article on Gists</a>
<a href="http://doc.jsfiddle.net/use/gist_read.html" rel="nofollow">Display fiddle from Gist</a>
<a href="http://stackoverflow.com/questions/12522539/github-gist-editing-without-changing-url" rel="nofollow">Constant URL for Gist after Editing</a> | <sub>Pattern: <code>https://gist.github.com/&lt;USER_NAME&gt;/&lt;GIST_ID&gt;/raw/&lt;GIST_FILE_NAME&gt;</code></sub>
<a href="https://developer.github.com/v3/gists/" rel="nofollow">Gist API v3</a> | <a href="https://api.github.com/users/username/gists" rel="nofollow">https://api.github.com/users/username/gists</a></p>

<p>Use <a href="https://jwc.writeas.com/tag:hashtag" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">hashtag</span></a> in description, so you can search your gists by tags via myusername <a href="https://jwc.writeas.com/tag:tag" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">tag</span></a></p>

<p><a href="http://gistboxapp.com" rel="nofollow">http://gistboxapp.com</a> supports searching, editing and labels</p>

<p><a href="http://www.gistoapp.com/" rel="nofollow">http://www.gistoapp.com/</a>  Gisto is a code snippet manager that runs on GitHub Gists and adds additional features such as searching, tagging and sharing gists while including a rich code editor. All your data is stored on GitHub and you can access it from GitHub Gists at any time with changes carrying over to Gisto.</p>

<p><a href="http://www.smashingmagazine.com/2014/08/01/build-blog-jekyll-github-pages/" rel="nofollow">Build A Blog With Jekyll And GitHub Pages</a></p>

<p><a href="https://github.com/jlord/hello-world/blob/master/code-life.md" rel="nofollow">jlord code-life</a></p>

<p><strong>Wikis</strong>
<a href="https://guides.github.com/features/wikis/" rel="nofollow">Mastering Github Wikis</a></p>

<p><strong>Markdown</strong>
<a href="https://help.github.com/articles/markdown-basics/" rel="nofollow">Markdown Basics</a> | <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" rel="nofollow">Cheat Sheet</a> | <a href="https://guides.github.com/features/mastering-markdown/" rel="nofollow">Mastering Markdown</a> | <a href="https://en.support.wordpress.com/markdown-quick-reference/" rel="nofollow">QuickRef</a> |
 <a href="http://www.makeuseof.com/tag/learning-markdown-write-web-faster/" rel="nofollow">Learning Markdown (MUO)</a>|
Markdown to HTML online: <a href="https://stackedit.io/editor" rel="nofollow">StackEdit.io</a>|
<a href="http://dillinger.io/" rel="nofollow">Dillinger.io</a>|<a href="https://fiddle.md" rel="nofollow">fiddle.md</a> |
<a href="https://daringfireball.net/projects/markdown/syntax" rel="nofollow">John Gruber Markdown Syntax</a> |</p>

<p>Use <code>&lt;sub&gt;</code> and <code>&lt;/sub&gt;</code> to for subscripts: H<sub>2</sub>0. Superscripts are &lt;sup&gt; and &lt;/sup&gt;: e<sup>2</sup>.</p>

<pre><code>This is a code block. For inline code blocks, use a single backtick.
</code></pre>

<p><strong>Articles About BitBucket</strong>
<a href="http://www.makeuseof.com/tag/love-github-4-reasons-why-you-should-host-your-code-on-bitbucket/" rel="nofollow">Makeuseof: 4 reasons to use it</a> | <a href="http://lifehacker.com/the-best-alternatives-to-google-code-for-your-programmi-1691688947" rel="nofollow">Lifehacker: 4 alternative to Google Code</a> |</p>

<p><strong>Useful Tips</strong>
<a href="https://bitbucket.org/tutorials/markdowndemo" rel="nofollow">Bitbucket Supported Markdown</a> | <a href="https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket" rel="nofollow">Publish Website on BitBucket</a> | <a href="http://www.techrepublic.com/article/host-static-websites-for-free-with-bitbuckets-git-feature/" rel="nofollow">TechRepublic: Hosting Static Websites</a> | <a href="http://www.portmanteaudesigns.com/blog/2015/01/20/version-control-for-beginners-bitbucket-dropbox-coda2/" rel="nofollow">Portmanteau: VC with BitBucket and Dropbox</a> | <a href="https://blog.bitbucket.org/2015/02/11/coding-in-the-cloud-with-bitbucket/" rel="nofollow">Code in the Cloud with BitBucket</a> |
<a href="https://dev.to/milu_franz/git-explained-tips-and-tricks-4299" rel="nofollow">Git Explained: Tips and Tricks</a></p>

<p><h4 id="html-stuff" id="html-stuff">HTML stuff</h4>
<sub>Use <code>&lt;sub&gt;</code> and <code>&lt;/sub&gt;</code> for smaller-text subscripts</sub> This tag is HTML, not Markdown; example usage: H<sub>2</sub>O
x<sup>3</sup> is an option to use instead of x^3
x<sub>j</sub><sup>3</sup></p>

<p>Hashtags: <a href="https://jwc.writeas.com/tag:devel" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">devel</span></a></p>
]]></content:encoded>
      <guid>https://jwc.writeas.com/git</guid>
      <pubDate>Wed, 03 Oct 2018 04:00:41 +0000</pubDate>
    </item>
  </channel>
</rss>