Skip to content

Instantly share code, notes, and snippets.

@SuperShinyEyes
Created January 29, 2019 12:59
Show Gist options
  • Save SuperShinyEyes/f029b379fda7cfad7deab4f314005582 to your computer and use it in GitHub Desktop.
Save SuperShinyEyes/f029b379fda7cfad7deab4f314005582 to your computer and use it in GitHub Desktop.
#----------------------------------------------------------
# Remove local uncommited changes
# https://docs.gitlab.com/ee/topics/git/numerous_undo_possibilities_in_git/
git reset --hard
#----------------------------------------------------------
# Fetch
# https://www.atlassian.com/git/tutorials/syncing/git-fetch
git fetch origin master
# To see what commits have been added to the upstream master, you can run a git log using origin/master as a filter:
git log --oneline master..origin/master
git checkout master
git log origin/master
git merge origin/master
#----------------------------------------------------------
# Git LFS
git init
git lfs install
git lfs track '*.mp4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment