frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Tell HN: EU soliciting feedback on law that could affect Open Access

1•Quanttek•1m ago•0 comments

Connecting portfolios, ATS, AI to simplify startup hiring

1•kathir05•2m ago•0 comments

Clawdbot Personal AI Assistant

https://clawdbot.com/
1•tobi_bsf•2m ago•0 comments

How to Do Great Work

https://paulgraham.com/greatwork.html
1•Anon84•3m ago•0 comments

AI Systems Engineering Patterns

https://blog.alexewerlof.com/p/ai-systems-engineering-patterns
1•weltview•7m ago•0 comments

List of Web Archiving Initiatives

https://en.wikipedia.org/wiki/List_of_web_archiving_initiatives
1•frozenseven•7m ago•0 comments

Either micromanage your people or lean on them

https://betterthanrandom.substack.com/p/either-micromanage-your-people-or
1•weltview•8m ago•0 comments

The Internet Was Built for Humans. Now It's for Agents

https://chiefting.substack.com/p/the-internet-was-built-for-humans
1•mpraz•15m ago•0 comments

Ghost Archive

https://ghostarchive.org/
1•frozenseven•18m ago•0 comments

Paris court finds 10 guilty of cyberbullying France's first lady Brigitte Macron

https://apnews.com/article/brigitte-macron-ruling-cyberbullying-france-5f78de63dc14f765e509a00400...
1•perihelions•18m ago•0 comments

Delta Electronics: Taiwan's Power Supply Giant [video]

https://www.youtube.com/watch?v=nRKxKz2eiOo
1•mgh2•22m ago•0 comments

Who Owns the Memory? Part 1: What Is an Object?

https://lukefleed.xyz/posts/who-owns-the-memory-pt1/
1•lalitmaganti•22m ago•0 comments

Perfect and Imperfect Shuffles

https://www.johndcook.com/blog/2026/01/01/perfect-shuffles/
1•ibobev•22m ago•0 comments

In-Shuffles and Out-Shuffles

https://www.johndcook.com/blog/2026/01/01/in-shuffle-out-shuffle/
1•ibobev•23m ago•0 comments

Freestyle Linked Lists Tricks

https://nullprogram.com/blog/2025/12/31/
1•ibobev•23m ago•0 comments

Ask HN: What kind of side projects are you working on?

2•chistev•25m ago•0 comments

We Come to Know Earth

https://www.quantamagazine.org/how-we-came-to-know-earth-20250915/
1•nsoonhui•25m ago•0 comments

A Woman Who Predicted Tech Fascism – Paulina Borsook Was Right

https://www.youtube.com/watch?v=DL-kwZdkiOA
2•rasengan0•28m ago•0 comments

Show HN: A tiny tool that creates short business snapshots

https://frabjous-sundae-f249f4.netlify.app/
1•RafalPilla•29m ago•0 comments

Everything You Need to Know About Email Encryption in 2026

https://soatok.blog/2026/01/04/everything-you-need-to-know-about-email-encryption-in-2026/
2•tempodox•29m ago•0 comments

8bitDo Reveals Flip-Style iPhone Controller for Portrait Mode Gaming

https://www.macrumors.com/2026/01/05/8bitdo-iphone-controller-portrait-gaming/
1•tosh•29m ago•0 comments

Adolf Hitler: Man of the Year, 1938 (1938)

https://time.com/archive/6598257/adolf-hitler-man-of-the-year-1938/
2•chistev•31m ago•0 comments

The text mode lie: why modern TUIs are a nightmare for accessibility

https://xogium.me/the-text-mode-lie-why-modern-tuis-are-a-nightmare-for-accessibility
1•robin_reala•34m ago•0 comments

Anna's Archive Loses .Org Domain After Surprise Suspension

https://torrentfreak.com/annas-archive-loses-org-domain-after-surprise-suspension/
19•CTOSian•37m ago•1 comments

Visualizing neural network inference in 3D with WebGL and ONNX

https://www.erikjs.com/blog/building-neural-network-visualizer
1•csgod•37m ago•0 comments

The Next Two Years of Software Engineering

https://addyosmani.com/blog/next-two-years/
1•headalgorithm•38m ago•0 comments

John Horton Conway: the most charismatic mathematician (2015)

https://www.theguardian.com/science/2015/jul/23/john-horton-conway-the-most-charismatic-mathemati...
2•thunderbong•38m ago•0 comments

Training MiniMax-M2.1

https://www.minimaxi.com/news/m21-multilingual-and-multi-task-coding-with-strong-general
2•m3h•42m ago•0 comments

I automatically generated minutes for five years of IETF meetings

https://educatedguesswork.org/posts/ietf-minutes/
2•signa11•46m ago•0 comments

Vitalik Says Ethereum Just Solved Crypto's Biggest Problem

https://cryptonews.com/news/vitalik-says-ethereum-just-solved-cryptos-biggest-problem/
3•ogogmad•49m ago•2 comments
Open in hackernews

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

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

Comments

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

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

to:

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

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

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

Oh and maybe cherry-pick

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