10. Basic Steps Working with the HAFS Repository¶
(Please see the Prerequisites for Working with the HAFS Repository)
Fork the HAFS repository and clone the forked repository locally
Branch from the develop branch for new developments
Create a feature branch, add development, complete testing
Commit changes into the local branch and push the local branch to your personal fork
Submit a PR (Pull Request) to request a code review and merge with the authoritative HAFS repository
10.1. Fork the HAFS repository and clone the forked repository locally¶
Navigate to https://github.com/hafs-community/HAFS, locate and click on the “fork” button towards the top right of the page.
Clone your new created HAFS fork to get a local copy, e.g.,
git clone --recursive https://USERNAME@github.com/USERNAME/HAFS.git
Hint: GitHub forking projects
10.2. Branch from the develop branch for new developments¶
Check out the develop branch
git checkout developCreate a new branch from the develop branch
git checkout -b feature/mybranchUpdate the submodules
If there are changes for the URLs of the submodules, run this command to update the remotes of the submodules
git submodule sync --recursiveNote: every time after your clone a git repository or check out a new branch, if submodule changes are expected, you need to update the submodules properly by
git submodule update --init --recursiveMake modifications and commit your changes locally
vi newcode git add newcode git commit -m “Add newcode”
Push your changes to your GitHub HAFS fork
git push origin feature/mybranch