All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
165 views

git: inconsistent behavior when using filter to strip comments

I am using filter to remove comments before committing config files in git: $ cat .git/config [filter "stripcomments"] clean = "stripcomments" $ cat .git/info/attributes /etc/* ...
Martin Vegter's user avatar
1 vote
0 answers
87 views

Only apply neovim rule to one folder

I have a notes folder that is also a git repo with an autocmd in my init.vim set to auto-commit to the repo every time the file gets saved. This behavior is undesirable in git repo folders with actual ...
belkarx's user avatar
  • 335
6 votes
1 answer
1k views

What is the right way to store BitBake configuration under git?

What is correct way to keep track of bitbake configuration and used layers in git?
senx's user avatar
  • 171
1 vote
0 answers
144 views

Why am I still getting a password prompt for git pull even after providing certificate and key

I have added http.sslCert and http.sslKey in git global config file and set http.sslVerify to false but still getting password prompt for git pull. Tried googling for reasons but could not find ...
Sandy's user avatar
  • 111
2 votes
0 answers
264 views

Syntax highlighting for git syntax in gedit

Is there a way to automatically get syntax highlighting for git syntax in gedit? I set gedit as my default git editor with git config --global core.editor "gedit -s". Now when I type git commit, ...
Donentolon's user avatar
6 votes
1 answer
798 views

Can I manage my NixOS configuration in version control like git?

Long story short: I've used only distributions with "imperative configuration management/packaging" approach, so far. And,... I'm annoyed by hard to trace breakages/issues with imperative ...
kravemir's user avatar
  • 4,144
5 votes
2 answers
924 views

How to start Vim in insert mode at end of first line when committing Git changes?

What would be the best way to set Vim up to always put the cursor in insert mode at the end of the first line (to account for commit message templates) when running git commit? This would basically do ...
l0b0's user avatar
  • 51.2k
3 votes
0 answers
514 views

How to do `--index` with `git stash pop` by default?

git stash pop has an option --index which will try to restore the git index upon pop. How to use it by default? I want git stash pop to restore index by default.
VasyaNovikov's user avatar
  • 1,236
2 votes
2 answers
633 views

How to use Git merge drivers with Jenkins

I recently searched for a way to merge pom.xml-s automatically with Git merge driver. Got it working locally, but now I'd like to add this solution to Jenkins -- no luck so far. What I did: 1) I ...
user212154's user avatar
1 vote
1 answer
879 views

Git Server: ignore whitespace changes in new commits

I found a lot of ways to deal with the whitespace problem in Git, but all of them require some sort of action on the user side: configure Git to ignore ws changes, setup a pre-commit hook with warning,...
Ufos's user avatar
  • 192
3 votes
2 answers
609 views

Dealing with machine specific configs when using git for configuration management

I've been using a git repo for managing my systems configs for a while now. I used the documentation on Digital Ocean tutorials here. Pretty much I have a remote repo on a server. Do a git clone of ...
emilan's user avatar
  • 31
0 votes
1 answer
269 views

How to have a global .gitconfig for 2 or more git repos?

This is my .gitconfig as it stands now :- $ cat .gitconfig [user] name = Shirish Agarwal email = [email protected] [credential] helper = cache --timeout=3600 This is in - $ pwd /...
shirish's user avatar
  • 12.3k
10 votes
1 answer
17k views

how to use ~/.ssh/config with Windows/PuTTY? [closed]

How can I use ~/.ssh/config with Windows/PuTTY? Are PuTTY settings stored in the registry? I wish to have my PuTTY settings in git. So it needs to be a human readable text file.
Sybil's user avatar
  • 1,803
25 votes
2 answers
10k views

Using git to manage /etc?

I am thinking on a system, where /etc were tracked on a remote git repository. I am thinking on a git workflow, where every host machine where a different branch. Every previous versions on every ...
peterh's user avatar
  • 9,733
14 votes
3 answers
4k views

git grep colors differ from grep custom colors

I've setup grep colors in my ~/.bashrc : export GREP_COLORS='ms=01;34:mc=01;34:sl=:cx=:fn=35:ln=32:bn=32:se=36' They work for grep --color=auto grep --color=always Unfortunately, those custom ...
Grzegorz Wierzowiecki's user avatar
31 votes
1 answer
39k views

Ignore whitespaces changes in all git commands

I've found tons of sites that explain how to have git warn you when you're changing line endings, or miscellaneous other techniques to prevent you from messing up an entire file. Assume it's too late ...
Michael Mrozek's user avatar