Second steps with git #
Leaving this here in case I’ll search for it later again - and I’m pretty sure I will.
The following is a
simplification of the git workflow
detailed earlier - in particular the first two steps and a little background.
- When dealing with
remotes the git remote documentation is very useful.
- When sharing your
changes with others the git tutorial on
sharing changes is very helpful.
Instead of starting by cloning the upstream repository on github and than going from there as follows:
#clone the github repository
git clone
git@github.com:MaineC/mahout.git
#add upstream to the local clone
git remote add upstream
git://git.apache.org/mahout.git
you can also take a slightly different approach and start with an empty github repository to push your changes into instead:
#clone the upstream repository
git
clone git://git.apache.org/mahout.git
#add upstream your personal - still empty - repo to the local clone
git
remote add personal
git@github.com:MaineC/mahout.git
#push your local modifications branch mods to your personal
repo
git push personal mods
That should leave you with branch mods being visible in your personal repo now.