-3

I have just initialized a web project which contains two folders: 'client' initialized by create-react-app and 'server' initialized by express.Then I run git init in the root content and then git add . and git commit ... as usual. Here comes the problem: the changes in source control showed me that 'client' contains emphasized items and no matter how many times I do the commit or discard ths changes showed about 'client', seems like it has always been there.When I pushed the commit to my remote repository, the client folder is empty. After the first push, every time I tried to push again the cmd just show Changes not staged for commit: modified: client (modified content, untracked content), So what's wrong with the 'client' folder? I really didn't do anything after initializing...

Adam Millerchip
  • 20,844
  • 5
  • 51
  • 74
Sherr_Y
  • 63
  • 6

1 Answers1

-2
git init
git add .
git remote add origin 'urlofrepository'
git commit -m 'first commit'
git push -u origin master
goregasm
  • 90
  • 3