frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

YouTube Meet the Line-Dancing Community Doodle Taking Up Resources

1•Throwthrowbob•4m ago•0 comments

Doby –Spec-first fix workflow for Claude Code that cuts navigation tokens by 95%

https://github.com/changmyoungkim/doby
1•changmyoungkim•4m ago•0 comments

Ask HN: Models Comparable to Opus 4.6?

1•islandbytes•6m ago•0 comments

Show HN: Gova – The declarative GUI framework for Go

https://github.com/NV404/gova
1•aliezsid•6m ago•0 comments

Show HN: Proving sdocs.dev is running the public code

https://sdocs.dev/trust
1•FailMore•9m ago•0 comments

How Do LLM Agents Think Through SQL Join Orders?

https://ucbskyadrs.github.io/blog/databricks/
1•matt_d•16m ago•0 comments

Is Unbound AI the future of adult entertainment?

https://unbound.video/landing4
3•Discuss-AI•18m ago•5 comments

The Most Controversial Post I Ever Wrote on Quora

https://derangedmathematician.substack.com/p/the-most-controversial-post-i-ever
1•wjholden•21m ago•0 comments

My .config Ship of Theseus

https://shift1w.com/blog/config-of-theseus/
2•jacobwiseberg•23m ago•0 comments

Pedal History Is in Danger – ChatGPT Is Rewriting Fact – and It's Getting Worse [video]

https://www.youtube.com/watch?v=0QynkC5HpcI
1•bryanrasmussen•25m ago•0 comments

Sinceerly: AI to undo your AI writing

https://sinceerly.com/
1•MrBuddyCasino•34m ago•0 comments

Ben Goldacre: OpenSAFELY in Brief

https://www.bennett.ox.ac.uk/blog/2025/02/opensafely-in-brief/
2•anitil•36m ago•1 comments

Do those that deserve the world, get the world?

https://dreamingtooloud.substack.com/p/do-those-that-deserve-the-world-get
1•homebush•46m ago•0 comments

AI-powered knowledge assistant for sexual and reproductive health

https://chathrp.org/
1•salkahfi•48m ago•0 comments

Quest Browser 146.0 adds experimental support for WebGPU in WebXR

https://bsky.app/profile/cabanier.bsky.social/post/3mk6ugjtbw22y
1•juretriglav•48m ago•0 comments

The importance of stupidity in scientific research (2008) [pdf]

https://web.stanford.edu/~fukamit/schwartz-2008.pdf
2•the-mitr•50m ago•0 comments

How Europe regulated itself into American vassalage

https://www.economist.com/europe/2026/04/22/how-europe-regulated-itself-into-american-vassalage
2•RestlessMind•50m ago•1 comments

Iran War Has Drained U.S. Supplies of Critical, Costly Weapons

https://www.nytimes.com/2026/04/23/us/politics/iran-war-cost-military.html
2•vrganj•53m ago•0 comments

Dutch government secures deal with European cloud platform STACKIT

https://www.nldigitalgovernment.nl/news/dutch-government-secures-deal-with-european-cloud-platfor...
1•hvb2•54m ago•0 comments

PuzzleScript

https://www.puzzlescript.net/Documentation/rules101.html
1•azhenley•56m ago•0 comments

Contral AI

https://contral.ai
1•vednig•59m ago•0 comments

What Are Unix Domain Sockets?

https://docs.sweeting.me/s/sockets-101
1•nikisweeting•1h ago•0 comments

Paint But…

https://paintbut.netlify.app/
2•memalign•1h ago•1 comments

GitGuardian analysis of the bitwarden/CLI compromise

https://blog.gitguardian.com/bitwarden-cli-gitguardian-views-on-helloworm00/
2•cwinq•1h ago•0 comments

Rendezvous and Docking: A User's Guide for Non Rocket Scientists

https://www.baen.com/rendezvous
1•EvgeniyZh•1h ago•0 comments

Microsoft offers buyouts for longtime employees

https://www.seattletimes.com/business/microsoft/microsoft-offers-buyouts-for-longtime-employees/
4•divbzero•1h ago•1 comments

FujiNet Go 800 – Atari800 Emulator for Android

https://fujinet.online/2026/04/23/fujinet-go-800-atari800-emulator-for-android/
1•p0w3n3d•1h ago•2 comments

The Surveillance Accountability Act Full Text [pdf]

https://boebert.house.gov/sites/evo-subsites/boebert.house.gov/files/evo-media-document/surveilla...
4•Cider9986•1h ago•1 comments

OpenAI deprecates all GPT nano fine tuning

https://community.openai.com/t/deprecation-of-fine-tuned-models-but-still-cant-access-newer-ones/...
2•dandiep•1h ago•0 comments

Why Not Venus?

https://mceglowski.substack.com/p/why-not-venus
2•zdw•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•11mo ago

Comments

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

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

to:

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

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

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

Oh and maybe cherry-pick

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