frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tell HN: Laravel Sheets

1•petervandijck•1m ago•0 comments

AI avatar glitches when asked to repeat "A" 100 times [video]

https://www.reddit.com/r/singularity/comments/1y7dknw/find_out_if_the_girl_youre_dating_online_is/
1•adererror•3m ago•0 comments

Pencils Down – AI agents that stop at every phase for human review

https://github.com/jamiemitchellconsultants/pencils-down
1•jamie_m_•6m ago•1 comments

PP-1 Turns Your iPhone into a Teenage Engineering OP-1 Inspired Pocket Studio

https://www.synthtopia.com/content/2026/12/01/pp-1-turns-your-iphone-into-a-teenage-engineering-o...
1•austinallegro•7m ago•0 comments

Nami – a simple alternative to Nix, devbox, devshell

https://namios.dev/
1•immij•8m ago•0 comments

RSI Bench: Measuring Whether AI Agents Can Improve Themselves

https://labs.scale.com/blog/rsi-bench
1•matt_d•8m ago•0 comments

Anatomy of an AI Kill Chain

https://ai-killchain.airwars.org
2•tastyface•15m ago•0 comments

Show HN: Production eBPF and XDP Tracing Toolkit for Linux Kernel Performance

https://github.com/grfdsasdvef/awesome-ebpf-linux-tracing
1•snowdensay•17m ago•0 comments

Up to 211% faster matrix multiplication on modern Apple Silicon

https://github.com/davedx/mlx-tachyon
1•davedx•18m ago•0 comments

SmartAutoFill AI Form Filler for repetitive web forms

https://smartautofill.com/
1•rikies•20m ago•0 comments

6 days ago: I have a sneaking suspicion that OpenAI is nearing a break in ECC

https://twitter.com/cass_on_mars/status/2126012218609213456
1•gdeglin•21m ago•1 comments

A common flaw in MCP server authentication may allow account takeovers

https://salt.security/blog/registered-is-not-trusted-one-click-account-takeovers-through-mcp-oauth
3•ynvb•23m ago•0 comments

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios

https://github.com/welcome-to-the-sunny-side/misa77/tree/main
1•nonadhocproblem•26m ago•0 comments

Fearmongering

https://en.wikipedia.org/wiki/Fearmongering
5•SweetSoftPillow•29m ago•1 comments

CiteGuard: Zero-dependency CLI and MCP server to audit academic citations

https://github.com/Lukecele/citeguard-mcp
1•lcelebrano•32m ago•0 comments

Local-first search across your workspace, built for humans and AI agents

https://github.com/zvec-ai/zvec-grep
1•mooreds•33m ago•0 comments

Show HN: Screen Size Comparison – Will two monitors fit on my desk?

https://screensizecomparison.org/tools/monitor-desk-layout/
1•ht7850142•33m ago•0 comments

Jeff Dean: we built our own version control system

https://twitter.com/JeffDean/status/2128319771779473409
1•tosh•34m ago•0 comments

Show HN: Free Short Interest API

https://www.quotelinks.com/api/short-interest/
1•chartwidgets•36m ago•0 comments

Ask HN: Legal to have two Claude Ultra subscriptions?

1•apt-apt-apt-apt•39m ago•1 comments

NSA and IETF, part 3 (2025)

https://blog.cr.yp.to/20251123-dodging.html#
1•cowlevel•42m ago•0 comments

Tocharian Languages

https://en.wikipedia.org/wiki/Tocharian_languages
1•janandonly•42m ago•0 comments

QA-Shield – nightly website checks that explain what broke in plain English

https://getqashield.com/blog/why-sites-break-at-3am
2•milivojj•46m ago•0 comments

The software industry was built on a capability gap that no longer exists

https://blog.con.rs/2026/12/02/capability-gap.html
2•mooreds•47m ago•0 comments

Common Blanket Octopus

https://en.wikipedia.org/wiki/Common_blanket_octopus
2•thunderbong•50m ago•0 comments

A.I. 'Makes Nuclear Weapons Look Like Nothing' [video]

https://www.youtube.com/watch?v=A_156w0aYtU
1•mooreds•50m ago•1 comments

Change Ringing

https://en.wikipedia.org/wiki/Change_ringing
2•tianqi•50m ago•0 comments

With a Counterexample, Mathematicians Show That It's an Unfair World

https://www.quantamagazine.org/with-a-counterexample-mathematicians-show-that-its-an-unfair-world...
2•nsoonhui•54m ago•0 comments

Design Principles for Precision Mechatronics

https://www.dspe.nl/knowledge/dppm-cases/
1•pillars•1h ago•0 comments

Perplexity caught an autonomous AI hacker trying to steal tokens

https://techcrunch.com/2026/12/02/perplexity-caught-an-autonomous-ai-hacker-trying-to-steal-tokens/
1•pryanshu89•1h 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".