forked from wesabe/git-commit-notifier
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels