How can I commit files with git?

前端 未结 9 1742
慢半拍i
慢半拍i 2020-12-07 12:21

None of the tutorials will help!
They all do that thing where they just assume I know what to do..

Currently, my terminal window starts with..

#          


        
9条回答
  •  不知归路
    2020-12-07 12:27

    The command for commiting all changed files:

    git commit -a -m 'My commit comments'
    

    -a = all edited files

    -m = following string is a comment.

    This will commit to your local drives / folders repo. If you want to push your changes to a git server / remotely hosted server, after the above command type:

    git push
    

    GitHub's cheat sheet is quite handy.

提交回复
热议问题