Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
void main(){
std::cout << "Hello world" << std::endl;
}
@zebreus
zebreus / import.sh
Last active October 6, 2020 13:21 — forked from whistler/import.sh
Copy files to another repository while saving git history
# copied from http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/
git clone <git repository A url> # clone source repository
cd <git repository A directory>
git remote rm origin # to make sure it doesn't affect the original repository
git filter-branch --subdirectory-filter <directory 1> -- --all # remove all files other than the ones needed
mkdir <directory 1> # move them into another directory where they will be stored in the destination repository (if needed)
mv * <directory 1>
git add .
git commit
@zebreus
zebreus / INSTALL
Last active September 2, 2019 13:17
Certificate Generator Installationsanleitung
#!/bin/bash
## Instalationsanleitung webdemo
### Schritt 0: docker und docker-compose installieren
### Schritt 0.5: Sicherstellen, dass der Nutzer auf docker zugreifen darf. Dazu den Nutzer zur Gruppe docker hinzufügen.
### Schritt 1: Repos clonen
git clone --recursive https://github.com/Zebreus/webClient.git
git clone https://github.com/Zebreus/certificate-generator.git
### Schritt 2: WebClient erstellen.
cd webClient