Unable to continue past lesson 9 on branches


#1

I am currently stuck on lesson 9 where you change to the master branch and then delete the fencing branch.
So what i did is it told me to make a commit before i switch branches, so i then tried to make a commit, which led me to this:

Changes not staged for commit:
modified: resume.txt

Untracked files:
.DS_Store

no changes added to commit

I do not know what to do because i havent learned of these untracked files and why resume.txt isnt staged for a commit.
Feedback to solve this problem would be greatly appreciated.


#2

@mcmasterd
git add file name or use . to add everything at once

git commit -m "commiting these random files"

git push

cd master

and I think deleting is

git fencing -d


#3

Deleting a branch is done with
git branch -d <branch>
or -D to force it in some situations:

From git branch --help:

-d, --delete
    Delete a branch. The branch must be fully merged in its upstream branch, or in HEAD if no
    upstream was set with --track or --set-upstream.

-D
    Shortcut for --delete --force.

#4

Thank you very much for the solutions. I really appreciate it.