在添加实际内容之前,我正在使用 git 进行一些示例测试。
这是我所做的:
enter code here
1) Create an empty git repository
$ mkdir git_trial2
$ cd git_trial2
$ git init (Creates a .git directory inside this)
$ cg-branch-add branch1 (Create a branch1 inside this git)
$ touch File1
$ echo "This is a test" >> File1
现在我想将 File1 添加到 branch1。这该怎么做?