Page MenuHomeDevCentral

git-update
No OneTemporary

git-update

#!/bin/sh
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REPO=$(git rev-parse --show-toplevel)
REPO_RETCODE=$?
if [ $REPO_RETCODE -ne 0 ]
then
exit $REPO_RETCODE
fi;
git fetch --all
git reset origin/$BRANCH && git status

File Metadata

Mime Type
text/x-shellscript
Expires
Sun, Nov 15, 04:42 (1 w, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4241979
Default Alt Text
git-update (224 B)

Event Timeline