TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Do developers know how to use Git commands? A large-scale study (2022)

3 pointsby hazelnut-treeover 1 year ago

2 comments

hazelnut-treeover 1 year ago
From paper:<p><i>Introduction</i><p>- Git comes with a disputed and discussed issue about whether it is easy to learn.<p>- Some developers say Git is difficult to learn; Git commands are often used, but not fully understood.<p>- Three of the top-five questions on SO are about Git commands. The top question, “How do I undo the most recent local commits in Git,” has more than 22k votes and 9m views. This suggests there is some confusion about the use of Git commands.<p><i>Popularity of Git-related questions</i><p>There are 80,000 Git command-related questions on Stack Overflow from 2008 to 2020. The percentage of Git command-related questions and questioners has remained relatively stable. Meanwhile, Git command-related questions on Stack Overflow have higher average numbers of views, favorites, and scores.<p><i>Do Git questions come from novices or experienced developers?</i><p>After 2017, about 40% of the questioners of Git command-related questions had been registered for more than four years at the time of asking the questions, compared to that over 50% of all questioners on Stack Overflow had been registered for less than 2 years.<p>This suggests that even developers with years of development experience can have trouble using Git commands.<p><i>What Git commands are more popular among the questions asked by developers?</i><p>Git commands (e.g., git revert and git reflog) about recovery are among the most popular commands asked, followed by supporting Git commands (e.g., git clean and git help), and commands for branching and conflict resolution (e.g., git mergetool and git branch). Git commands are often used in combination to fulfill tasks.<p><i>Command difficulty</i><p>In terms of the percentage of questions with no accepted answers, some of the seldom used Git commands (e.g., git pack-redundant and git http-push) are ranked high.<p>Commands that are asked in quite a number of questions with low percentages of accepted answers (e.g., git credential and git submodule) tend to be those can be used in complex scenarios.<p><i>How do developers learn to use Git commands? (Responses from qualitative survey)</i><p>Most respondents (from both the academia and the industry) considered their expertise level of using Git commands to be only advanced beginner or competent. A vast majority (81.7%) of all the learning approaches used by our respondents were self-learning (i.e., from the internet and the documentation). Many respondents stressed the importance of understanding Git basic concepts and principles first.
JoeAltmaierover 1 year ago
We had to use git, so I asked our young hotshot to put up a wiki page with common git commands explicitly listed with screenshots.<p>Everybody used that wiki for the entire lifetime of the startup. It was gold.<p>XKCD take on it: <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;1597&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;xkcd.com&#x2F;1597&#x2F;</a>