Code:
## This file is NAMED ... makefile.git
BRANCH_NAME=sc-build-colors
COMMIT_TEXT="Transfer color information upwards during import from e3d_mesh"
CHANGED_FILE=src/wings_we.erl
git="/c/program files (x86)/git/bin/git"
export git
get-sandbox:
-echo -------------------------- GET SHARED WINGS ----------------------------------------
-$(git) clone git@github.com:ggaliens/wings
-cp makefile.git ./wings/makefile.git
-make -f makefile.git -C ./wings get-sandbox-part2
get-sandbox-part2:
-echo -------------------------- SET USER INFO -------------------------------------------
-$(git) config user.name "Mark Whittemore"
-$(git) config user.email "ggaliens@nycap.rr.com"
-echo --------------------------- CONSIDER A MASTER UPSTREAM -----------------------------
-$(git) remote add upstream git://github.com/dgud/wings
-$(git) fetch upstream
-echo --------------------------- MAKE THE BRANCH PER MODULE/CHANGE ----------------------
-$(git) branch ggaliens/$(BRANCH_NAME) upstream/master
-$(git) checkout ggaliens/$(BRANCH_NAME)
push-sandbox:
-$(git) add $(CHANGED_FILE)
-$(git) commit -m $(COMMIT_TEXT)
-echo ---- Push the branch to github --------------------------------------------------
-$(git) push origin ggaliens/$(BRANCH_NAME)
push-more-sandbox:
-$(git) add $(CHANGED_FILE)
-$(git) commit -m $(COMMIT_TEXT) --amend
-echo ---- Push the branch to github --------------------------------------------------
-$(git) pull
-$(git) push origin ggaliens/$(BRANCH_NAME)
Above makefile is just enumerating the sort of GIT commands I'm using.
I got in trouble for showing this once before ;-) but I'm not ashamed for trying.
There have got to be some glaring issues with the above that are making things harder for me.
The only part from above that seems 100% dysfunctional is the push-more-sandbox commands.
But ... what do I know. I need some help with GIT. Have never been real comfortable with it.