TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What are your favorite hacker tips?

1 pointsby Crazyontapabout 5 years ago
Here is mine. To backup my work, I&#x27;ve created a bitbucket account with a mercurial(hg) repo for the root work folder (with many projects inside it).<p>So now my backup is 100% free, very fast and it follows the `.hgignore` file (like &#x27;.gitignore&#x27;) which allows me to exclude folders like `node_modules&#x2F;`, &#x27;vendor&#x2F;&#x27;, &#x27;.git&#x27;, etc.<p>This way I&#x27;m using git for my projects and mercurial for the backup (git doesn&#x27;t work on the root folder because it thinks my projects are git sub-modules). This is just as good as using Dropbox or rsync or anything else for backup:<p><pre><code> cd &#x2F;home&#x2F;mike&#x2F;projects &amp;&amp; hg add &amp;&amp; hg commit -m &quot;backup `date`&quot; &amp;&amp; hg push &amp;&amp; hg status --rev -2:-1` </code></pre> Now please share your tip!

no comments

no comments