Skip to content

Commit ac5ed56

Browse files
committed
adding a Git pull that wipes local changes like Notebook Cells
1 parent 048918f commit ac5ed56

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

refresh-git.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
# Refresh from original Repo
3+
# WARNING will remove all your local changes!!!
4+
# except for files not in Git
5+
#
6+
# Handy if your Jupyter Notebooks have executed Cells you don't want
7+
# to commit.
8+
#
9+
# Author: Just van den Broecke
10+
#
11+
git fetch --all
12+
git reset --hard origin/master

0 commit comments

Comments
 (0)