Last active
September 29, 2015 11:48
-
-
Save atomsfat/1595679 to your computer and use it in GitHub Desktop.
Git tips and trips
This file contains 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
#ignore changes: | |
git reset --hard | |
#delete remote branch | |
git push origin :newfeature | |
#delete local branch | |
git branch -d the_local_branch | |
#get remote branch | |
get remote branch | |
git remote show origin | |
git fetch | |
#from stash | |
git stash | |
git checkout -b new-branch | |
git stash apply | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment