Trying to push many folders into 1 repo, get fatal: invalid refspec 'Assignment2:' for local repo or folder name

Hi everyone, I am trying to add different folders to same repo and not sure if this is the right way to go but but I am just experimenting
I tried to push different folders to different branches of same repo, I get fatal: invalid refspec ‘Assignment2:’ error for local repo or folder name, I have pasted all of my commands below, please help me so I can learn something new
I have replaced the remote https url as " my master repo url" because I can’t paste more than 2 links since this is my first post

Sadias-MacBook-Air:secondWeekk sadiaauroni cd .. Sadias-MacBook-Air:Downloads sadiaauroni cd Assignment1
Sadias-MacBook-Air:Assignment1 sadiaauroni ls Makefile a.out expected_output.txt test_input_file.txt README.txt chain.h test_chain.cpp Sadias-MacBook-Air:Assignment1 sadiaauroni git init
Initialized empty Git repository in /Users/sadiaauroni/Downloads/Assignment1/.git/
Sadias-MacBook-Air:Assignment1 sadiaauroni $ git commit -m “first assignment”
On branch master

Initial commit

Untracked files:
.DS_Store
Makefile
README.txt
a.out
chain.h
expected_output.txt
test_chain.cpp
test_input_file.txt

nothing added to commit but untracked files present
Sadias-MacBook-Air:Assignment1 sadiaauroni git remote add origin " my master repo url" Sadias-MacBook-Air:Assignment1 sadiaauroni git push origin master
error: src refspec master does not match any.
error: failed to push some refs to " my master repo url"
Sadias-MacBook-Air:Assignment1 sadiaauroni git init Reinitialized existing Git repository in /Users/sadiaauroni/Downloads/Assignment1/.git/ Sadias-MacBook-Air:Assignment1 sadiaauroni git add .
Sadias-MacBook-Air:Assignment1 sadiaauroni git commit -m "first assignment" [master (root-commit) a9a2855] first assignment 8 files changed, 353 insertions(+) create mode 100644 .DS_Store create mode 100755 Makefile create mode 100755 README.txt create mode 100755 a.out create mode 100644 chain.h create mode 100755 expected_output.txt create mode 100644 test_chain.cpp create mode 100755 test_input_file.txt Sadias-MacBook-Air:Assignment1 sadiaauroni git remote add origin " my master repo url"
fatal: remote origin already exists.
Sadias-MacBook-Air:Assignment1 sadiaauroni $ git push origin master
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 4 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 23.90 KiB | 3.98 MiB/s, done.
Total 10 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done.
To " my master repo url"

  • [new branch] master -> master
    Sadias-MacBook-Air:Assignment1 sadiaauroni git fetch origin Sadias-MacBook-Air:Assignment1 sadiaauroni popd
    -bash: popd: directory stack empty
    Sadias-MacBook-Air:Assignment1 sadiaauroni cd .. Sadias-MacBook-Air:Downloads sadiaauroni cd Assignment2
    Sadias-MacBook-Air:Assignment2 sadiaauroni git init Initialized empty Git repository in /Users/sadiaauroni/Downloads/Assignment2/.git/ Sadias-MacBook-Air:Assignment2 sadiaauroni git add.
    git: ‘add.’ is not a git command. See ‘git --help’.

The most similar command is
add
Sadias-MacBook-Air:Assignment2 sadiaauroni git add . warning: CRLF will be replaced by LF in ReadME.txt. The file will have its original line endings in your working directory warning: CRLF will be replaced by LF in SequenceMap.h. The file will have its original line endings in your working directory Sadias-MacBook-Air:Assignment2 sadiaauroni git commit -m “trying to have different folders in different branches”
[master (root-commit) d17de8f] trying to have different folders in different branches
16 files changed, 2604 insertions(+)
create mode 100644 .DS_Store
create mode 100755 AvlTree.h
create mode 100755 BinarySearchTree.h
create mode 100644 Makefile
create mode 100644 ReadME.txt
create mode 100755 SequenceMap.h
create mode 100755 dsexceptions.h
create mode 100644 input_part2a.txt
create mode 100755 query_tree
create mode 100755 query_tree.cc
create mode 100644 query_tree.o
create mode 100755 rebase210.txt
create mode 100755 sequences.txt
create mode 100755 test_tree
create mode 100755 test_tree.cc
create mode 100644 test_tree.o
Sadias-MacBook-Air:Assignment2 sadiaauroni $ git remote add origin git config --get remote.origin.url
error: unknown option `get’
usage: git remote add []

-f, --fetch           fetch the remote branches
--tags                import all tags and associated objects when fetching
                      or do not fetch any tag at all (--no-tags)
-t, --track <branch>  branch(es) to track
-m, --master <branch>
                      master branch
--mirror[=(push|fetch)]
                      set up remote as a mirror to push to or fetch from

Sadias-MacBook-Air:Assignment2 sadiaauroni $ git remote add origin git config – get remote.origin.url
usage: git remote add []

-f, --fetch           fetch the remote branches
--tags                import all tags and associated objects when fetching
                      or do not fetch any tag at all (--no-tags)
-t, --track <branch>  branch(es) to track
-m, --master <branch>
                      master branch
--mirror[=(push|fetch)]
                      set up remote as a mirror to push to or fetch from

Sadias-MacBook-Air:Assignment2 sadiaauroni git remote add origin https://github.com/mommyslab/CSCI335.git Sadias-MacBook-Air:Assignment2 sadiaauroni git push origin Assignment2:Assignment2
error: src refspec Assignment2 does not match any.
error: failed to push some refs to ‘https://github.com/mommyslab/CSCI335.git
Sadias-MacBook-Air:Assignment2 sadiaauroni git push origin Assignment2: Assignment2 fatal: invalid refspec 'Assignment2:' Sadias-MacBook-Air:Assignment2 sadiaauroni git push origin Assignment2 Assignment2
error: src refspec Assignment2 does not match any.
error: src refspec Assignment2 does not match any.
error: failed to push some refs to " my master repo url"
Sadias-MacBook-Air:Assignment2 sadiaauroni git show-ref d17de8fc0f30b3f56ed6a0852e094916e145e57a refs/heads/master Sadias-MacBook-Air:Assignment2 sadiaauroni git checkout -b Assognment2
Switched to a new branch ‘Assognment2’
Sadias-MacBook-Air:Assignment2 sadiaauroni git push origin Assignment2: Assignment2 fatal: invalid refspec 'Assignment2:' Sadias-MacBook-Air:Assignment2 sadiaauroni
[Restored Jul 12, 2020 at 12:42:04 PM]
Last login: Sun Jul 12 12:41:58 on console
Restored session: Sun Jul 12 00:57:31 EDT 2020
/Users/sadiaauroni/Downloads/Assignment2
Sadias-MacBook-Air:Assignment2 sadiaauroni $

Hi @mommyslab, thanks for stopping by!

What would be the intent behind creating a different branch for each folder?