2019-03-12 13:55:08 +00:00
|
|
|
# enables git management through dot command
|
|
|
|
alias dot='/usr/bin/git --git-dir=/home/marty/.dotfiles/ --work-tree=/home/marty'
|
2019-02-18 17:11:36 +00:00
|
|
|
|
2019-03-05 16:45:44 +00:00
|
|
|
# The following commands are run on your git repo if you installed through the script
|
|
|
|
# You can invoke them manually, but it's not recommended to keep them active in here.
|
|
|
|
# Otherwise each time a shell starts up, *whatever directory you are in*, the commands
|
|
|
|
# will be re-run.
|
|
|
|
#
|
2019-02-18 17:11:36 +00:00
|
|
|
## Make git assume the readme is not changing (essentially ignore it).
|
|
|
|
#
|
|
|
|
# This means you can safely remove the README.md file from your home dir
|
|
|
|
# without git trying to delete it from the repository.
|
2019-03-15 13:54:09 +00:00
|
|
|
# If you WANT to make changes to the README.md, you will have to make git
|
2019-02-18 17:11:36 +00:00
|
|
|
# watch it again with the commented out command
|
|
|
|
#
|
|
|
|
# Read more: https://stackoverflow.com/questions/4308610/how-to-ignore-certain-files-in-git
|
|
|
|
# and: https://stackoverflow.com/questions/653454/how-do-you-make-git-ignore-files-without-using-gitignore
|
|
|
|
#
|
2019-03-12 13:55:08 +00:00
|
|
|
#dot update-index --no-assume-unchanged README.md
|
|
|
|
#dot update-index --assume-unchanged README.md
|
2019-02-18 17:17:32 +00:00
|
|
|
|
|
|
|
## Make git not show untracked files (i.e. ALL other files in your home dir)
|
2019-03-12 13:55:08 +00:00
|
|
|
#dot config status.showUntrackedFiles no
|