Skip to content

Instantly share code, notes, and snippets.

@raulperula
Last active November 15, 2017 17:29
Show Gist options
  • Save raulperula/99ed1570faf8042287d9f8e0d29297f6 to your computer and use it in GitHub Desktop.
Save raulperula/99ed1570faf8042287d9f8e0d29297f6 to your computer and use it in GitHub Desktop.
# revert a file
git checkout -- filename
# pull changes maintaining local changes
git stash
git pull
git stash pop
# Changing a remote's URL
https://help.github.com/articles/changing-a-remote-s-url/
# configuration
git config --global user.name "Raúl Pérula-Martínez"
git config --global user.email raules@gmail.com
git config --list
# aliases
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment