frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Britain's New World of Tobacco (2017)

https://www.historytoday.com/archive/feature/britains-new-world-tobacco
1•benbreen•1m ago•0 comments

The Birth and Reverb of Friendship (2025)

https://sive.rs/brf
1•Michelangelo11•3m ago•0 comments

Ask HN: Do we need a stronger process for vetting code?

2•zaksa•5m ago•0 comments

Garfield Comics

https://16-bits.org/garfield/?s=5702
2•andsoitis•6m ago•0 comments

More on an Internal OpenAI Model Hacking into HuggingFace

https://thezvi.substack.com/p/more-on-an-internal-openai-model
1•Michelangelo11•7m ago•0 comments

Fasttracker II clone in C using SDL 2

https://16-bits.org/ft2.php
1•andsoitis•8m ago•0 comments

Show HN: Game Boy on the Beam – A DMG Emulator in Pure Elixir

https://gb-dmg.live/
1•douglascorrea•12m ago•0 comments

Introduction to ScreamTracker 3.21 [video]

https://www.youtube.com/watch?v=pPK7s8aC3kg
1•andsoitis•18m ago•0 comments

Equities surpass real estate as top US wealth driver for first time since WW2

https://www.reuters.com/business/finance/equities-surpass-real-estate-top-us-wealth-driver-first-...
4•littlexsparkee•19m ago•0 comments

Show HN: Discord-delete – Bulk-delete Discord messages from your data export

https://github.com/DatCodeMania/discord-delete
1•DatCodeMania•20m ago•1 comments

iFacts Exposes 21,000 Sensitive Files of South African Citizens

https://write-ups.security-chu.com/2026/07/iFacts-Exposes-21000-Sensitive-Files-of-South-African-...
1•news_rt•21m ago•0 comments

Doom Using Regular Expressions

https://4rh1t3ct0r7.github.io/doom-regex/
2•Buildstarted•22m ago•0 comments

Ponytail Skill for Claude Code: Does It Cut Tokens

https://blog.jetbrains.com/ai/2026/07/ponytail-skill-claude-tested/
2•ankitg12•22m ago•1 comments

Sam Altman says people don't want an AI to act as CEO

https://www.businessinsider.com/sam-altman-ai-ceo-humans-work-future-2026-7
3•vrganj•24m ago•3 comments

OpenAI's rogue agent compromised a customer at a second tech firm

https://www.reuters.com/business/openais-rogue-agent-compromised-an-account-second-tech-firm-sour...
3•juunge•26m ago•0 comments

Advanced Codeowners Patterns to Kill Review Fatigue

https://gitdash.dev/blog/advanced-codeowners-patterns-review-automation
1•ankitg12•26m ago•0 comments

The Noonday Devil

https://porticoquarterly.com/book/the-noonday-devil/
1•lermontov•26m ago•0 comments

Tinycast – a tiny, native macOS launcher

https://abue-ammar.github.io/tinycast/
1•xiaoape•26m ago•0 comments

ICE Arrests Surge at Airports arresting spouses of American tech workers

https://www.nytimes.com/2026/07/28/us/ice-arrests-airports-visa-overstay.html
3•Alien1Being•26m ago•0 comments

eBay agreed to pay $50M to couple sent cockroaches, bloody pig mask

https://www.clickondetroit.com/business/2026/07/28/ebays-agreed-to-pay-nearly-50-million-to-coupl...
1•Alien1Being•31m ago•0 comments

Headroom cut 39% of my tokens and raised my Claude bill

https://brandonbarker.me/writing/headroom-fewer-tokens-bigger-bill
3•ProjectBarks•31m ago•0 comments

Claude Mythos Preview Finds Vulnerability in Weakened Form of AES

https://www.nytimes.com/2026/07/28/us/politics/anthropic-ai-encryption-security-aes.html
1•theCricketer•31m ago•0 comments

AT1C is an open protocol for cryptographically verifiable human authorisation

https://github.com/at1c-protocol/at1c-protocol-official/blob/main/docs/README.md
1•1obituary•34m ago•0 comments

VJamm 2 Coldcut set rundown [video]

https://www.youtube.com/watch?v=II_2KKYlEMQ
1•gregsadetsky•34m ago•0 comments

Show HN: Self-hosted AI gateway – MCP, budget, PII, smart router, fallback

https://github.com/ilter-ai/ilter
1•ykocaman•36m ago•0 comments

Three big AI trends collide

https://www.axios.com/2026/07/09/ai-trends-fable-5-sol-grok-china-us
2•gmargari•41m ago•0 comments

Commentary on N Guilty Men

https://medium.com/luminasticity/commentary-on-n-guilty-men-fc47d9dd0674
1•bryanrasmussen•45m ago•0 comments

The Cost of China's Free A.I

https://www.nytimes.com/2026/07/29/opinion/ai-china-us-free-models.html
1•kuboble•47m ago•0 comments

Spacesphere Live

https://spacesphere.sygnito.com/en
1•SYGNITO•47m ago•0 comments

Ran Moonshot's 2.8T-parameter Kimi K3 on a GPU-less mini-PC

https://github.com/ferrumox/rabbit
2•manuelslemos•50m 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".