#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $(basename $0) revision"
exit 1
fi
revision="$1"
export GIT_WORK_TREE="$FRAGILE_REPO"
export GIT_DIR="$FRAGILE_REPO/.git"
git remote update
git branch --force testing-branch
git reset --hard "$revision"
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/fragile
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/fragile
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master