Skip to content

Instantly share code, notes, and snippets.

@kavitshah8
Last active August 29, 2015 14:21
Show Gist options
  • Save kavitshah8/7c27646a46604dae1c7c to your computer and use it in GitHub Desktop.
Save kavitshah8/7c27646a46604dae1c7c to your computer and use it in GitHub Desktop.
Company Git Workflow
  git pull
  git checkout -b branch/name
  git pull -u origin branch/name

Then create a pull request.Once your pull request is reviewed and merged to the master do the following.

  git branch -d branch/name
  git branch -D branch/name
  git branch -r
  git remote prune origin

git checkout HEAD~ file-name // To revert the file from previous commit, Add the file from the HEAD~ commit to the current commit, ~ jump once, ~~ jump twice.

git commit -n // To avoid git pre commit hooks.

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