This forum has been archived. All content is frozen. Please use KDE Discuss instead.

problem with my .gitconfig

Tags: gitconfig, help, git, config, konsole, console, terminal gitconfig, help, git, config, konsole, console, terminal gitconfig, help, git, config, konsole, console, terminal
(comma "," separated)
thea
Registered Member
Posts
5
Karma
0

problem with my .gitconfig

Tue Apr 19, 2022 9:30 pm
Hi,
I kind of have a problem with my terminal Konsole.
Every time I want to add a file or commit it or pull and push the project that I am currently working on, it show me this error :

Code: Select all
fatal: line 1 of incorrect config in the file/home/local.isima.fr/thurbanows1/. gitconfig


I really need to know why and how I can fix this, can someone help me please ?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: problem with my .gitconfig

Wed Apr 20, 2022 9:43 am
Hi!

Change the $HOME/.gitconfig (or explicit /home/local.isima.fr/thurbanows1/.gitconfig) and write a correct first line. Git normally throws a more specific error message, like 'no such section' which should give you a hint.
thea
Registered Member
Posts
5
Karma
0

Re: problem with my .gitconfig

Wed Apr 20, 2022 11:25 am
Hi!

I moved into /home/local.isima.fr/thurbanows1/.gitconfig but it tells me that it is not a file so i can't move into it
thea
Registered Member
Posts
5
Karma
0

Re: problem with my .gitconfig

Wed Apr 20, 2022 11:31 am
koffeinfriedhof wrote:Hi!

Change the $HOME/.gitconfig (or explicit /home/local.isima.fr/thurbanows1/.gitconfig) and write a correct first line. Git normally throws a more specific error message, like 'no such section' which should give you a hint.



I tried to move into /home/local.isima.fr/thurbanows1/.gitconfig but it won't allow me, it says that it is not a file
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: problem with my .gitconfig

Wed Apr 20, 2022 12:19 pm
Can you please show the output of your git command that fails? And also
Code: Select all
file ~/.gitconfig
thea
Registered Member
Posts
5
Karma
0

Re: problem with my .gitconfig

Wed Apr 20, 2022 3:34 pm
koffeinfriedhof wrote:Can you please show the output of your git command that fails? And also
Code: Select all
file ~/.gitconfig


The output is the same that I put on my first post.

When I did your command this was the output :

Code: Select all
/home/local.isima.fr/thurbanows1/.gitconfig : UTF-8 Unicode text
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS

Re: problem with my .gitconfig  Topic is solved

Wed Apr 20, 2022 4:16 pm
Did you open the file and checked the first line in it? This one must be wrong.
thea
Registered Member
Posts
5
Karma
0

Re: problem with my .gitconfig

Wed Apr 20, 2022 6:34 pm
koffeinfriedhof wrote:Did you open the file and checked the first line in it? This one must be wrong.


it was in fact that, my comment was actually not commented, thank you !!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]