xxxxxxxxxx
git push -uf origin <branch_name>
xxxxxxxxxx
sudo apt update
sudo apt install redis-server
sudo systemctl restart redis.service
sudo systemctl status redis
redis-cli
xxxxxxxxxx
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
^^^
The solution is that you allow the latest changes to be pulled, without the need for related history order to be applied, trigger this Git command:
git pull origin main --allow-unrelated-histories
xxxxxxxxxx
git push -f origin master (branch name)
xxxxxxxxxx
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
xxxxxxxxxx
sudo apt update
sudo apt install redis-server
sudo nano /etc/redis/redis.conf
#search supervised change redis.conf
supervised systemd
sudo systemctl restart redis.service
sudo systemctl status redis
# Testing
$ redis-cli
ping
# Output
PONG
$ set test "It's working!"
# Output
OK
$ get test
# Output
"It's working!"
$ exit
sudo systemctl restart redis