У меня есть файл в папке / anotherFolder / file.php
Я хочу добавить, зафиксировать и нажать, каков процесс, может кто-то показать мне пример команды для отправки файла file.php в удаленный репозиторий
$ git add folder/anotherFolder/file.php $ git commit [-m'your message here'] $ git push
или, если нет изменений рабочей копии, вы не хотите зафиксировать, просто:
$ git commit -am'your message here' $ git push
git init git add folder/anotherFolder/file.php git commit -am "your commit message" git remote add origin <the_url_remote_repository> git push -u origin master
Где the_url_remote_repository - что-то вроде этого (пример для github):
the_url_remote_repository
git@github.com:yourprofile/thereponame.git