我在 Git 上有一个 Django 项目
我对 Git 不太满意
我已经完成,提交并推送我的 feature/22 分支
我已经提交(在 git add 之后。)并推送我的主人
所以我的两个分支都是最新的
现在,我想在本地将我的 master 与我的 feature/22 合并,但我有冲突
即使在提交后,我在“取消合并路径”中有 2 个文件:
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc
both modified: unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc
Run Code Online (Sandbox Code Playgroud)
如果我使用推荐的命令 git add 会怎样?
为什么这两个文件没有包含在之前的 git add 中。命令?
编辑:
$ git merge feature/22
warning: Cannot merge binary files: unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc (HEAD vs. feature/22)
warning: Cannot merge binary files: unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc (HEAD vs. feature/22)
Auto-merging unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc
CONFLICT (content): Merge conflict in unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc
Auto-merging unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc …Run Code Online (Sandbox Code Playgroud) 我想在Django / Python中编写一个测试单元,我需要创建一个表,其中一列填充有选择的“随机”整数(1,2,3,4)并平均分布
该表包含64行,我应该具有:
我尝试使用randint,但分布不均,我读过有关统一的内容,但返回浮点数
for i in (range(1,65)):
r = uniform(1,4)
Run Code Online (Sandbox Code Playgroud)