Skip to content

Pushing multiple branches doesn't send enough notifications #138

@holzman

Description

@holzman

Committing multiple branches at once means that you only get committed for some of the commits:

To test (from an empty repo, for example):

% touch a; git add a; git commit -m '1st commit'; git push origin master
% git co -b branch1; touch b; git add b; git commit -m '2nd commit'
% git co -b branch2; touch c; git add c; git commit -m '3rd commit'

%git log --oneline --decorate
58063f0 (HEAD, branch2) 3rd commit
6a3481b (branch1) 2nd commit
6f0f108 (origin/master, master) 1st commit

%git push origin branch1 branch2
Subject: [w/branch2][1/1] 3rd commit

So the 2nd commit is ignored.

This is also related to #136:

% git co master; git br -D branch1 branch2; git push origin :branch1 :branch2
% git co -b branch1; touch b; git add b; git commit -m '2nd commit'
% git long --oneline --decorate
* 701c141 (HEAD, branch2, branch1) 2nd commit
* 6f0f108 (origin/master, master) 1st commit

% git push origin branch1 branch2
Subject: [w-bare/branch1][1/1] 2nd commit
Subject: [w-bare/branch2][1/1] 2nd commit

(or no mail at all, if you merge the issue-136 branch).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions