forked from obspy/obspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Interesting Reading on Git, GitHub
jkmacc-LANL edited this page May 30, 2016
·
8 revisions
- github development workflow
- convert existing issue into a pull request
- can be done using github/hub
- or via a simple POST command, e.g. using
curl
:
curl --user megies --request POST --data '{"issue": "2", "head": "megies:testbranch2", "base": "master"}' https://api.github.com/repos/obspy/obspy/pulls
# in case of 2-factor authentication enabled..
curl --header "X-GitHub-OTP: 123456" --user megies --request POST --data '{"issue": "2", "head": "megies:testbranch2", "base": "master"}' https://api.github.com/repos/obspy/obspy/pulls
- **issue**: number of the *already existing* normal issue
- **head**: *repository/branch* that should be pulled in
- **base**: branch that the pull request should be merged into (target repository specified in the url), usually either `master` (for feature branches) or `releases` (for bug fixes)
- interaction with svn
- Squash commits using
git rebase
# squash the last 4 commits interactively
# Only do this on a branch no one else is using
git rebase -i HEAD~4
git push --force upstream my_feature_branch