...
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
...
--global
can be removed if you want to setup only the current repository.
Also add the Apache NetBeans incubator project NetBeans project as your upstream in order to submit PRs:
git remote add upstream https://github.com/apache/incubator-netbeans.git
Use branches
You need to create a Pull Request for a fix or a new feature. Pull Requests are not fixed in time. If you change your history the PR will be impacted.
...