This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example usage: gcor feature-branch | |
# This will create a local branch 'feature-branch' based on 'origin/feature-branch' | |
function gcor { | |
# Create a new branch locally based on a remote branch from origin | |
git checkout -b $1 origin/$1 | |
# Set the upstream branch for the new local branch to track the remote branch | |
git branch --set-upstream-to=origin/$1 $1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Copyright 2020 Raman Gupta | |
# LICENSE: https://opensource.org/licenses/MIT | |
# https://gist.github.com/rocketraman/820d94f2f9c8731a6f2d56cbc2ddb60f | |
# | |
# Syncs a local keepassxc database with a remote source via rclone. | |
# The basic process is: | |
# 1) rclone copy to temporary local location | |
# 2) use keepassxc cli to merge the remote database into the local one |