frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How to Overcome Your Brain's Fixation on Bad Things (2020)

https://greatergood.berkeley.edu/article/item/how_to_overcome_your_brains_fixation_on_bad_things
1•vinhnx•26s ago•0 comments

Big tech meets Milton Friedman

https://www.semafor.com/article/08/11/2026/big-tech-meets-milton-friedman
1•andsoitis•2m ago•0 comments

Apple tests Chinese memory chips

https://www.semafor.com/article/08/09/2026/apple-tests-chinese-memory-chips
1•andsoitis•4m ago•0 comments

Positive Mindset, Prepare for the Worst

https://domenkozar.com/2026/08/15/positive-mindset-prepare-for-the-worst/
1•vinhnx•4m ago•0 comments

Google doesn't need the LLM crown

https://www.semafor.com/article/08/07/2026/google-doesnt-need-the-llm-crown
1•andsoitis•6m ago•0 comments

Non-coder –> Vibe coder -> Manual coder

https://beachfront.bearblog.dev/non-coder-vibe-coder-manual-coder/
1•Gecko4072•10m ago•0 comments

BlackBerry: From phone dinosaur to tech champion

https://www.ft.com/content/a026e094-7017-4ff8-8344-213573e973ed
1•thm•10m ago•0 comments

Qualtix: Model-backed stock research platform

https://www.qualtix.app/
1•Sharanxxxx•13m ago•0 comments

Taking Java from small to big with JBang

https://sombriks.com.br/blog/0095-java-small-to-big-with-jbang/
1•theanonymousone•14m ago•0 comments

I'd love to feature your business in my newsletter

2•xnslx•14m ago•0 comments

Show HN: Side Out, a Multiplayer Survival Pong

https://antics.gg/world/side-out-94df7d
2•eric_khun•14m ago•0 comments

Show HN: Spread – Real-Time New Zealand Supermarket Data via API and MCP

https://spread.butterup.app/
1•geesus•19m ago•0 comments

The rise of air-conditioned clothing

https://www.ft.com/content/d98a862c-2483-4781-a26c-78e9af7e9c92
1•tosh•20m ago•1 comments

Outperforming cuBLAS on NVFP4

https://cudaforfun.substack.com/p/outperforming-cublas-on-nvfp4
1•tosh•24m ago•0 comments

Beijing is forcing a mass breakup with AI lovers

https://restofworld.org/2026/china-ai-boyfriend-ban-bytedance-doubao/
1•fragmede•29m ago•0 comments

Grok –.grok?

https://sslog.dpdns.org/grok-grok.html
1•Shaurya_Sharma•32m ago•0 comments

Optimal Ask

https://blog.lukesalamone.com/posts/optimal-ask/
1•salamo•34m ago•0 comments

Dario Amodei on Regulation

https://twitter.com/darioamodei/status/2088758816376807762
1•tosh•35m ago•0 comments

Health benefits of Tai Chi

https://www.health.harvard.edu/exercise-and-fitness/the-health-benefits-of-tai-chi
1•helloplanets•36m ago•0 comments

Tokencompress A sub-2ms Go CLI and MCP sidecar that prunes AI agent tool context

https://github.com/dburnett11155-rgb/Tokencompress
2•ProffessorD•37m ago•0 comments

(LFE:Lisp Flavoured Erlang)

https://lfe.io/
1•giancarlostoro•39m ago•0 comments

ESP32-CYD-Based-Image-Fetcher Mini Project

https://github.com/turtushig22-blip/ESP32-2432S028-based-Image-fetcher
1•turtushig22•41m ago•1 comments

What's missing to have reproducible builds on PyPI

https://snarky.ca/whats-missing-to-have-reproducible-builds-on-pypi/
1•Ravencentric•44m ago•0 comments

Why Windows Is Losing Gamers

https://www.youtube.com/watch?v=2grg4R4fmGs
1•cable2600•46m ago•0 comments

RISC-V: What Matters

https://thechipletter.substack.com/p/risc-v-what-really-matters-and-what
1•signa11•46m ago•0 comments

The Iran War Is a Whole New Level of Quagmire for the US

https://www.politico.com/news/magazine/2026/08/12/the-us-forgot-the-lessons-of-iraq-now-its-despe...
24•hebelehubele•47m ago•4 comments

TreasuryDirect moves authn 100% to ID.me

https://www.treasurydirect.gov/savings-bonds/help-center/faqs/idme-faq/
1•AdamN•48m ago•1 comments

Keyboard Phones Are Back

https://markow.dev/?action=view&url=keyboard-phones-are-back---unihertz-titan-2-elite
4•robowo•53m ago•3 comments

Japanese publishers fight imposter news sites with a cryptographic signature

https://www.niemanlab.org/2026/08/japanese-publishers-are-fighting-imposter-news-sites-with-a-cry...
1•rdmuser•57m ago•0 comments

Practical Introduction to Vim-Fugitive

https://jeancharles.quillet.org/posts/2022-03-02-Practical-introduction-to-fugitive.html
2•auraham•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".