What does “Changes not staged for commit” mean

前端 未结 9 1996
再見小時候
再見小時候 2021-01-29 17:17

I thought if you want to track the files you should git add [files you want to track]

I don\'t know why I got the messages Changes not staged for com

9条回答
  •  深忆病人
    2021-01-29 17:51

    Try following int git bash

    1.git add -u :/

    2.git commit -m "your commit message"

    1. git push -u origin master

    Note:if you have not initialized your repo.

    First of all

    git init 
    

    and follow above mentioned steps in order. This worked for me

提交回复
热议问题