git remote prune origin --dry-run
git remote prune origin
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Term::ANSIColor qw(:constants); | |
use Data::Printer; | |
$| = 1; # turn off the buffering of STDOUT | |
my ($choice, $times, $key, $value, @hash); | |
my @array = 0..9; |
#!/bin/bash | |
# Built/tested on: | |
# NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)" | |
# libgit2/libgit2 | |
# https://github.com/libgit2/libgit2/releases | |
# libgit2 is a portable, pure C implementation of the Git core methods | |
# provided as a re-entrant linkable library with a solid API, allowing | |
# you to write native speed custom Git applications in any language with bindings. | |
libgit2='v0.25.0.tar.gz' | |
libgit2ver='0.25.0' |
git checkout master | |
git pull | |
git checkout -b patch/mypatch | |
git fetch origin master | |
git reset --hard origin/master | |
git cherry-pick -m 1 [commit-hash] | |
git push origin patch/mypatch |
rsync -ravz -e ssh [email protected]:/opt/ /home/user/directory/
rsync -avz -e "ssh -A -i /home/user/.ssh/id_rsa" [email protected]:/data /home/user/projects/data