Comments (4)
The install.sh
script included in the dotfiles has the ability to help with this. If you include the line "DO NOT EDIT BELOW THIS LINE" anywhere in a config file, it will copy that file over instead of symlinking it, and it will leave everything above that line in your local config intact.
Here's the general layout of my .gitconfig
:
# ADD LOCAL CONFIGURATION HERE
[user]
name = Joe Ferris
email = [email protected]
# DO NOT EDIT BELOW THIS LINE
[push]
default = current
You can edit everything in the local configuration section, and running install.sh
again won't overwrite that; it will just overwrite the content below that.
from dotfiles.
The install.sh script included in the dotfiles has the ability to help with this. If you include the line "DO NOT EDIT BELOW THIS LINE" anywhere in a config file, it will copy that file over instead of symlinking it, and it will leave everything above that line in your local config intact.
Oh yeah, I seem to remember seeing that back in the day. That's awesome!
I took a stab at documenting it here:
I'm now a little confused about whether the stuff above "DO NOT EDIT BELOW THIS LINE" should be in version control, like in croaky/dotfiles. I think not but would love your opinion.
from dotfiles.
You can put stuff in the top section, but anything above that line in ~/.gitconfig
will never be updated by install.sh
.
Here's what mine looks like in my dotfiles repo:
# ADD LOCAL CONFIGURATION HERE
# DO NOT EDIT BELOW THIS LINE
[push]
default = current
# more stuff
from dotfiles.
This was addressed by documentation in 52b2ee1
from dotfiles.
Related Issues (20)
- zshrc line 12 syntax error? HOT 1
- `git up` now rebases against `master` and not `origin/master` HOT 2
- Ctags warnings HOT 7
- fzf moves the cursor in Vim HOT 2
- The default post-checkout git hook breaks git clone
- New location for fzf under macOS with ARM architecture HOT 1
- Do not override :Ag command
- This is shit. HOT 1
- Vim configuration is opinionated and does not provide any opt-out HOT 1
- Weird text when I open vim HOT 2
- Outdated gitconfig explanation in README? HOT 2
- `/vendor` in `.gitignore` breaks Rails 7 deploys
- What's the recommended way to add binaries to $PATH? HOT 2
- zsh profile not fully loading on terminal startup (iTerm2 + Monterrey) HOT 5
- Error detected while processing /home/samuelodan/.vimrc: (E121: Undefined variable: g:has_async) HOT 3
- X
- Python3 os.getenv Failed to Gather Environment Variable During Runtime
- Option-Arrow on a command prompt prevents text from being edited/deleted
- Sourcing asdf has broken the zsh HOT 1
- zsh function .zwc parse errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.