git 忽略某个目录 只追踪某个目录下指定的文件
#忽略目录下所有文件
/public/dir/*
#排除掉目录下指定文件
!/public/dir/readme
git pull
当使用https克隆项目时 ,git clone https://xxx.git 后续每次git pull需要输入账号密码
找到项目下的.git/config文件
把git账号:git密码@放到https://后边
原始url = https://codeup.aliyun.com/649a43d0b58/xxx.git
改后url = https://账号:密码@codeup.aliyun.com/649a43d0b58/xxx.git
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://账号:密码@codeup.aliyun.com/649a43d0b58/xxx.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "develop"]
remote = origin
merge = refs/heads/develop
查看所有分支(包括远端)git branch -a

[ * develop ] 表示当前位于本地develop分钟
[ mater ] 表示为本地master分之
[ remotes/origin/.... ] 表示远程分支
拉取远端分支git checkout -b remotes/origin/feature/月结体现改版
centos安装yum
我的centos版本是7.9.2009
归档的centos文件 : https://vault.centos.org/7.9.2009/os/x86_64/Packages/
wget https://vault.centos.org/centos/7.9.2009/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
下载好后
sudo rpm -ivh yum-*.rpm
安装好了
mac os 安装php7.3
首先安装brew
找到usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@7.3.rb 文件
注释
brew install --build-from-source php@7.3
查看文件权限
ls -l 文件名

修改文件权限
chmod 权限值 文件名

linux终端连接本地redis
打开redis客户端 redis-cli
验证密码 auth 密码
[root@ebs-123706 ~]# redis-cli
127.0.0.1:6379> auth 111111
OK
127.0.0.1:6379>
宝塔创建网站后访问出错
Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/dgtapi/public/../storage/framework/maintenance.php) is not within the allowed path(s): (/www/wwwroot/dgtapi/public/:/tmp/) in /www/wwwroot/dgtapi/public/index.php on line 19
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/dgtapi/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dgtapi/public/:/tmp/) in /www/wwwroot/dgtapi/public/index.php on line 34
Warning: require(/www/wwwroot/dgtapi/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/dgtapi/public/index.php on line 34
Fatal error: require(): Failed opening required '/www/wwwroot/dgtapi/public/../vendor/autoload.php' (include_path='.:/www/server/php/73/lib/php') in /www/wwwroot/dgtapi/public/index.php on line 34

删除.user.ini文件即可

查看文件最后100行
tail -n 100 filename
实时查看日志文件的输出
tail -f filename
查看当前目录各个文件大小
du -sh *
查看git中被忽略的文件受到那个ignore影响
git check-ignore -v -- ${file}