We always welcome changes or additions from outside contributors! Please send us your pull request!
$ git clone [email protected]:lanl/qmd-progress.git
$ cd bml
$ git config user.name “Your Name”
$ git config user.email “[email protected]”
While working on a pull request it lives on a "feature branch". You can name that branch anything you want (in this example we will call it "new_feature")
$ git checkout -b new_feature master
After creating the feature branch make your changes and commit at least once:
$ git push --set-upstream origin new_feature
(The last step creates the branch on GitHub.)
Go to QMD- PROGRESS. Create the pull request by clicking on the Compare & pull request button. You should add a comment. In addition you can suggest one or several reviewers but this step is optional. Now click on Create pull request.
The pull request can be updated by either adding more commits to it or by amending existing commits. For example, after you add new commits on the “new_feature” branch you can
$ git push
to update the pull request. If you changed existing commits on the feature branch by amending or rebasing the commits a force push is necessary to update the pull request on GitHub:
$ git push force
$ git remote update --prune # Update remotes
$ git rebase upstream/master master # Sync local master with upstream master
$ git push # Sync forked master with local master
$ git checkout -b new_feature upstream/master
$ git log --graph --decorate --all
$ git commit --all
$ git push --set-upstream origin new_feature
$ git commit --all --amend
$ git push --force
$ git remote update --prune # Update remotes
$ git rebase upstream/master master # Sync local master with upstream master
$ git push # Sync forked master with local master
$ git branch -d new_feature # Delete local feature branch
$ git diff master src/system_mod.F90 > system_mod.F90.patch
$ git cherry-pick 28ec7eed21e862d41cc7d38ade82e8e4218a504e