frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Why Can't You Pack a Bag?

https://www.newyorker.com/culture/open-questions/why-cant-you-pack-a-bag
1•prathamtharwani•4m ago•0 comments

Why Indie Developers Should Start Alone

https://defragzone.substack.com/p/why-indie-developers-should-start
1•frag•5m ago•0 comments

Appa: P2P Syncthing Using Iroh

https://tangled.org/aly.codes/appa
1•nerdypepper•6m ago•0 comments

I'm Begging You: Never Write with AI

https://www.nytimes.com/2026/08/04/opinion/artificial-intelligence-ai-writing.html
2•ekelsen•7m ago•0 comments

What's New in PHP 8.6

https://stitcher.io/blog/new-in-php-86
1•dmitrijbelikov•7m ago•0 comments

SpaceX's AI spending unnerves Wall Street despite promises of quick payoff

https://www.cnbc.com/2026/08/04/spacex-ai-spending-unnerves-wall-street-despite-promising-quick-p...
2•mapping365•8m ago•0 comments

SpaceX's Starfall program offers validation and competition for reentry startups

https://spacenews.com/spacexs-new-starfall-program-offers-validation-and-competition-for-reentry-...
1•cryptoz•8m ago•0 comments

Enabling the next iteration of the Rust borrow checker on nightly

https://blog.rust-lang.org/2026/08/04/enabling-polonius-alpha-on-nightly/
2•pjmlp•9m ago•0 comments

Banks to offload $15B of debt for Anthropic data centre backed by Google

https://www.ft.com/content/c492ce6b-483b-4196-8f2a-9bd1afda92d3
1•mapping365•9m ago•0 comments

The Sound and Music of 'Hyper Light Drifter' [video]

https://gdcvault.com/play/1024135/The-Sound-and-Music-of
1•hyperific•15m ago•0 comments

VPhone Workstation – create and use virtual iPhones on Mac

https://github.com/zqxwce/vphone-ws
1•71bw•19m ago•0 comments

Germany's Electricity Rationing Is No Longer Unthinkable

https://spectator.org/germanys-electricity-rationing-is-no-longer-unthinkable/
3•mpweiher•34m ago•1 comments

ChatGPT accounts for 80% of identifiable House AI spending

https://www.cnbc.com/2026/08/03/openai-chatgpt-anthropic-congress-house-ai-spending.html
2•tosh•39m ago•0 comments

LAPD Abandons Flock Contract After Making a Horrifying Discovery

https://futurism.com/future-society/lapd-abandons-flock-contract-false-alarm
2•mgh2•40m ago•0 comments

Funeral for Oscar-winning songwriter Glen Hansard

https://apnews.com/article/glen-hansard-funeral-dublin-bono-eddie-vedder-46b1d6ef619979afb5c0a031...
1•metabagel•42m ago•0 comments

Robotic Evals

1•andrewlyu•45m ago•0 comments

Why Paris Is Obsessed with Chartreuse Liqueur

https://www.bloomberg.com/news/articles/2026-08-05/how-chartreuse-conquered-paris-wine-bars-to-be...
2•petethomas•46m ago•0 comments

An AI Approach to Verified Production Cryptographic Libraries

https://arxiv.org/abs/2608.00965
1•sbulaev•50m ago•0 comments

The Labour Market Is a Network, Not an Auction

https://andrewmarritt.substack.com/p/the-labour-market-is-a-network-not
2•hunglee2•52m ago•0 comments

Why 70 of Website Replatforming Go over Budget

https://focusreactive.com/blog/why-70-of-website-replatforming-projects-go-over-budget-and-how-to...
1•katyadrozd•54m ago•0 comments

Show HN: CostClaw, a local CLI that finds your Claude Code spend leaks

https://www.costclaw.io/
1•ucsandman•56m ago•0 comments

Show HN: Lapse - a notes app. but also shared memory space for your agents (MCP)

https://lapse.in
2•hariprasd•56m ago•0 comments

Show HN: A file-based protocol for two AI agents to talk until they agree

https://agent-talk.reindent.com/
1•reindent•57m ago•0 comments

Scott Bessent's yen intervention signals new era of US 'currency activism'

https://www.ft.com/content/1be83506-b897-4c26-97cc-445d7354ee6f
2•petethomas•57m ago•0 comments

Israel Pays Trump's Ex-Campaign Chief $46M to Shape What ChatGPT Says About Gaza

https://www.ibtimes.co.uk/israel-ai-influence-campaign-chatbots-1812371
11•handfuloflight•59m ago•0 comments

Noorm – Schema and migrations as plain SQL files, no ORM

https://noorm.dev/
2•daniloa•1h ago•0 comments

Show HN: Emil: Emacs-style minimalist editor Beta test release

https://github.com/nicholascarroll/emil
1•emil_coder•1h ago•0 comments

The probabilistic quantum consensus is wrong. We just broke the timeline

https://prometheusdynamics.ca/
1•WilliamDenyer•1h ago•0 comments

Rust-lang/rust is adopting an LLM policy

https://blog.rust-lang.org/inside-rust/2026/08/05/rust-langrust-is-adopting-an-llm-policy/
12•afdbcreid•1h ago•2 comments

Show HN: Rever-browser – AI-agent browser for reverse-engineering

https://github.com/greekr4/rever-browser
1•taevirus•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".