为 git repo all 分支添加一个文件。
之前,我为每个分支添加 .gitignore,我会这样做:
vi .gitignore
git add .gitignore
git commit -m "add .gitignore"
git push origin branch1
我觉得很麻烦。
如果 repo 有一些分支,我想快速将 .gitignore 添加到所有分支。我该怎么办?
为 git repo all 分支添加一个文件。
之前,我为每个分支添加 .gitignore,我会这样做:
vi .gitignore
git add .gitignore
git commit -m "add .gitignore"
git push origin branch1
我觉得很麻烦。
如果 repo 有一些分支,我想快速将 .gitignore 添加到所有分支。我该怎么办?