frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Game Boy Port of Snake in Assembly

https://www.4rknova.com//blog/2026/02/01/gb-snake
1•ibobev•54s ago•0 comments

ZX Spectrum System Tour: Text Mode

https://bumbershootsoft.wordpress.com/2026/05/30/zx-spectrum-system-tour-text-mode/
1•ibobev•1m ago•0 comments

Monotonic Collections: middle ground between immutable and mutable (2025)

https://neilmadden.blog/2025/11/11/monotonic-collections-a-middle-ground-between-immutable-and-fu...
1•mooreds•1m ago•0 comments

Microsoft says it will not pursue security researchers after zero-day backlash

https://therecord.media/microsoft-says-it-will-not-pursue-security-researchers-disclosure
1•tcp_handshaker•1m ago•0 comments

Salesforce Signs Definitive Agreement to Acquire Contentful

https://www.salesforce.com/news/stories/salesforce-signs-definitive-agreement-to-acquire-contentf...
1•saos•2m ago•0 comments

Remembering Dotcom, Pondering LLMs

https://www.datagubbe.se/dhabi/
1•ibobev•2m ago•0 comments

Show HN: Zatron – Encrypted semantic search, 98% quality, 8x faster than FHE

https://github.com/zahraarmantech/ZATRON
1•zahraarman•2m ago•0 comments

What to build before the EU AI Act deadline

https://www.cerbos.dev/blog/authorization-for-ai-agents-what-to-build-before-eu-ai-act-deadline
1•mooreds•2m ago•0 comments

Google, Anthropic, and Nvidia Just Made AI Permissions the Real Risk

https://blog.keryxsolutions.com/p/google-anthropic-and-nvidia-just
1•kdb1008•3m ago•0 comments

Tech Whistleblower: You Only Have 3 Years Left Before It Hits – Mo Gawdat [video]

https://www.youtube.com/watch?v=RwlgFC6S-OE
1•danielmorozoff•5m ago•0 comments

A Junction Efficiency Metric: Vehicles per Square Meter per Minute

https://josh.works/vehicles-per-sq-meter-per-minute
1•ZacnyLos•5m ago•0 comments

How did professional workplaces become places of such soulless work?

https://aeon.co/essays/what-made-law-into-a-white-collar-sweatshop-in-the-1980s
1•nivter•7m ago•0 comments

What to Do as the World Falls Apart: A Framework for Action

https://natehagens.substack.com/p/essay-what-to-do-as-the-world-falls
1•speckx•7m ago•0 comments

Age Verification for Social Media

https://mullvad.net/en/blog/age-verification-for-social-media-the-beginning-of-the-end-for-a-free...
1•maybevain•10m ago•1 comments

Constraints Breed Discipline

https://blainsmith.com/essays/constraints-breed-discipline/
1•meysamazad•12m ago•0 comments

What Is Airbnb For, Exactly?

https://www.nytimes.com/2026/05/31/business/airbnb-brian-chesky.html
1•thm•14m ago•0 comments

Nemotron 3 Ultra: high-speed, open weights, 550B params

https://artificialanalysis.ai/articles/nvidia-nemotron-3-ultra-launch-announced
1•cmrdporcupine•15m ago•0 comments

Anthropic offers EU access to Mythos

https://www.ft.com/content/f88d62e3-5b67-4aed-ad69-6f38b62559b3
2•thm•15m ago•0 comments

Ask HN: Anyone else seeing serious degradation in DX with Opus 4.8?

1•mesmertech•16m ago•0 comments

AI isn't a value-add for software; software is a value-add for AI

https://brianguthrie.com/p/ai-isnt-a-value-add-for-software-software-is-a-value-add-for-ai/
1•bguthrie•17m ago•0 comments

Getting Hired and Hiring Are Both Broken (and the Fix Is the Same)

https://alexoppenheimer.substack.com/p/getting-hired-and-hiring-are-both
2•crescit_eundo•18m ago•0 comments

The Inner Loop, Solve or Predict

https://atomsfrontier.substack.com/p/the-inner-loop-solve-or-predict
1•jpatel3•18m ago•0 comments

Show HN: UQLM – Closed-book hallucination detection with UQ

https://github.com/cvs-health/uqlm
2•virenbajaj•19m ago•1 comments

After being shut down by Blizzard, TurtleWow will make their own MMO

https://www.pcgamer.com/games/world-of-warcraft/after-being-shut-down-by-blizzard-one-of-wows-big...
2•HelloUsername•21m ago•0 comments

Brûler des tokens n'est pas travailler: Amazon ferme son classement IA interne

https://next.ink/brief-article/bruler-des-tokens-nest-pas-travailler-amazon-ferme-son-classement-...
1•rodrigo975•21m ago•0 comments

What AMQP compatibility means for a local Azure emulator

https://topaz.thecloudtheory.com/blog/amqp-compatibility-local-azure-emulator/
1•kamilmrzyglod•23m ago•0 comments

Show HN: Rux – A Programming Language Built Without LLVM

https://rux-lang.dev/blog/language-without-llvm
1•musicvano•24m ago•0 comments

Show HN: Zenzic – A strict, heuristic-free Markdown static analyzer

https://zenzic.dev/
2•PythonWoods•24m ago•0 comments

How to Make a Hyperlink

https://incoherency.co.uk/blog/stories/hyperlink.html
1•surprisetalk•25m ago•0 comments

The Last Dynasty: Ancient Egypt from Alexander the Great to Cleopatra

https://egypt-museum.com/the-last-dynasty-ancient-egypt-from-alexander-the-great-to-cleopatra/
1•mooreds•26m ago•0 comments
Open in hackernews

Git Commands That Cover 90% of a Developer's Daily Workflow

https://jsdev.space/15-git-commands/
29•javatuts•1y ago

Comments

epmatsw•1y ago
restore and maybe switch are the two missing ones I think. Rebase for me, but that’s preference. Cherry-pick too.
rentonl•1y ago
my co-workers used to think I was an expert in git. In reality, they memorized 7 commands while I memorized 15
hbogert•1y ago
i memorized that a commit tree is a ordered set of patches. Everything goes from there.
Areibman•1y ago
In similar fashion, this site has saved me countless hours fixing common git issues https://ohshitgit.com
the__alchemist•1y ago
I need to alias:

  git add .
  git commit -am "descriptive name"
  git push

to:

  git sync "descriptive name"
horsawlarway•1y ago
personally - skip the 'git add .'

It's a pretty terrible habit to get into, and will (not can - will) cause all sorts of headaches. From minor ones like personal editor configs getting dumped into the projects, all the way up to major ones like secrets ending up in your git history.

If you want something close, but much better, do something like:

    if [[ -n $(git ls-files --others --exclude-standard) ]]; then
        echo "There are untracked files.  Please add, remove, or ignore them."
    else
        git commit -am "descriptive name"
        git push
    fi
the__alchemist•1y ago
I see your point, but find it worth it for convenience. Ultimately git is a tool I use to get the job done, and I want it out of the way. 99% of the time, I just want to sync my project, which doesn't only mean edits to existing files.
open-paren•1y ago
How about `git add --patch -all` to make it interactive? I have that aliased to `gap` and it is probably my most used git command.
cholantesh•1y ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•1y ago
I'd like to suggest also mentioning `git add -p` (--prompt). It's very helpful for just adding changes relevant to the commit
nickcw•1y ago
No `git rebase`?

Here are my stats for my last 300 or so git commands from my history

    $ history | grep git | awk '{print $3}' | sort | uniq -c | sort -rn

     71 log
     44 show
     34 diff
     26 co # alias for checkout
     24 cherry-pick
     23 status
     18 brs # alias for branch -v --sort=-committerdate
     13 rebase
     11 commit
     11 add
      8 push
      4 archive
      3 reset
      2 pull
      1 grep
      1 checkout
      1 br
Been doing lots of tricky merges recently hence all the cherry-picks! Not normally such a large part of my workflow.
mercer•1y ago
For me, I generally don't go far beyond the commands in the article, but I /do/ make a lot of use of git rebase -i in my branches.
karmakaze•1y ago
Maybe not essential, but reflog is invaluable.

I also like to separate fetch from pull (fetch + merge).

foobarkey•1y ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•1y ago
Both are essential.
realaleris149•1y ago
There are other commands?
incomplete•1y ago
also gonna echo the same sentiment: where's rebase? :)

two other git log commands i find to be insanely useful are:

alias hlog='git log --date-order --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

and:

alias alog='git log --date-order --all --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

this is great when working in a repo w/a main "prod" branch that you don't commit to directly, but instead commit to "staging" or "dev". alog shows you the entire repo's history for all branches, and hlog is just the graph of the non-pushable branches (plus all feature branches).

hbogert•1y ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•1y ago
It missed "git switch" and "git restore".