This file contains 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
#define _GNU_SOURCE | |
#include <fts.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
static char *ISP_strip(char *const string) | |
{ |
This file contains 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 cat | |
cd ./repo_a/ | |
git remote add repo_b ../repo_b/ | |
git fetch repo_b | |
git merge --allow-unrelated-histories repo_b/master | |
# handling merge conflicts | |
git merge --continue | |
# merge done, also you can merge more repos |
This file contains 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 cat | |
# checkout with a iso8601 date format | |
git checkout $(git rev-list -n 1 --before="yyyy-mm-dd HH:MM:SS" HEAD) | |
# also can work well with repo command | |
repo forall -c 'git checkout $(git rev-list -n 1 --before="yyyy-mm-dd HH:MM:SS" HEAD)' |