- Next to
main↓, clickbranches - Click
New branch - Choose
develas the source, and name itspace-+ your name - Create new branch
- Install Git
- Clone Repository
- Copy repo link:
https://github.com/davidyassa/Programming2-Lab4.git - Head to a folder of your choice and within the folder: "Right click > open in terminal"
- In the terminal, type:
git clone+ repo link - Reopen the terminal window inside the repo folder, then type:
git checkout+ your branch name
- Copy repo link:
- Open Netbeans then go to "File > Open project" and choose the local repo folder
- Go to your GitHub profile settings in the top right corner
- Scroll down on the left pane to "<> developer settings"
- "Personal Access Tokens > Tokens (classic) > Generate new token (classic)"
- Confirm Access with password or passkey
- Name the key (e.g. Netbeans)
- Set expiration date (no expiration if you want this to be one-time)
- Select Scopes →
repo, which gives you access to all your GitHub repos - Scroll to the end to "Generate new token"
- Copy the given key (long code) and paste it in the "password" value in Netbeans
- Before working, pull changes from
devel(development branch)- "Git > Pull > devel"
- After you're done coding, add your files to be comitted
- "Git > Add"
- Commit your changes and
pushthem to your branch- "Git > Commit" and enter a brief commit message
- Push your changes to your branch
- "Git > Remote > Push" and choose your branch
- Create a pull request from your branch to
devel- Back on Github, open a pull request
- At the top choose "
devel←your branch" - add a brief comment
- Once the merge request is approved,
develwill be up to date with your code - When the project reaches its very final stage, it will be merged onto
main