{"action":"created","issue":{"url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/117","labels_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/117/comments","events_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/117/events","html_url":"https://github.com/ingydotnet/git-subrepo/issues/117","id":124808415,"number":117,"title":"Push selected work upstream","user":{"login":"ingydotnet","id":21826,"avatar_url":"https://avatars.githubusercontent.com/u/21826?v=3","gravatar_id":"","url":"https://api.github.com/users/ingydotnet","html_url":"https://github.com/ingydotnet","followers_url":"https://api.github.com/users/ingydotnet/followers","following_url":"https://api.github.com/users/ingydotnet/following{/other_user}","gists_url":"https://api.github.com/users/ingydotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/ingydotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingydotnet/subscriptions","organizations_url":"https://api.github.com/users/ingydotnet/orgs","repos_url":"https://api.github.com/users/ingydotnet/repos","events_url":"https://api.github.com/users/ingydotnet/events{/privacy}","received_events_url":"https://api.github.com/users/ingydotnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-04T18:05:18Z","updated_at":"2016-01-05T08:13:05Z","closed_at":null,"body":"From #116 Christophe Porteneuve asks:\r\n\r\nI don't see any way to push only selected local work back upstream. I get that request many times, and this is one of the core tenets of stree. What about subrepo?"},"comment":{"url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/comments/168931376","html_url":"https://github.com/ingydotnet/git-subrepo/issues/117#issuecomment-168931376","issue_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/117","id":168931376,"user":{"login":"grimmySwe","id":6480514,"avatar_url":"https://avatars.githubusercontent.com/u/6480514?v=3","gravatar_id":"","url":"https://api.github.com/users/grimmySwe","html_url":"https://github.com/grimmySwe","followers_url":"https://api.github.com/users/grimmySwe/followers","following_url":"https://api.github.com/users/grimmySwe/following{/other_user}","gists_url":"https://api.github.com/users/grimmySwe/gists{/gist_id}","starred_url":"https://api.github.com/users/grimmySwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimmySwe/subscriptions","organizations_url":"https://api.github.com/users/grimmySwe/orgs","repos_url":"https://api.github.com/users/grimmySwe/repos","events_url":"https://api.github.com/users/grimmySwe/events{/privacy}","received_events_url":"https://api.github.com/users/grimmySwe/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T08:13:05Z","updated_at":"2016-01-05T08:13:05Z","body":"The main problem that I see is that I can't really find this in normal git behavior. It would be to have a local repo and then when I push to a remote I only push selected parts.\r\n\r\nYou can use git-subrepo and keep some local changes but then you can't push. Downside to this is that you can't find a common ancestor and you will probably get a lot of conflicts all the time.\r\n\r\nFor me git uses branches for differences, so the best way to track this would be a branch. If you own the subrepo you can create one in that repo where you make sure that you pull from the master and keep certain changes on the branch only. If it's a public repo you can create a local repo and keep your differences there.\r\n\r\nWhat do you think?\r\n\r\n"}}