开发者

Filtering git pushes

I'm looking to push my branch to a remote, but I don't wish to include all the files in the branch, but I do wish to keep track of them here.

Is there a way to do this with a filter, or do I need to create a new branch for this? All the stuff I've read seems to talk about completely removin开发者_Python百科g the files, I just don't want them pushed.

A partial push - a nudge, if you like :)


Partial pushes are not possible. The best you could do is create a new branch with the specific files and push it.

If partial pushes were possible, the remote branch and the local branch would have different SHA-1 IDs which clearly shows that the branches differ. Hence, create and push a new branch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜