#!/usr/bin/env bash echo "present working directory is:"; pwd; echo ; echo "enter your GIT project dir, or .(dot) followed by [ENTER]:" read directory cd $directory; echo "present working directory is:"; pwd; echo "enter name of experiment branch"; read experiment echo $experiment git checkout $experiment echo "enter name of master branch"; read master echo $master git checkout $master git rebase $master echo "git push --force origin $experiment:$experiment WILL HAPPEN AFTER YOU PRESS ENTER"; read reply git push --force origin $experiment:$experiment exit;
Tuesday, August 11, 2015
GIT Rebase Basic with Force Push.
Subscribe to:
Posts (Atom)