arrow
Return

Git command recommendations using crowd-sourced knowledge

delete2023-07-01
delete0
PRE
AI
H
Haitao Jia
W
Wenhua Yang *
C
Chaochao Shen
M
Minxue Pan
周
周余 (Yu Zhou)
DOI:10.1016/j.infsof.2023.107199delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Context: Git is a fast, scalable, distributed version control system with a rich command set that provides high-level operations and full access to the internals. It has been widely used by millions of developers worldwide. However, due to the flexibility of the usage of Git commands and the scarcity of Git documentation, many developers have experienced difficulties when using Git commands. Objective: This paper aims to propose an automatic approach to recommending Git commands for developers given a query described by natural language.Method: Our approach makes recommendations by mining the crowd-sourced knowledge related to Git on Stack Overflow. It first constructs a keyword-command mapping database from Git-related posts, then analyzes the similarity between the query given by the developer and the keywords in the database to retrieve the candidate commands, and proposes an algorithm to rank the candidate commands.Results: Our approach's recommendation results significantly outperform the baseline approaches in several metrics (e.g., Top-K accuracy). Meanwhile, the experimental results have shown that the favorable efficiency of our approach can promise its use by developers in real-world scenarios.Conclusion: The Git command recommendation approach proposed in this paper is effective and can be helpful for developers to use Git commands for more efficient development.
Keywords:
Git command
Recommendations
Stack overflow

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.8K
Citations:
7.7K

Organization

N
nanjing university
Scholars:
7.8W
Papers: 5.6W
Citations: 87
Cited Papers

Cited Papers

Enzymatic analysis of total- and HDL-cholesterol: Comparison with the standardized Liebermann-Burchard method used by the lipid research clinics program
err1988-06-01
err0
errOAAI
errPaul S. Bachorik; Donna G. Virgil; Carol Derby; David Widman; Robert McMahon; Robinson P. Fulwood; Trena Ezzati
errShare
errSave
Poorer self-rated health in residential areas with limited healthcare supply
err2014-02-12
err0
PREAI
errSigríður Haraldsdóttir; Unnur A Valdimarsdóttir; Sigurður Guðmundsson
errShare
errSave
Awareness and knowledge of anal cancer in a community-recruited sample of HIV-negative and HIV-positive gay and bisexual men
err2019-01-01
err0
PREAI
errLance Feeney; Mary Poynten; Fengyi (Jeff) Jin; Craig Cooper; David J. Templeton; Matthew R. O'Dwyer; Andrew Grulich; Richard J. Hillman
errShare
errSave
Enriching API Documentation with Code Samples and Usage Scenarios from Crowd Knowledge
err2021-06-01
err20
PREAI
errZhang, Jingxuan; Jiang, He; Ren, Zhilei; Zhang, Tao; Huang, Zhiqiu
errShare
errSave
errShare
errSave
Diabetic neuropathies in brain are induced by deficiency of BDNF
err2002-09-01
err0
PREAI
errA Nitta; R Murai; N Suzuki; H Ito; H Nomoto; G Katoh; Y Furukawa; S Furukawa
errShare
errSave
errShare
errSave
researcher View more