mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS

Home Page:https://mths.be/dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a method for uninstalling the dot files

asbenjamin opened this issue · comments

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

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

@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!

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?

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

@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 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.