Hiding GitHub token in .gitconfig

后端 未结 4 1450
失恋的感觉
失恋的感觉 2021-02-05 10:27

I would like to store all of my dotfiles on GitHub, including .gitconfig which requires me to hide the GitHub token in the .gitconfig.

To do so I have a \".gitconfig-hid

4条回答
  •  孤街浪徒
    2021-02-05 11:04

    I made a script to update my dotfiles repo, it also redacts sensitive information such as my github token. I don't think the github token is used by GitHub anymore though, but correct me if I'm wrong.

    You can view my script here.

提交回复
热议问题