Creating branches on an empty project in git

后端 未结 3 1288
夕颜
夕颜 2020-12-23 19:12

Let\'s say I am about to implement 3 different features in 3 different files (fileA, fileB an fileC) for a new project of mine.

I thought I\'d just need to add my (c

3条回答
  •  醉酒成梦
    2020-12-23 19:27

    I always init branch by commiting an emptyfile:

    touch a
    
    git add a
    
    git commit -m'init'
    

    then it create branch "master" automatically. After that you can delete the file 'a'.

提交回复
热议问题