-
Notifications
You must be signed in to change notification settings - Fork 0
Development
cparlette edited this page Jan 27, 2013
·
10 revisions
Descriptions and guides for the development of bitfl
http://scottchacon.com/2011/08/31/github-flow.html
- If an Issue doesn't already exist, create an Issue referencing what you are working on.
- Assign the Issue to yourself.
- Create a new branch, with a name related to the issue.
- Make a change.
- Commit (using git commit -a). Use first line as a summary, then expand in later lines if necessary. Use "fixes #xyz" if relevant.
- Make more changes if necessary, committing as you go to keep commits related.
- Push back to origin
- Open a pull request in the github web UI. Add notes for how to test these changes if possible.
- Wait for someone to review your request, test the changes, and either comment or merge (if tests are verified).
$ git remote <url from github>
$ git checkout -b feature_branch
$ git push origin feature_branch
$ git fetch -p
- -p will 'prune', removing any local branch that does not exist on origin
$ git checkout feature_branch
$ git merge master
If you make a mistake and commit a change to the wrong branch, you can revert any commit:
http://stackoverflow.com/questions/4114095/git-revert-to-previous-commit-how
To do this, you will need to edit the hook script that is executed on post-commit.
From the bitfl dir:
$ nano .git/hooks/post-commit
This should likely be empty, add the following contents:
#!/bin/sh
# This script will execute after a commit is complete
# Automatically push the changes back to origin
git push