Rods "Spaceship" Scratch built Plasma Cutter build

More
9 years 8 months ago #88215 by rodw
I forgot. If anybody can help me with how to checkout a git branch, I'd appreciate the help!

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88218 by Joco
It's normally just:
git checkout <branch/tag name>

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88219 by rodw

Joco wrote: It's normally just:
git checkout <branch/tag name>


Thanks James, do I do that in a new folder or does it go into the linuxcnc-dev folder?

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88220 by Joco
Rod - git does some magic so that you don't actually need to checkout different branches into different folders like you would do with svn.

However if you really wanted to have different folders then just clone the repo to another folder, cd to it and do a checkout to the branch you want.

git-scm.com/docs/git-checkout

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88223 by rodw
OK, so I did that
Code:
plasma@plasma ~/linuxcnc-dev $ git checkout dgarr/external_offsets M bin/.gitignore Branch dgarr/external_offsets set up to track remote branch dgarr/external_offsets from origin. Switched to a new branch 'dgarr/external_offsets'

And then I thought the next step would be a git pull which failed
Code:
plasma@plasma ~/linuxcnc-dev $ git pull remote: Counting objects: 179, done. remote: Compressing objects: 100% (29/29), done. remote: Total 29 (delta 28), reused 0 (delta 0) Unpacking objects: 100% (29/29), done. From git://git.linuxcnc.org/git/linuxcnc + c786d2d...3166ec6 dgarr/external_offsets -> origin/dgarr/external_offsets (forced update) Auto-merging src/emc/task/emctaskmain.cc Auto-merging src/emc/rs274ngc/gcodemodule.cc Auto-merging src/emc/motion/control.c CONFLICT (content): Merge conflict in src/emc/motion/control.c Auto-merging docs/src/motion/external-offsets.txt CONFLICT (add/add): Merge conflict in docs/src/motion/external-offsets.txt Automatic merge failed; fix conflicts and then commit the result.

So how do I get the branch source?

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #88224 by tommylight
Rod, your build is looking niceeeeeeeee!
I offloaded a plasma frame build to a friend, metal worker, still waiting for it and last i saw it he had to cut it and weld it again due to a lot of mistakes.
Regards,
Tom

Please Log in or Create an account to join the conversation.

Time to create page: 0.499 seconds
Powered by Kunena Forum