Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 50ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
aixinwudi

aixinwudi / easytier-docker-compose

Last active 31 minutes ago

easytier的容器编排

0 0 1
1 services:
2 easytier:
3 # 国内用户可以使用 daocloud.io 镜像
4 # image: m.daocloud.io/docker.io/easytier/easytier:latest
5 image: easytier/easytier:latest
6 hostname: tencentcloud
7 container_name: easytier
8 labels:
9 com.centurylinklabs.watchtower.enable: 'true'
10 restart: unless-stopped
aixinwudi

aixinwudi / 一键恢复 Git 仓库的所有远程分支

Last active 30 minutes ago

一个轻量级 Shell 脚本,用于一键恢复 Git 仓库的所有远程分支。自动为所有 origin/* 分支创建本地跟踪分支,跳过已存在的分支。完美支持离线环境,无需执行 git fetch ,直接基于本地已有的远程引用快速恢复完整的开发分支树。

0 0 1
1 #!/bin/sh
2 # ==============================================================================
3 # 脚本名称: git-restore-all-remote-branches.sh
4 # 描述: 基于本地远程引用批量恢复本地跟踪分支
5 # 兼容性: 兼容所有 POSIX sh 环境,Git 1.7+
6 # ==============================================================================
7
8 set -e
9
10 # -------------------------- 变量定义 ----------------------------------------