Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method for uninstalling the dot files #969

Open
asbenjamin opened this issue Jan 22, 2022 · 6 comments
Open

Add a method for uninstalling the dot files #969

asbenjamin opened this issue Jan 22, 2022 · 6 comments

Comments

@asbenjamin
Copy link

It would be nice if you added a description for how to revert to the original settings. Thank you.

@lutim-mitul
Copy link

lutim-mitul commented Feb 22, 2022

I really want to uninstall it because I can't use Git after installing it .
image
and I dont know how to solve it so if anyone find how to solve attached problem please give me solution

@ghost
Copy link

ghost commented Mar 3, 2022

@lutim-mitul Check out https://github.com/mathiasbynens/dotfiles/blob/main/.gitconfig#L130

Your issue has nothing to do with git at all.

The author states:

Warning: If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!

@ghost
Copy link

ghost commented Mar 3, 2022

It would be nice if you added a description for how to revert to the original settings. Thank you.

@asbenjamin Have you created a backup of your settings before you applied the settings from this repo?

@franclin
Copy link

same issue, after installing it, Git simply doesn't work for me anymore. It used to. As can be seen in the screenshot, I was expecting git fetch to retrieve the list of remote branches but it's not working as expected so I need a way to revert the changes applied by dotfiles

Screenshot 2022-05-31 at 09 47 36

@PaulRBerg
Copy link

@franclin check your colors profile - it's a known problem with the Solarized Dark theme that sometimes it blackens out the text. You may have to tweak the contrast a bit.

@franclin
Copy link

franclin commented Jun 2, 2022

@franclin check your colors profile - it's a known problem with the Solarized Dark theme that sometimes it blackens out the text. You may have to tweak the contrast a bit.

Hi @PaulRBerg I check all that but the reality is that I should have not installed this tool in the first place as it is far too risky. It changes a lot of default without backing them up. So I ended up reinstalling the whole system instead (thanks 👎 )

The solution to display the git branch in the prompt that I found useful was actually a lot simpler than I thought. I first created ~/.bash_profile file then enter these commands in them:

# Git branch in prompt.
parse_git_branch() {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/'
}
export PS1="\u@\h \W\[\033[01;33m\]\$(parse_git_branch)\[\033[00m\] $ "

It is risk free and doesn't alter any built-in or most importantly doesn't install any conflicting package. In the case of Dot files, it's installing another bash and many other files.

Hoping that my experience will help others. In a nutshell, I wouldn't recommend installing dotfiles at this stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants