I can never figure out how to do this, and my local GitAlmostExpert is not around. I want to muck with the GLs in a new branch. So I want to make a new branch called 'sydb-WHATEVER'. It should track a branch of the same name in GitHub (in remotes/origin/, I guess, but I'm not sure that's the right nomenclature). I want to create it on my own commandline locally, check it out, make same changes checking in as needed, and then when done for the day push it up to GitHub so I can check fetch it and then check it out and work some more when I get home. Pretty reasonable request, IMHO. But I don't want to have to go to the GitHub website to do this. I just want to type at my coammandline. Do we have doc on how to do this already, and I've just missed it? If not, anyone want to tell me what the BLEEP to type? (I can give you a sizable list of `git branch` commands that *don't* do what I want. :-) Thanks.
git checkout -b sydb-WHATEVER
*do whatever you wish, commit your changes*
git push -u origin sydb-WHATEVER
*at home*
git fetch
git checkout sydb-WHATEVER
That should do it, I think.
On Tue, Dec 1, 2015 at 3:46 PM, Syd Bauman
I can never figure out how to do this, and my local GitAlmostExpert is not around.
I want to muck with the GLs in a new branch. So I want to make a new branch called 'sydb-WHATEVER'. It should track a branch of the same name in GitHub (in remotes/origin/, I guess, but I'm not sure that's the right nomenclature). I want to create it on my own commandline locally, check it out, make same changes checking in as needed, and then when done for the day push it up to GitHub so I can check fetch it and then check it out and work some more when I get home. Pretty reasonable request, IMHO.
But I don't want to have to go to the GitHub website to do this. I just want to type at my coammandline.
Do we have doc on how to do this already, and I've just missed it? If not, anyone want to tell me what the BLEEP to type? (I can give you a sizable list of `git branch` commands that *don't* do what I want. :-)
Thanks. -- tei-council mailing list tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
PLEASE NOTE: postings to this list are publicly archived
Thank you, Hugh. Seems to have done the trick.
git checkout -b sydb-WHATEVER *do whatever you wish, commit your changes* git push -u origin sydb-WHATEVER
*at home* git fetch git checkout sydb-WHATEVER
That should do it, I think.
participants (2)
-
Hugh Cayless
-
Syd Bauman