Adding files from a folder using terminal to a branch I created on the website

Hi, I created a repository on the website: Iris-flower-data-set with README file and then I created a folder on my local pc using WSL2 terminal. The folder name is Iris flower data set
Then, I changed the directory to it and then I used the command: git init
Initialized empty Git repository in /home/****/Iris flower data set/.git/
After that, in this folder I created a file: and edited the file with specific code.
I used the command: git add and then git commit -m "some message"

After that, on the website I created a new branch named: plot-edits

After that, in the terminal I used the command: git remote add origin

I wanted to add the file to this branch and work on it.

In the terminal, I used the command git branch and the output was master
So, I used the command git fetch the output was:

warning: no common commits
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), 1.37 KiB | 701.00 KiB/s, done.
From GitHub - AsafYus/Iris-flower-data-set: Use scikit-learn library to show the flowers dataset and choose two algorithms to classify the flowers and show the results.

  • [new branch] main → origin/main
  • [new branch] plot-edits → origin/plot-edits

The command git branch -a showed me:

  • master

Then, I switched to the desired branch by using: git checkout plot-edits
But then, checking with ls command, there is no files that I can push.

The search lead to me to: github - Move all files from master to another branch in Git - Stack Overflow but in the answer, there is a bold warning: force pushing is a destructive action and might cause issues, so I don’t know if I need to do it.

Is my way of working right at all?
I mean all the jumps between the WEB platform of GitHUb and the terminal platform on my local pc.
Also how do I actually use the file I created in the branch I created plot-edits?


Is something missing in the details of my question?
Would appreciate help.