How to contribute to pyhdust
- References:
Access github page of pyhdust and make a fork.
In download, copy the url and paste it in the following command in your terminal (be sure to do it in the right local path):
git clone https://github.com/GITUSER/pyhdust.git
If you had already downloaded it, sync it with the original source to avoid conflicts:
git remote add upstream https://github.com/danmoser/pyhdust.git # you one need to do this in the first time
git fetch upstream
git checkout master
git merge upstream/master
Make your changes/contribuitions.
To see them, type inside your local folder:
git status
The are two ways for accepting the changes:
git add pyhdust/interftools.py # example file
# or
git add .
# The later, inclues all the newly modified files
Save your actions in the github repository:
git commit -m "Message describing what you have done"
# if it is your first time, you need to configure git (i.e., provide your user name and your email on github):
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
Send the changes to your github account:
git push
Do pull request in the github page of pyhdust.
Example script
#!/bin/bash
# This is a script to submit pyhdust updates
# synchronize with original source
# git remote add upstream https://github.com/danmoser/pyhdust.git
git fetch upstream
git checkout master
git merge upstream/master
echo
echo Perform the changes now
echo
# submit changes
git add .
git commit -m "commit message"
git push
echo
echo If you are not the owner of this repository, please open a PULL REQUEST at github
echo
End
Go back to the Main Page.