frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Adapt or Perish: What Mathematicians Must Learn from Software Engineers

https://medium.com/@b1nj0y/the-misalignment-is-within-why-mathematics-must-embrace-the-ai-paradig...
1•b1nj0y•59s ago•0 comments

Mastering Layout Engines in Graphviz: Dot vs. Neato vs. Twopi vs. Circo

https://guides.visual-paradigm.com/mastering-graphviz-layout-engines-dot-neato-twopi-circo/
1•vismit2000•4m ago•0 comments

Linux from Scratch

https://www.linuxfromscratch.org/
1•sippingabonedry•7m ago•0 comments

A Faster Approach to Ethereum Wallet Activity Patterns and Transaction Summaries

https://chainledgerai.io/blog/beyond-bigquery-a-faster-approach-to-ethereum-wallet-activity-patte...
1•oculix-official•9m ago•0 comments

Streamlining Your Strategy: The Power of Automated Real Estate Descriptions

https://propdescai.io/blog/streamlining-your-strategy-the-power-of-automated-real-estate-descript...
1•oculix-official•11m ago•0 comments

Archkeel – coding agents declare architecture changes before they submit

https://github.com/rapiddweller/archkeel
1•ake2l•11m ago•0 comments

The Three Lives of Clausewitz: How Anglo-American Strategists Remade "On War"

https://smallwarsjournal.com/2026/07/21/three-lives-of-clausewitz-on-war/
1•bryanrasmussen•13m ago•1 comments

The Butlerian Secession

https://the-human-alliance.org/
1•tcorcos•14m ago•0 comments

Shuffling Is Not Enough: Breaking Permutation-Based Model Confidentiality

https://arxiv.org/abs/2609.12911
1•sbulaev•15m ago•0 comments

We Automate KiCad PCB Routing

https://autocuro.com/blog/how-we-automate-kicad-pcb-routing
1•teleforce•16m ago•0 comments

KiCad Routing Tools

https://github.com/drandyhaas/KiCadRoutingTools
1•teleforce•16m ago•0 comments

See how well you know the sizes of things

https://playdaily.org/size-it-up
4•Hemmaamlin•18m ago•0 comments

How to Build a Practical Household Bike Generator

https://solar.lowtechmagazine.com/2022/03/how-to-build-a-practical-household-bike-generator/
1•fosco•18m ago•1 comments

Superhuman acquires YC-backed notetaker Fathom

https://techcrunch.com/2026/09/14/superhuman-acquires-yc-backed-notetaker-fathom-as-productivity-...
1•doppp•27m ago•0 comments

Ask HN: How to Protect Your Brand Before AI Copies It?

1•soltanov•27m ago•0 comments

Europe must build own AI, says ECB's Lagarde

https://www.theguardian.com/technology/2026/sep/14/europe-ai-datacentres-growth-us-china-ecb-chri...
1•FearNotDaniel•27m ago•2 comments

Let Go of the Wheel – Claude Our Lord

https://claudeourlord.com/
1•yippee0000•27m ago•0 comments

Confessions of an Unrepentant Slop Snob

https://charity.wtf/p/confessions-of-an-unrepentant-slop
1•backlit4034•28m ago•0 comments

Rethinking skills and prompts for GPT-6 Astra

https://developers.openai.com/blog/rethinking-skills-and-prompts-for-gpt-6-astra
1•soltanov•28m ago•0 comments

Clonaid (2002)

https://en.wikipedia.org/wiki/Clonaid
1•zeckalpha•29m ago•0 comments

KelvinAI

https://kelvinai.ai/
1•lzyuan1006•33m ago•0 comments

Discrete Beckmann Transport Models for One-Step Language Modeling and Reasoning

https://arxiv.org/abs/2609.15903
1•E-Reverance•33m ago•0 comments

Oil Executives Say the Great Fuel Crisis Is Here

https://www.wsj.com/business/energy-oil/oil-executives-say-the-great-fuel-crisis-is-here-b6b32030
18•toomuchtodo•33m ago•11 comments

Bounded Ratios for Lorentzian Polynomials

https://arxiv.org/abs/2609.05341
2•soltanov•34m ago•1 comments

US confirms for first time it has deployed space weapons

https://www.bbc.com/news/articles/ck790xg41ygro
3•harporoeder•34m ago•0 comments

China hit back at Anthropic CEO's call to curb China's AI development

https://www.youtube.com/watch?v=BIM5G5kFYAg
2•LebToki•35m ago•0 comments

Researchers find Apple Pay, Visa contactless hack

https://www.bbc.com/news/technology-58719891
2•harambae•37m ago•0 comments

The Zuiderzee Project

https://lorentz.leidenuniv.nl/history/zuiderzee/zuiderzee.html
1•nill0•39m ago•0 comments

Crof.ai Was Caught Misrepresenting Models, Shut Down

https://reddit.com/r/SillyTavernAI/comments/1wgkagq/crofai_model_provider_just_shut_down_fraudule...
2•monksy•40m ago•0 comments

Crumb Advanced Circuit Simulator

https://store.steampowered.com/news/app/2198800/view/680761125088789335
1•starkparker•40m 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".