search

Home  >  Q&A  >  body text

git branch commit is invalid


and featurel shown in the picture are my new branches. After modification, add and submit my read.txt file, Unstracked files will be displayed:

gitskills/

Among them, gitskills is a warehouse I created on my github account. I cloned the above file once into the local git warehouse, so I am curious why the submission of the branch involves gitskills
For the tutorial, please refer to Liao Xuefeng’s personal website. git tutorial

漂亮男人漂亮男人2833 days ago547

reply all(4)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:31:39

    git add .
    git commit -m 'add something'

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:31:39

    Correct answer upstairs, see the prompt: nothing added to commit but untracked files present

    git add . Add files in the current directory
    git add -A Add all changed files

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:31:39

    Why do you need to add the absolute path to git commit d:readme.txt

    reply
    0
  • 阿神

    阿神2017-05-02 09:31:39

    I guess you cloned it several times and messed up the directory status.

    Change the directory and try again. If there are still problems, take a step-by-step screenshot of git status.

    reply
    0
  • Cancelreply