I created a project on gitlab and i added a user as developer, So my colleague clone the project correctly and he created a new file but when he try to commit with the following command :
git commit -a -m "update"
he got this message :
any explanation and help ?
after you do
if you want submit all of you file code just type
after that you can do
git commit -m "First commit"
next ->
git remote add origin remote repository URL
in the end,
hope it's help.
more useful reference -> github docs existing project
You have a new file in your project. For any new file, you need to add it by running git add .
and then run your commit message. git commit -a
doesn't let you commit any new files that you haven't told git to track yet.