Access Git username in c file
by atharvdesai1996 from LinuxQuestions.org on (#4Y47M)
Hello Everyone,
I'm writing a C file in ubuntu which on execution should create a text file and write git username in it. I have completed text file creation part in my C code and also the general git configuration part whereby typing git global username gives me github username. What should I write in my C code so that when i run it on terminal, it should write my git username in the created text file??


I'm writing a C file in ubuntu which on execution should create a text file and write git username in it. I have completed text file creation part in my C code and also the general git configuration part whereby typing git global username gives me github username. What should I write in my C code so that when i run it on terminal, it should write my git username in the created text file??