Skip to content

Instantly share code, notes, and snippets.

@jefferydutra
Last active February 10, 2023 18:01
Show Gist options
  • Save jefferydutra/e6509d2e73ee71e22d9ec8864022254a to your computer and use it in GitHub Desktop.
Save jefferydutra/e6509d2e73ee71e22d9ec8864022254a to your computer and use it in GitHub Desktop.
Commit and Add
git commit -a -m "Updated flight scheduler to remove dead code"
Undo changes to unstaged files
git reset --hard
Undo file
git checkout -- Applications/WebClient/Web.config
Create Local Branch Targeted at a Remote Branch
git checkout -b task/avoidCallingTracerFunctionSearchWhenUnavailable origin/release/10.2
git checkout -b task/reactRouterUpgradeBagsOnPlane task/reactRouterUpgrade
Push Local Branch to Origin
git push origin jdutra/alarmSummary
Get Latest from remote
git pull
Pull latest tagged change
git checkout v1.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment