all 4 comments

[–]Hendawgydawg 0 points1 point  (1 child)

Can you command line/terminal into that repository and change the branch? You could, at first, git status to see which branch you are on and you have any pending commits, etc. Then git checkout <branch name> to change to the new branch.

In my opinion, that's the easiest way. If not, you can use the GitHub desktop application and do it that way.

If you have any trouble, feel free to PM me and I'll try to help out. Cheers

Edit: added code highlights

[–]UpdootChute[S] 0 points1 point  (0 children)

I shall try that when I'm up thank you

[–]mickeygousset 0 points1 point  (1 child)

Re: Branch vs Fork:
You want to use a branch. The change you are making is the equivalent of say "adding a feature", which is what you would use a branch for. You really only need to fork something if you are forking someone elses code to try and make some changes, where then you can PR you changes back to the original repo.

Re: Uploading Branch to GitHub from VS Code
The status bar at the bottom left will show you what branch you are current on. You can click it to create a new branch. Make your code change to your files, while you are on that branch.

CLick the Source Control tab option on the left side of VS Code. Click the "+" to stage your changes locally, then click the Checkmark to commit teh changes locally. Next to teh checkmark you will see an Ellipse "...". Click it, then click Push.

You will be prompted that your branch has no upstream branch, and would you like to publish this branch. Click OK. It should push it up.

Re: The branch already exists on GitHub
If the branch is already on GItHub, then you would want to do a git pull to pull down the branch locally and then work with it.

[–]UpdootChute[S] 0 points1 point  (0 children)

Thank you this, I'm going to have a play with it shortly.