frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Is anyone else leaving AUR?

1•lordkrandel•2m ago•0 comments

Apple A12 and A13 Chips: New Unpatchable Exploit

https://www.macrumors.com/2026/06/18/a12-and-a13-chips-facing-exploit/
1•tosh•3m ago•0 comments

DNI does press release on Covid-19 origins and coverup

https://www.odni.gov/index.php/newsroom/press-releases/press-releases-2026/4166-pr-11-26
1•anonymousiam•4m ago•1 comments

I reinvented website FAQ sections

https://answerpane.com/
2•MikeCatt•6m ago•0 comments

The comfortable slow boil of LLM assisted coding

https://01max.io/blog/a-comfortable-slow-boil/
1•maxime_•10m ago•0 comments

Renting vs. Buying – A case study for Bangalore

https://bangalore-property-buy-vs-rent.pagey.site/
2•freakynit•10m ago•0 comments

Show HN: `pbi`, an image aware pbcopy/paste for macOS command line users.

https://github.com/fragmede/pbi
1•fragmede•13m ago•0 comments

Maven Central introduces publishing limits

https://community.sonatype.com/t/maven-central-publishing-limits-what-high-volume-publishers-need...
1•justinblat•14m ago•0 comments

Looking to connect by helping founders find their first users

1•BonanKou•17m ago•0 comments

Someone at NPM needs see this – to stop the madness

https://www.youtube.com/watch?v=QIr58qqRyH8
1•ascended•17m ago•0 comments

Show HN: Protect your Go, Arch and AUR from Malware with a free firewall

https://www.vulnetix.com/features/package-firewall
1•ascended•20m ago•1 comments

I asked an online tracking company for my data and here's what I found (2018)

https://privacyinternational.org/long-read/2433/i-asked-online-tracking-company-all-my-data-and-h...
1•downbad_•21m ago•0 comments

Generative AI Is Having Its Herbalife Moment

https://www.whatwelo.st/p/generative-ai-is-having-its-herbalife
2•watermelon0•24m ago•0 comments

Show HN: Foldkit vs. React, the same pixel art editor implemented in both

https://foldkit.dev/react/foldkit-vs-react-side-by-side
2•devinjameson•27m ago•0 comments

The First Prompt: "Let There Be Light"

https://substack.com/@iancutzu/note/c-278921935
2•iancutzul•28m ago•0 comments

Markdown Comes to Liteparse

https://www.llamaindex.ai/blog/markdown-comes-to-liteparse
2•pierre•29m ago•1 comments

It Is Trivially Easy to Use Reddit to Manipulate AI Search

https://www.404media.co/it-is-trivially-easy-to-use-reddit-to-manipulate-ai-search-research-sugge...
5•cui•35m ago•0 comments

Don't Get Hacked!

https://www.cs.columbia.edu/~smb/homesec/
3•sohkamyung•40m ago•0 comments

Show HN: Validate your idea from Reddit and TikTok

https://draper.chat
3•tomchill•41m ago•0 comments

CVE Daily, RSS Feed Generation Back End

https://github.com/PredestinedPrivacy/cvedaily-rss
3•PredestinedPriv•42m ago•0 comments

"I scratched my own itch" isn't good enough (2025)

https://longform.asmartbear.com/scratched-my-own-itch/
4•ogundipeore•44m ago•0 comments

AI helped diagnose 18 children whose rare diseases had stumped doctors

https://www.nbcnews.com/tech/innovation/ai-boston-childrens-hospital-diagnose-rare-diseases-kids-...
4•mgh2•49m ago•0 comments

Phone Batteries Keep Getting Better. So Why Are We Always Charging?

https://www.cnet.com/tech/mobile/features/phone-battery-life-silicon-carbon-what-next/
4•giuliomagnifico•50m ago•0 comments

Vim Creator Bram Moolenaar's Forgotten Programming Language, Zimbu (2023)

https://thenewstack.io/vim-creator-bram-moolenaars-forgotten-programming-language-zimbu/
5•azhenley•55m ago•0 comments

The Chinese Room

https://plato.stanford.edu/entries/chinese-room/
4•goloco•58m ago•1 comments

DARPA Heavy Life Challenge

https://www.darpa.mil/research/challenges/lift
3•mhb•1h ago•0 comments

Amazon S3 annotations: attach rich, queryable context directly to objects

https://aws.amazon.com/blogs/aws/amazon-s3-annotations-attach-rich-queryable-context-directly-to-...
6•firasd•1h ago•0 comments

White House talks with Anthropic shift to setting AI security rules

https://www.politico.com/news/2026/06/18/white-house-talks-with-anthropic-shift-to-setting-ai-sec...
5•daniban•1h ago•1 comments

Why Global Chaos Can't Stop the World Cup [video]

https://www.youtube.com/watch?v=vn8w80Ms7-w
2•mgh2•1h ago•0 comments

Amazon employees say they're facing termination for backing data center limits

https://www.theverge.com/ai-artificial-intelligence/952180/amazon-seattle-data-center-moratorium-...
5•1vuio0pswjnm7•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".