How can I commit files with git?

前端 未结 9 1741
慢半拍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:28

    Git uses "the index" to prepare commits. You can add and remove changes from the index before you commit (in your paste you already have deleted ~10 files with git rm). When the index looks like you want it, run git commit.

    Usually this will fire up vim. To insert text hit i, goes back to normal mode, hit ZZ to save and quit (ZQ to quit without saving). voilà, there's your commit

提交回复
热议问题