×

消息

EU e-Privacy Directive

This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

View e-Privacy Directive Documents

You have declined cookies. This decision can be reversed.

好久没在家写代码了,要把准备做的几个在线工具的代码都用git管理,并放在服务器上面。几个月不折腾,突然发现很多命令和配置都忘记了。在这里记一下,方便以后再查。

1. 库初始化,在将要定义成为git库的目录下执行:

git init
git add .
git commit

建立之后的库默认只能本地使用,想让它能接受远程的push,必须有个金手指文件:

cd .git
touch git-daemon-export-ok

git config --gloabal color.branch auto
git config --gloabal color.diff auto
git config --gloabal color.interactive auto
git config --gloabal color.status auto

 To enable all at once:

git config --gloabal color.ui true

 Donations are greatly appreciated: 14s27QE7ob257dckVVUU1tLXzoX4D9kmnd