def init_package_in_develop(self):
# delete .git if exist
os.system("rm -rf " + osp.join(self.__package_path, '.git'))
os.system("rm -rf " + osp.join(self.__package_path, 'deploy'))
# init git for make a local repository
repo = Repo.init(str(self.__package_path))
repo.git.add('*.py')
repo.git.add('*.json')
repo.index.commit('add new files')
评论列表
文章目录