Getting Started with Git
Fork the main project https://github.com/OpenMRS-Australia/openmrs-cpm.gitÂ
Clone your project to a directory (using GitHub client or command line below)
git clone http://github.com/yourUsername/openmrs-cpm.git
Go into the newly cloned folder
cd  openmrs-cpm
Add the main project as a remote branch (convention typically calls it "upstream" as shown below)
git remote add upstream https://github.com/OpenMRS-Australia/openmrs-cpm.git
Make your changes and commit them locally
To add a new file
git add fileName
To commit your changes
git commit -m "This is a commit message. Make it descriptive"Â
Push your local changes to your GitHub.com account
git push origin masterÂ
To contribute back to the main project,
Retrieve latest changes from the main project
git pull upstream master
Resolve conflicts (if any)
Commit changes
Go to your GitHub.com repot (http://github.com/yourUsername/openmrs-cpm.git) and to make a pull request
Â
Useful Links
Interactive tutorial:Â https://try.github.io/
Cheat Sheet:Â https://training.github.com/kit/downloads/github-git-cheat-sheet.pdfÂ
Â
Â
Â
Â