...
Since you don't have write permissions to the github apache mirror, you need to fork https://github.com/apache/incubator-netbeans locally.
You need to clone the forked repository and setup your name and email in github. This will also help git to rebase in order to fulfill its task.
Assuming your fork is at https://github.com/YOUR_USERNAME/incubator-netbeans.git you can clone the forked repository to a local folder using the following command
git clone https://github.com/YOUR_USERNAME/incubator-netbeans.git
Use following commands to set your username and email
git config --global user.name "John Doe"
git config --global user.email "john@doe.org"
...