Skip to content

Instantly share code, notes, and snippets.

@jverweijL
Last active January 30, 2019 10:57
Show Gist options
  • Select an option

  • Save jverweijL/15f3b251a81814a6681743605dcc5a06 to your computer and use it in GitHub Desktop.

Select an option

Save jverweijL/15f3b251a81814a6681743605dcc5a06 to your computer and use it in GitHub Desktop.
Typical git flow

First get a fresh clone
git clone [repo]

Or if you had the repo already local check the status
git status

Let's create new branch
git checkout -b [new-branch]

Add all you new stuff
git add -A

Commit it
git commit -m "my new module"

Push it
git push origin [new-branch]

Now in github do a pull-request/merge this branch with master or any other branch

Once merged git checkout master

Pull changes git pull

Remove branch `git branch -d [new-branch]

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