Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5060

Git Configuration (git config --list) what can I erase and how?

$
0
0

I am doing an effort to learn Git using the terminal but I have to say I have not come far. So any help would be useful. I read this thread with my same problem (link) but I was not able to solve it. Additionally, I had another rookie question.

So here it goes. After installing git and doing the git config --user.name and --user.email I went to write git config --list to see what was pre-configured. I found all of this:

core.excludesfile=~/.gitignorecore.legacyheaders=falsecore.quotepath=falsemergetool.keepbackup=truepush.default=simplecolor.ui=autocolor.interactive=autorepack.usedeltabaseoffset=truealias.s=statusalias.a=!git add . && git statusalias.au=!git add -u . && git statusalias.aa=!git add . && git add -u . && git statusalias.c=commitalias.cm=commit -malias.ca=commit --amendalias.ac=!git add . && git commitalias.acm=!git add . && git commit -malias.l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'alias.ll=log --stat --abbrev-commitalias.lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relativealias.llg=log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commitalias.d=diffalias.master=checkout masteralias.spull=svn rebasealias.spush=svn dcommitalias.alias=!git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\     => \2/' | sortinclude.path=~/.gitcincludeinclude.path=.githubconfiginclude.path=.gitcredentialdiff.exif.textconv=exifcredential.helper=osxkeychainfilter.lfs.clean=git-lfs clean -- %ffilter.lfs.smudge=git-lfs smudge -- %ffilter.lfs.process=git-lfs filter-processfilter.lfs.required=trueuser.name=myusernameuser.email=“myemail”user.name=“mynamecore.repositoryformatversion=0core.filemode=truecore.bare=falsecore.logallrefupdates=truecore.ignorecase=truecore.precomposeunicode=true

Now, in the link I send before it explains why everything is pre-configured but I was hoping to start with a clean slate and learn from the bottom. When I write: ls -a in the terminal, I find the .gitconfig file and the .git directory. What is the difference between these two? When I open the .gitconfig I find this

[filter "lfs"]    clean = git-lfs clean -- %f    smudge = git-lfs smudge -- %f    process = git-lfs filter-process    required = true[user]    name = myusername    email = “myemail”    name = “myname

When I go cd .git I find more files, amongst them config, when I open this one, this is what it shows.

[core]    repositoryformatversion = 0    filemode = true    bare = false    logallrefupdates = true    ignorecase = true    precomposeunicode = true

I do not want to make a mistake, on the post I mentioned before it says "You can just erase all of that and start clean if you want." What exactly do I need to erase? Everything?

I also had a small question that will make me look stupid but here it goes. When the terminal wants to show long lists I sometimes use the "down arrow" to see everything and sometimes it says "END" I try to press every button but I cannot go to "END" or just get out of there I can only press the escape button but then it says "ESC" and then blocked again. My rookie solution is close the terminal and start again. What should I do in these events?

enter image description here

Anyway, thanks for taking the time to read this!


Viewing all articles
Browse latest Browse all 5060


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>