Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active August 19, 2018 06:31
Show Gist options
  • Save YumaInaura/1a8e97850c3f7bfe1d8351bd98af4e04 to your computer and use it in GitHub Desktop.
Save YumaInaura/1a8e97850c3f7bfe1d8351bd98af4e04 to your computer and use it in GitHub Desktop.
How I git control dotfiles ( and push to Github if you want )

How I git control dotfiles ( and push to Github if you want )

I think put simple script in git controle is good. ( e.g run.sh )

Do not use symbolic link or complicated include in each files.

Script example

#!/bin/bash -eu

cp -r "$HOME/.zshrc" ./
cp -r "$HOME/.vimrc" ./

Command example

sh run.sh
git add .
git commit 
git push

Improved

Anyway you like. ( e.g Put git commands in shell script )

Example

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment