Skip to content

Instantly share code, notes, and snippets.

@arasevic
Last active December 11, 2019 21:23
Show Gist options
  • Save arasevic/302e2fe4c5c7c8d73a61784aa076b9df to your computer and use it in GitHub Desktop.
Save arasevic/302e2fe4c5c7c8d73a61784aa076b9df to your computer and use it in GitHub Desktop.
Helpful git commands I can never remember
# How to do a rebase the Bill way
git fetch
git rebase -p origin/branch_you_branched_off_of
# initial push to remote off of locally created branch
git push --set-upstream origin feature-11076
# command for returning latest tag information
git describe --abbrev=0 --tags
@blackeaglejs
Copy link

git describe --abbrev=0 --tags is useful for returning the latest tag.

@blackeaglejs
Copy link

blackeaglejs commented Dec 11, 2019

Livetail a file - useful for viewing logs while running an app in staging/prod/etc

tail -f filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment