Unable to work effectively with Git locally

前端 未结 2 1410
我在风中等你
我在风中等你 2021-01-25 02:32

Please, see Greg\'s answer.

I do not understand Daniel\'s statement at the thread completely:

Why are you manually copying files around

2条回答
  •  余生分开走
    2021-01-25 03:04

    I believe what Daniel was referring to is using Git to manage the files in particular directories in place, without copying them around. For example, starting without any Git repository, you might:

    cd ~/bin
    git init
    git add .
    

    Now, your ~/bin directory contains a ~/bin/.git repository and you can git add and git diff right from the ~/bin directory.

提交回复
热议问题