frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Soatok's Informal Guide to Threat Models

https://soatok.blog/2026/06/30/soatoks-informal-guide-to-threat-models/
1•birdculture•31s ago•0 comments

The Case for Sustainability Metrics (Or Don't Be Kennan Frost)

https://pawelbrodzinski.substack.com/p/the-case-for-sustainability-metrics
1•flail•49s ago•0 comments

They Don't Know How It Works

https://moai.studio/blog/posts/they-dont-know-how-it-works.html
1•ionwake•2m ago•0 comments

Abundance of Intelligence

https://magzimof.com/abundance-of-intelligence/
1•shaimagz•2m ago•0 comments

Mark Zuckerberg says a Meta cloud computing business 'definitely on the table'

https://www.cnbc.com/2026/05/27/mark-zuckerberg-says-meta-starting-cloud-business-on-the-table.html
1•BiraIgnacio•3m ago•0 comments

Watching for File Changes on macOS

https://alexwlchan.net/2026/watch-files-on-macos/
1•surprisetalk•3m ago•0 comments

CNN Weather

https://www.cnn.com/interactive/new_business/weather_app/index.html
1•ChaseRensberger•4m ago•0 comments

Monlite: The complete back end for AI agents – in one file

https://github.com/qataruts/monlite
2•emadjumaah•7m ago•0 comments

Meta looks to turn excess AI compute into cash

https://techcrunch.com/2026/07/01/meta-like-spacex-looks-to-turn-excess-ai-compute-into-cash/
2•bogdiyan•7m ago•0 comments

Show HN: Pinch-to-zoom tree navigation

https://www.delopsu.com/pinch-to-zoom-tree-navigation
2•delopsu•8m ago•1 comments

Mageia 10 keeps the 32-bit Linux flame alive

https://www.theregister.com/os-platforms/2026/06/29/mageia-10-keeps-the-32-bit-linux-flame-alive/...
1•Qem•8m ago•0 comments

FFmpeg 9.1's new AAC encoder

https://news.ycombinator.com/
2•ledoge•8m ago•1 comments

Prevented Mortality and Greenhouse Gas Emissions from Nuclear Power [pdf]

https://www.giss.nasa.gov/pubs/docs/2013/2013_Kharecha_kh05000e.pdf
1•rbanffy•10m ago•0 comments

Show HN: Osiris JSON generate private infrastructure snapshot without AI or SaaS

https://github.com/osirisjson/osiris-producers
1•skhell•11m ago•0 comments

Show HN: Loma – a self-hosted shared AI layer for your whole company

https://github.com/plotlinelabs/loma
1•tadarsh•11m ago•0 comments

This Cell Feeds, Grows and Reproduces. and It's Manmade

https://www.nytimes.com/interactive/2026/07/01/science/spudcells-synthetic-cell.html
2•quux•12m ago•1 comments

Cory Doctorow: There are reasons to be optimistic about the AI bubble bursting [video]

https://www.youtube.com/watch?v=r03DPWGIxfY
2•dgellow•13m ago•0 comments

Creator Left Furious After Man Uses AI to Turn Her Book Idea into Content

https://thenerdstash.com/colorado-creator-left-furious-after-man-uses-ai-to-turn-her-book-idea-in...
4•dentemple•15m ago•1 comments

Discovering Concept-Editing Algorithms with LLM Agents

https://dmodel.ai/concept-erasure/
3•mattmarcus•16m ago•0 comments

Despite its best efforts, Iran won't be able to toll the Strait of Hormuz

https://theconversation.com/despite-its-best-efforts-iran-wont-be-able-to-toll-the-strait-of-horm...
2•thisislife2•16m ago•0 comments

The C to Rust migration book

https://mainmatter.com/c-to-rust-migration-book/
2•LukeMathWalker•18m ago•0 comments

I Like Small Keyboards

https://samsm.ch/small-keyboards/
1•surprisetalk•18m ago•0 comments

Your Site, Your Rules

https://blog.cloudflare.com/content-independence-day-ai-options/
2•soheilpro•18m ago•0 comments

Trust your compiler: Modern C++

https://categorica.io/blog/2026.06.29_trust_your_compiler/
2•foxhill•18m ago•0 comments

Artist Corporations Became Law

https://www.ystrickler.com/how-artist-corporations-became-law-2/
2•inchevd•18m ago•0 comments

Gemini is better than search because Google enshittified search

https://pluralistic.net/2026/06/29/arsonist-firefighters/
3•hn_acker•19m ago•0 comments

Why Weather Forecasts Have Seemed So Inaccurate Lately

https://gizmodo.com/heres-why-weather-forecasts-have-seemed-so-inaccurate-lately-2000779436
2•pulisse•19m ago•1 comments

Using network namespaces to discover how Claude Code scrapes

https://patrickmccanna.net/inspecting-claude-codes-network-traffic-with-linux-namespaces-and-mitm...
1•0o_MrPatrick_o0•19m ago•0 comments

Monetization Gateway

https://blog.cloudflare.com/monetization-gateway/
2•soheilpro•19m ago•0 comments

Show HN: Onda, an internet radio TUI with stream quality selection

https://github.com/pedrosousa13/onda
1•pedrosousa•20m ago•1 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".