I have tried to edit both my .profile, .bashrc, .inputrc and none of them will let me save any changes without throwing an error.
Can't open linked file for writing
Yet this git/dotfiles folder that it links to doesn’t even exist. I am very new to git only started using it to keep track of few applications i have been working on. But I have no idea why its taken over all my these files. Anybody know why this is?
lrwxrwxrwx 1 william users 35 Jan 30 15:37 .profile -> /home/william/git/dotfiles/_profile
lrwxrwxrwx 1 william users 34 Jan 30 15:37 .bashrc -> /home/william/git/dotfiles/_bashrc
-rw------- 1 william users 26 Jan 25 18:36 .dmrc
-rw-r--r-- 1 william users 561 Mar 22 11:38 .fluxtwitterrc
lrwxrwxrwx 1 william users 32 Jan 30 15:37 .hgrc -> /home/william/git/dotfiles/_hgrc
lrwxrwxrwx 1 william users 35 Jan 30 15:37 .inputrc -> /home/william/git/dotfiles/_inputrc
lrwxrwxrwx 1 william users 35 Jan 30 15:37 .msmtprc -> /home/william/git/dotfiles/_msmtprc
-rwx------ 1 william users 75 Mar 12 10:14 .netrc
lrwxrwxrwx 1 william users 33 Jan 30 15:37 .pdbrc -> /home/william/git/dotfiles/_pdbrc
lrwxrwxrwx 1 william users 36 Jan 30 15:37 .screenrc -> /home/william/git/dotfiles/_screenrc
-rw-r--r-- 1 william users 8.5K Apr 15 09:37 .vimrc
That is the output of both commands. As you can see git has just created what I gather to be symbolic links…? But the folder its linked to doesn’t even exist.
On 2013-04-24 10:56, williamfleming wrote:
>
> Thanks for the reply.
>
>
> Code:
> --------------------
> lrwxrwxrwx 1 william users 35 Jan 30 15:37 .profile → /home/william/git/dotfiles/_profile
> lrwxrwxrwx 1 william users 34 Jan 30 15:37 .bashrc → /home/william/git/dotfiles/_bashrc
> -rw------- 1 william users 26 Jan 25 18:36 .dmrc
> -rw-r–r-- 1 william users 561 Mar 22 11:38 .fluxtwitterrc
> lrwxrwxrwx 1 william users 32 Jan 30 15:37 .hgrc → /home/william/git/dotfiles/_hgrc
> lrwxrwxrwx 1 william users 35 Jan 30 15:37 .inputrc → /home/william/git/dotfiles/_inputrc
> lrwxrwxrwx 1 william users 35 Jan 30 15:37 .msmtprc → /home/william/git/dotfiles/_msmtprc
> -rwx------ 1 william users 75 Mar 12 10:14 .netrc
> lrwxrwxrwx 1 william users 33 Jan 30 15:37 .pdbrc → /home/william/git/dotfiles/_pdbrc
> lrwxrwxrwx 1 william users 36 Jan 30 15:37 .screenrc → /home/william/git/dotfiles/_screenrc
> -rw-r–r-- 1 william users 8.5K Apr 15 09:37 .vimrc
> --------------------
>
>
> That is the output of both commands. As you can see git has just
> created what I gather to be symbolic links…? But the folder its
> linked to doesn’t even exist.
I’m not familiar with git. Somehow it is configured to control your home
settings.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
williamfleming wrote:
> Ha I know neither am I , that’s the problem. Any software dev out
> there familiar with git? Im thinking about removing it if I cant get
> this solved…
>
> I cant seem to find anything online about it either.
Well, when I typed git dotfiles into google, I got lots of hits, so I
don’t know how you’re searching.
The links I found give me the impression that this is not native
behaviour of git but something you must have chosen to initiate, so I
suspect you aren’t telling us the whole story.
And you didn’t do as dd asked either; you had to almost but not quite
follow his request.
And you’re posting in the applications forum instead of the programming
forum where you might find some programmers.
All of these are making it more difficult to help you, IMHO. In fact,
I’d recommend you remove git and forget it, since you don’t seem
temperamentally suited to development. JMHO.
Merely the install of git does not cause this. What I’d like to see if the output DenverD asks for, not just for your current user, but also for a newly created user.
Plus: provide all the info about how you got where you are now.
Create a script that renames / moves the _files in the git/dotfiles folder to .files in your homedir (removing the symlnks)
The second is required, otherwise the problem will persist, even after a reinstall with reuse of the homedir.
Well, when I typed git dotfiles into google, I got lots of hits, so I
don't know how you're searching.
The links I found give me the impression that this is not native
behaviour of git but something you must have chosen to initiate, so I
suspect you aren't telling us the whole story.
And you didn't do as dd asked either; you had to almost but not quite
follow his request.
And you're posting in the applications forum instead of the programming
forum where you might find some programmers.
All of these are making it more difficult to help you, IMHO. In fact,
I'd recommend you remove git and forget it, since you don't seem
temperamentally suited to development. JMHO.
Just remove the application? What? If that’s all your going to input why bother posting at all. Git is an application so i posted in the application section. If a mod suggests then ill move it but I seem to have got a couple of replies here. And yes there are lots of hits for git dotfiles in google but they are all related to syncing them to a git repo, Nothing about your files linking into a directory that doesn’t exist. And as for saying im not temperamentally suited to development, that’s just insulting. No im not a developer I just asked for some help. Keep your comments to yourself next time
Thanks Knurpht for the reply
Installed git and created 2 repos for my github account, one links to a few scripts the other links to a python application. Nothing fancy just needed access at my work and at home. I really dont think there is anything else other than creating these and adding few files now and again, this is my first time using git. Only wanted to add something into my $PATH and noticed that I couldn’t access any of my dotfiles.
gittest2@200415:~> ls -hal .profile
-rw-r--r-- 1 gittest2 users 1.1K Jan 26 23:27 .profile
gittest2@200415:~>
gittest2@200415:~> ls -hal .*rc
-rw-r--r-- 1 gittest2 users 1.2K Jan 26 23:27 .bashrc
-rw-r--r-- 1 gittest2 users 861 Mar 28 15:25 .inputrc
gittest2@200415:~>
Thats the commands for another test user. There is no linking on the other user. I will try what you posted in second post, had already started to write this when you added the second one up.
On Wed 24 Apr 2013 11:06:02 AM CDT, williamfleming wrote:
Thats the commands for another test user. There is no linking on the
other user. I will try what you posted in second post, had already
started to write this when you added the second one up.
Thanks
William
Hi
You will probably be able to identify the offending command(s) via
history;
history |less
history |grep git
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 1 day 9:29, 4 users, load average: 0.01, 0.06, 0.05
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Arrandale
Went for this approach and it seems to be working. Thanks for the advice. I also followed Malcolm’s advice but couldn’t find any commands that would give such behaviour. I must have done something but cant seem to spot it.