This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the upstream, i.e. main repo, master | |
git fetch upstream | |
# Force the current local branch to equal upstream master | |
git reset --hard upstream/master | |
# Force update of remote repo. WARNING: THIS CAN BREAK STUFF | |
git push origin master --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my_roll(arr, x): | |
arr[0:-1] = arr[1:] | |
arr[-1] = x | |
return arr |
NewerOlder