frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Remote Control, Done Right: Reviewing the Comet Pro Remote KVM

https://medium.com/engineering-iot/remote-control-done-right-reviewing-the-comet-pro-remote-kvm-b...
1•walterbell•2m ago•0 comments

Nearly 200k Ukrainians in US thrown into legal limbo by immigration crackdown

https://www.reuters.com/world/europe/nearly-200000-ukrainians-us-thrown-into-legal-limbo-by-trump...
1•c420•4m ago•0 comments

Surprisingly, Emacs on Android is pretty good

https://kristofferbalintona.me/posts/202505291438/
1•harryday•5m ago•0 comments

Data breach in Iberia: internal documents end up on the dark web

https://www.apolocybersecurity.com/en/blog-posts/filtracion-de-datos-en-iberia-documentos-interno...
1•reconnecting•6m ago•0 comments

CD-i

https://en.wikipedia.org/wiki/CD-i
1•tosh•6m ago•0 comments

A Bayesian Analysis of Biblical Prophesies

https://madebynathan.com/2025/11/15/a-bayesian-analysis-of-biblical-prophesies/
1•nathan_f77•6m ago•0 comments

A Swath of Data Was Hacked from a Leading Real Estate Banking Services Company

https://www.nytimes.com/2025/11/22/business/bank-data-hack.html
1•mmooss•7m ago•1 comments

Happiness Is a Skill You Can Build

https://domofutu.substack.com/p/happiness-is-a-skill-you-can-build
2•domofutu•10m ago•0 comments

Show HN: better-env – A Secure, Developer-Friendly Alternative to .env

https://better-env.dev/docs
1•harish3304•14m ago•0 comments

Read the Greeks

https://kamilkazani.substack.com/p/read-the-greeks
1•tzury•18m ago•0 comments

World-in-World: World Models in a Closed-Loop World

https://arxiv.org/abs/2510.18135
1•zonsz•20m ago•0 comments

Children of Paradise is the greatest film to come out of France, 80 years on

https://theconversation.com/children-of-paradise-is-the-greatest-film-to-come-out-of-france-even-...
1•walterbell•21m ago•0 comments

'Turncoat' by Dennis Sewell Review

https://www.historytoday.com/archive/review/turncoat-dennis-sewell-review
1•prismatic•24m ago•0 comments

Las Vegas Diaries

https://www.thedial.world/articles/news/ahmed-naji-las-vegas-diary
1•Thevet•25m ago•0 comments

Implementing MapReduce Paper in Golang

https://jitesh117.github.io/blog/implementing-mapreduce-in-golang/
2•Jitesh117•26m ago•0 comments

Ask HN: Why isn't there a single open-source (project) game?

1•triilman•29m ago•1 comments

Show HN: I built a circuit simulator that adds two numbers using only NAND gates

https://madebynathan.com/2025/11/23/adding-two-numbers-using-only-nand-gates/
1•nathan_f77•38m ago•0 comments

Listening to a Book Counts as Reading

https://www.nytimes.com/2025/11/23/opinion/audiobooks-books-print-reading.html
1•mykowebhn•46m ago•1 comments

Women seem to retract fewer papers than men – but why?

https://www.nature.com/articles/d41586-025-03796-w
2•XzetaU8•46m ago•1 comments

Artist Reconstructs Face of Julius Caesar and Others from Ancient History

https://www.boredpanda.com/face-reconstruction-famous-people-from-antiquity-msn/
1•thomassmith65•47m ago•0 comments

A lightweight code editor with Vim mode, Git integration, and more

https://athas.dev
1•geordee•55m ago•0 comments

Show HN: I built Arc-like sidebar for Safari

https://www.supasidebar.com
1•supasidebar•1h ago•0 comments

Show HN: pthui, a tiny, color-coded TUI wrapper for Python's watchdog library

https://github.com/clarkfannin/pthui
1•clarkfannin•1h ago•0 comments

Show HN: Chemistry AI – A step-by-step chemistry solver for students

https://chemistryai.chat
2•wadudu•1h ago•1 comments

Show HN: AI Watermarkremover

https://aiwatermarkremover.online/chatgpt-watermark-remover
1•ocmaker•1h ago•1 comments

SoX_ng

https://codeberg.org/sox_ng/sox_ng
1•dither8•1h ago•1 comments

"Work –> Appreciation" Cycle

1•Nischalj10•1h ago•0 comments

AI Horror Stories

https://whenaifail.com/category/ai-coding/
2•burgerquizz•1h ago•0 comments

User Location Disclosure Amplifies Regional Divisions on Chinese Social Media

https://arxiv.org/abs/2507.03238
2•pr337h4m•1h ago•0 comments

Google Revisits JPEG XL in Chromium After Earlier Removal

https://windowsreport.com/google-revisits-jpeg-xl-in-chromium-after-earlier-removal/
28•eln1•1h ago•3 comments
Open in hackernews

Git Commands That Cover 90% of a Developer's Daily Workflow

https://jsdev.space/15-git-commands/
29•javatuts•6mo ago

Comments

epmatsw•6mo ago
restore and maybe switch are the two missing ones I think. Rebase for me, but that’s preference. Cherry-pick too.
rentonl•6mo ago
my co-workers used to think I was an expert in git. In reality, they memorized 7 commands while I memorized 15
hbogert•6mo ago
i memorized that a commit tree is a ordered set of patches. Everything goes from there.
Areibman•6mo ago
In similar fashion, this site has saved me countless hours fixing common git issues https://ohshitgit.com
the__alchemist•6mo ago
I need to alias:

  git add .
  git commit -am "descriptive name"
  git push

to:

  git sync "descriptive name"
horsawlarway•6mo 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•6mo 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•6mo 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•6mo ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•6mo 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•6mo 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•6mo 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•6mo ago
Maybe not essential, but reflog is invaluable.

I also like to separate fetch from pull (fetch + merge).

foobarkey•6mo ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•6mo ago
Both are essential.
realaleris149•6mo ago
There are other commands?
incomplete•6mo 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•6mo ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•6mo ago
It missed "git switch" and "git restore".