DEV Community

Cover image for Why Do You Push Code During Work Hours?" - How an Interview Question Led Me to Build a Delayed Commit Feature

Why Do You Push Code During Work Hours?" - How an Interview Question Led Me to Build a Delayed Commit Feature

Huynh Thanh Phuc on October 21, 2025

The Interview That Changed My Perspective Picture this: I'm sitting in a technical interview, feeling pretty confident about my answers ...
Collapse
 
emilioacevedodev profile image
Emilio Acevedo

This is a fascinating article. It's a brilliant engineering solution to a problem that is, at its core, 100% cultural.

Your question on ethics is key, but I would reframe it: "Isn't it unethical for a leader or recruiter to use Git timestamps as a proxy for productivity in the first place?"

This is a symptom of a low-trust culture, very similar to the "status report dailies" I discussed in my own article on 'Scrum Zombies'. We're seeing a focus on activity (when you commit) rather than impact (the value you deliver).

As senior engineers and leaders, our real job is two-fold:

  1. Yes, build pragmatic tools like this to protect our teams.
  2. But more importantly, champion a culture where no one even thinks to look at commit timestamps, because they are focused on outcomes.

The tool is fantastic (and a clever use of Go), but the problem it exposes runs much deeper. Thanks for starting this very necessary conversation.

Collapse
 
louis7 profile image
Louis Liu

Good point. This often happens when a manager lacks the ability to improve the team and instead tries to use his power to remind people of his/her presence.

Collapse
 
emilioacevedodev profile image
Emilio Acevedo

Totally agree. It's the manager who, lacking real ways to add value, defaults to "management by presence."

It's the 2024 version of demanding a 100% return-to-office, only to watch us sit at our desks... while on a Teams call with the colleague three meters away.

The goal isn't collaboration; it's "attendance validation" to justify the cost of the office space. 😂

Collapse
 
fyodorio profile image
Fyodor

Came here to say the interviewer was a dickhead but somebody had made it already, thanks 👍

Collapse
 
p3ngu1nzz profile image
p3nGu1nZz

nice read, but seems over kill when you can do this instead

(sleep 3600 && git push origin main) &
Enter fullscreen mode Exit fullscreen mode

or

echo "Delaying push until 2am…" && at 2am <<< "cd /your/repo && git push origin main"
Enter fullscreen mode Exit fullscreen mode

or perl if your old skool

perl -e 'sleep 3600; system("git push origin main")' &
Enter fullscreen mode Exit fullscreen mode

POSIX scripts are much easier to make interop between projects..

Collapse
 
thanhphuchuynh profile image
Huynh Thanh Phuc

thanks for your comment, but git push maybe does not alter the commit times

Collapse
 
yildizib profile image
İbrahim YILDIZ

That's a really good point.:)

Collapse
 
louis7 profile image
Louis Liu

Interesting, I'm wondering whether it will eat my commits 😜.

It seems like the core concept of this project is commit scheduling, but in the end, you mentioned it is an AI-powered commit message generator. Code editor like VS Code supports auto-generate commit message, so I think it is not a key feature for me😝.

Collapse
 
thanhphuchuynh profile image
Huynh Thanh Phuc

kk thanks. if someone does not use VS Code, maybe this tool will help :D

Collapse
 
kurealnum profile image
Oscar

This is really neat. I'll definitely check it out when I get a chance.

Collapse
 
getsetgopi profile image
GP • Edited

The interviewer's question seems reasonable to me. They wanted to know why you were working on your personal project during official work time, which is a concern for any company. You are demonstrating unethical moonlighting practices to the developer community by creating a tool to bypass commits time.

Collapse
 
thanhphuchuynh profile image
Huynh Thanh Phuc • Edited

I know this is controversial. But what about during work hours? Some companies give employees a 30m break at any time, if I push a commit to a personal project at that time, is that unethical? What if I push a commit during work hours but I'm off that day? Some people even self-assess an individual through their github profile without clarifying or confirming with the individual. It's just a small tool, unethical depending on how you use it.

Collapse
 
neurolov__ai profile image
Neurolov AI

This is such a thoughtful and innovative idea.

Collapse
 
ronaldohoch profile image
Ronaldo Hoch

Strange, how they check the commit hour by the green squares?

Collapse
 
thanhphuchuynh profile image
Huynh Thanh Phuc

Just click into any green squares, then the Github will show a list of commits at this time, hover,, and view details

Collapse
 
ronaldohoch profile image
Ronaldo Hoch

Ooh, now I understand why I didn't see anything. 😅

Thread Thread
 
thanhphuchuynh profile image
Huynh Thanh Phuc

Private repositories, maybe you should find commits on a public repo

Collapse
 
xwero profile image
david duymelinck

What a weird way of promoting your project.

You have a problem with people asking why you only push during work hours, and your solution is to let your project create commits during working hours?

Collapse
 
thanhphuchuynh profile image
Huynh Thanh Phuc • Edited

I just shared my tool (just for fun), some time during my working time at the company, during my break time, ... I usually push code, commit something (like the utils components, some ideas, code fix bug of my project, code to test some tools) on my GitHub. That is my routine.
When I was in an interview, some people looked at my GitHub profile and told me I hadn't focus on tasks in my company.

Collapse
 
joepaulvilsan_7 profile image
joepaulvilsan

great thinking to a problem

Collapse
 
skhmt profile image
Mike 🐈‍⬛

Isn't the answer something like, "I work during work hours and part of that process is pushing code"? Or was it a personal github account?

Collapse
 
member_a2c4fbce profile image
member_a2c4fbce

This is a very weird post, so a potential employer noticed that you work on your own projects while you are supposed to be working for your actual employer and this how cope with it..?

Collapse
 
thanhphuchuynh profile image
Huynh Thanh Phuc

It’s actually just a small side feature of GoCommit with AI, not something I really use often 😅
The post was more about how commit history doesn’t truly reflect how dedicated someone is — time zones, async work, or personal learning can make it look different on GitHub.

Collapse
 
m0ri4rty4 profile image
M0ri4rty4

Smart tools but if i am interviewer I won't hire who use this tool but maybe i will hiring who can answer with direct answer with honest.

Collapse
 
sandropacella profile image
Sandro Pacella

Really cool way to promote your project! Best of luck and good vibes.