I noticed a moment ago that my .gitconfig -file was public at my repo. It contains my secret tokens.
I git-add -u the file and committed. I am not sure whether this command removes the file from the previous commits too.
I want to be sure and search the file in my previous commits such that there is no such a file in my history.
How c...
I edited my .gitconfig file to add support for LabView and it appears that I did something that Git doesn't exactly like. The problem is it (Git) doesn't tell me what it doesn't like. What did I do wrong?
The error message doesn't help much either:
"fatal: bad config file line 13 in c:/Users/Tanner/.gitconfig"
[gui]
recentrepo = C:...
I have editor settings that I want to spread in all repositories. If the user defines its own settings, it should erase the repository choices of course.
I want to do that because I have a class and every student clone the repo. Usually they forget to set the core.editor setting and ends up messing around with vi, usually crashing the r...
Context
A number of my application user configuration files are kept in a git repository for easy sharing across multiple machines and multiple platforms. Amongst these configuration files is .gitconfig which contains the following settings for handling the carriage return linefeed characters
[core]
autocrlf = true
safecrlf = f...
Whenever I run git fetch it fetches all the tags from origin. In a project with lots of tags, this can get quite bothersome. So I ran git config remote.origin.tagopt --no-tags so fetching will no-longer fetch tags.
However, there are some times when I do want to fetch tags, or a single tag. Does anyone know how to do this? (besides remo...
Somewhen (around the 1.6.x releases, I think) git became aware of changes inside submodules. That only serves to annoy me:
$ git status vendor | grep modified:
# modified: vendor/rails (modified content)
$ git diff vendor/
diff --git a/vendor/rails b/vendor/rails
--- a/vendor/rails
+++ b/vendor/rails
@@ -1 +1 @@
-Subproject ...
With bash and zsh I can source subfiles in order to better organize my config.
Can I do something similar with .gitconfig?
...