I am unable to get Git to commit

Viewed 36
C:\...>cd  Week-01-CLI_Source_Control_and_Variables

C:\...\Week-01-CLI_Source_Control_and_Variables>git init
Reinitialized existing Git repository in C:/Users/pamel/Documents/BE-Promineo-Tech/Week-01-CLI_Source_Control_and_Variables/.git/

C:\...\Week-01-CLI_Source_Control_and_Variables>git add .

C:\...\Week-01-CLI_Source_Control_and_Variables>git status
On branch master

No commits yet

nothing to commit (create/copy files and use "git add" to track)

C:\...\Week-01-CLI_Source_Control_and_Variables>git add
Nothing specified, nothing added.
hint: Maybe you wanted to say 'git add .'?
hint: Turn this message off by running
hint: "git config advice.addEmptyPathspec false"

C:\...\Week-01-CLI_Source_Control_and_Variables>git add .

C:\...\Week-01-CLI_Source_Control_and_Variables>git status
On branch master
1 Answers

Have you added anything or are you just adding to try it out? Maybe echo a sample.txt file first and then you can try again.

I also don’t see a git commit command, only add. Try doing the commit command next and see if it works.

Related