A little help with git on NetBeans
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
9 posts
• Page 1 of 1
A little help with git on NetBeans
by philvt101 » 20 Feb 2015, 17:10
So I'm done coding Scuttlemutt, which required a new BecomesColorOrColorsTargetEffect class in mage-abilities-effects-common-continious (during this process I noted that the current effect called by Swirling Spriggan does not work as intended but I didn't want to go fiddling with someone else's code).
I'm very excited to contribute but I'm not quite sure how to do so from NetBeans. I cloned the repository in NetBeans and have committed my changes. Now do I root>git>remote>push or am I missing some steps?
I'm very excited to contribute but I'm not quite sure how to do so from NetBeans. I cloned the repository in NetBeans and have committed my changes. Now do I root>git>remote>push or am I missing some steps?
Re: A little help with git on NetBeans
by LevelX » 20 Feb 2015, 20:17
Yes with the push you transfer your commits to the forked remote repository.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: A little help with git on NetBeans
by philvt101 » 20 Feb 2015, 20:55
ok, I've got it pushed to my fork and added pull request.
Last edited by philvt101 on 20 Feb 2015, 21:34, edited 1 time in total.
Re: A little help with git on NetBeans
by LevelX » 20 Feb 2015, 21:32
Yes of course.
I never do it myself so I'm missing the practice.
I never do it myself so I'm missing the practice.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: A little help with git on NetBeans
by philvt101 » 20 Feb 2015, 21:37
LevelX, I believe you coded Swirling Spriggan. The ChangeColorOrColorsTargetEffect you used calls BecomesColorTargetEffect but that just keeps overwriting the previously selected color when you loop through it. I believe you can instead call the BecomesColorOrColorsTargetEffect I just uploaded to make Spriggan's ability work properly. No for loop required though, just pass the chosenColors list directly to the effect.
Re: A little help with git on NetBeans
by LevelX » 21 Feb 2015, 00:22
You're right I guess.philvt101 wrote:LevelX, I believe you coded Swirling Spriggan. The ChangeColorOrColorsTargetEffect you used calls BecomesColorTargetEffect but that just keeps overwriting the previously selected color when you loop through it. I believe you can instead call the BecomesColorOrColorsTargetEffect I just uploaded to make Spriggan's ability work properly. No for loop required though, just pass the chosenColors list directly to the effect.
If you like you can fix it and add to the pull request.
Thanks for pointing out.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: A little help with git on NetBeans
by philvt101 » 21 Feb 2015, 12:39
I'm happy to have made my first contribution to mage and it's nice that my ability code could be applied to a handful of cards.
Next time I'll be a little more thorough before my pull request.
Next time I'll be a little more thorough before my pull request.
Re: A little help with git on NetBeans
by JotaPeRL » 08 Mar 2015, 21:16
Hi guys,
I implemented a simple card, Wrecking Ball, from DIS and CMD. I don't know how to send my files back. I did a git -> commit... and it appears to work. I can't do a git -> remote -> push... It asks for a username/password.
I don't know if the file was sent, or what is the correct procedure to send the file for consideration.
I cloned the repository as specified at the Developer Getting Started document.
I implemented a simple card, Wrecking Ball, from DIS and CMD. I don't know how to send my files back. I did a git -> commit... and it appears to work. I can't do a git -> remote -> push... It asks for a username/password.
I don't know if the file was sent, or what is the correct procedure to send the file for consideration.
I cloned the repository as specified at the Developer Getting Started document.
Re: A little help with git on NetBeans
by LevelX » 08 Mar 2015, 23:24
You have to do a "Pull Request" with your changes to the main repository.JotaPeRL wrote:Hi guys,
I implemented a simple card, Wrecking Ball, from DIS and CMD. I don't know how to send my files back. I did a git -> commit... and it appears to work. I can't do a git -> remote -> push... It asks for a username/password.
I don't know if the file was sent, or what is the correct procedure to send the file for consideration.
I cloned the repository as specified at the Developer Getting Started document.
Currently no such request is available to merge yet.
So you missed something.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests