frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Zenú Gold: Reassessing Matriarchy in Pre-Contact Colombia (2025)

https://archaeolog.substack.com/p/zenu-gold-reassessing-matriarchy
1•BaseBaal•29s ago•0 comments

Historic Photos of NASA's Cavernous Wind Tunnels

https://www.theatlantic.com/photo/2018/05/historic-photos-of-nasas-cavernous-wind-tunnels/560660/
1•ohjeez•5m ago•0 comments

Why don't people use Git properly?

https://deadsimpletech.com/blog/why-dont-people-use-git-properly
1•mmphosis•6m ago•1 comments

AI Has Hacked the Code of Human Civilization – Yuval Noah Harari

https://www.youtube.com/watch?v=hBtVGwuJzpk
1•doener•10m ago•0 comments

Sick leave: Germany rising but not the worst in Europe

https://www.dw.com/en/sick-leave-germany-rising-but-not-the-worst-in-europe/a-77815488
3•bushwart•16m ago•0 comments

What should a personal website be?

https://ratfactor.com/cards/personal-website
1•tolerance•16m ago•1 comments

Elon Musk posted twice as often on UK race and immigration as about SpaceX IPO

https://www.theguardian.com/technology/2026/jul/04/elon-musk-uk-race-immigration-spacex-ipo
5•iamflimflam1•16m ago•0 comments

National Institute of Standards and Technology | NIST | Official US Time

https://time.gov/
1•Bender•16m ago•0 comments

No more than 100 000 faint satellites should orbit Earth

https://www.eso.org/public/news/eso2607/
1•Breadmaker•17m ago•0 comments

Review-flow – automate 80% of code review so humans focus on the 20%

https://github.com/DGouron/review-flow
2•DGouron•17m ago•0 comments

Lessons from a Year of Exploring Common Ground

https://americans-agree.org/insights/lessons-from-a-year-of-exploring-common-ground
2•quadtree•19m ago•0 comments

Only 1 of the Top AI Coding Models on WebDev Arena Isn't Chinese

https://arena.ai/leaderboard/code/webdev?rankBy=labs
3•SweetSoftPillow•21m ago•0 comments

Using Local Coding Agents – By Sebastian Raschka, PhD

https://magazine.sebastianraschka.com/p/using-local-coding-agents
1•rbanffy•22m ago•0 comments

Game Boy Advance Dev: Logging to the Console

https://www.mattgreer.dev/blog/gba-dev-logging/
1•jandeboevrie•22m ago•0 comments

Shipping post-quantum cryptography to Python – The Trail of Bits Blog

https://blog.trailofbits.com/2026/06/30/shipping-post-quantum-cryptography-to-python/
1•rbanffy•22m ago•0 comments

MITS - Micro Instrumentation and Telemetry Systems

https://www.abortretry.fail/p/micro-instrumentation-and-telemetry
2•rbanffy•26m ago•0 comments

EndBASIC 0.14: Are we multimedia yet?

https://www.endbasic.dev/2026/07/endbasic-0.14.html
2•jmmv•26m ago•0 comments

Security Roundup: Apple's Hide My Email Service Fails to Hide Your Email

https://www.wired.com/story/security-roundup-apples-hide-my-email-service-fails-to-hide-your-email/
1•joozio•33m ago•0 comments

Liquid transforms into an energy-rich gel that stores power for months

https://news.northwestern.edu/stories/2026/06/cell-inspired-material-captures-energy-and-releases...
2•geox•33m ago•0 comments

Up and Down the Ladder of Abstraction

https://worrydream.com/LadderOfAbstraction/
2•highfrequency•36m ago•0 comments

Good APIs Age Slowly

https://yusufaytas.com/good-apis-age-slowly
19•thunderbong•36m ago•0 comments

How Tier-1 capital market is using AI Agent architecture

https://electronictradinghub.com/the-ai-agent-architecture-is-published-the-thresholds-are-not/
2•silahian•37m ago•0 comments

Plein Air

https://art.joonas.wtf/
3•bookofjoe•39m ago•0 comments

Finland's last analogue landline phones go silent after 150 years

https://www.euronews.com/next/2026/06/30/finlands-last-analogue-landline-phones-go-silent-after-1...
9•ohjeez•40m ago•0 comments

Show HN: AI Interview Coach – practice with honest hiring-manager-grade feedback

https://aiinterviewcoaches.com
1•Aldasams•41m ago•0 comments

Understanding Is the New Bottleneck

https://www.geoffreylitt.com/2026/07/02/understanding-is-the-new-bottleneck.html
1•backlit4034•42m ago•0 comments

OEIS: Number of stars on the US flag since 1775

https://oeis.org/A140646
3•Reasonablefish•43m ago•1 comments

Google Books (or similar) all book scans – $200k bounty

https://software.annas-archive.gl/AnnaArchivist/annas-archive/-/work_items/234
18•Cider9986•43m ago•0 comments

OpenScience: Workbench for scientific research using custom LLMs

https://github.com/synthetic-sciences/openscience
3•ignoramous•44m ago•0 comments

DCA: Arithmetic for Finite Computation

https://github.com/superalp1985/DCA-Discrete-Computer-Arithmetic
1•superalp•44m 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".