|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: What does your team use to share code?
One last thing about git is that it allows for access to your complete history even without internet access, which can be very helpful at most competitions -- not that we ever have to edit our code at competition :-)
|
|
#2
|
||||
|
||||
|
Re: What does your team use to share code?
Thanks for all the help!
On our team it seems like every programmer brings their own computer to work on so we will try using Github, the problem we've been having with flash drives is that you can't easily merge codes, does Github merge codes if 2 people are working at once? (anyone have a link to a tutorial on how to use it for FRC?) |
|
#3
|
|||
|
|||
|
Re: What does your team use to share code?
Yes, git (the software one uses to publish changes to github and to manage changes made to software locally) is very good at handling merges. See http://git-scm.com/book/en/v2/Git-Br...ng-and-Merging
|
|
#4
|
||||
|
||||
|
Re: What does your team use to share code?
Quote:
Github is also one of the largest hosted source control products used today. It's a good skill to have (ability to use git) as you will need to use it out in the professional world. Pull requests are one feature Github has which enable teams to do code review (aka before code enters the main code base, another person has to look over it first). This is a really good practice to get into and Github makes it very easy to do. https://help.github.com/articles/using-pull-requests/ Lastly, Github gives FRC teams a free silver organization (https://github.com/pricing). You can request it at https://github.com/edu. |
|
#5
|
||||
|
||||
|
Re: What does your team use to share code?
We use dropbox. Any programmers, or anyone who might just use the code is invited to a shared dropbox folder. If you download the dropbox program is shows up like any other folder on your device, and you can save just like normal. Everyone will have access to the newest code immediately after its saved on whatever device last worked on it.
|
|
#6
|
||||
|
||||
|
Re: What does your team use to share code?
What happens if you have 2 programmers working on code at the same time? Does dropbox try to merge your codes? or does it just take the newest one?
|
|
#7
|
||||
|
||||
|
Re: What does your team use to share code?
Git is probably a really good way to keep your code, even if you are programming yourself. I have a GitHub account and it has saved me a lot of work.
Just yesterday, I had a problem, where I was pushing a small change to my repo in the sky at GitHub. I tried to remove the build folder using the command: PHP Code:
PHP Code:
It took me about 15 minutes to fix my large mistake. If I didn't use GitHub, I would have lost 2 weeks of work! ![]() |
|
#8
|
||||
|
||||
|
Re: What does your team use to share code?
Does anyone know of any examples on how to use Github for FRC C++?
Last edited by frcteam2501 : 12-11-2014 at 17:33. |
|
#9
|
||||
|
||||
|
Re: What does your team use to share code?
My repositories are about 90% C/C++
.Feel free to check out every inch of it ![]() https://github.com/yash101 To download a repository, user@dev~/soft $ git clone <location of repository> |
|
#10
|
||||
|
||||
|
Re: What does your team use to share code?
Dropbox overwrites with the newest saved version. Thats why we just keep numbered versions (V1, V1.1, V2, V2.1).
|
|
#11
|
|||||
|
|||||
|
Re: What does your team use to share code?
Dropbox actually does give you the ability to restore previously saved versions of a file.* But it isn't really set up for the kind of version control that would be useful for most teams.
Quote:
* That came in handy once when I accidentally saved an empty copy of my son's senior design project. I think he still isn't aware that it happened. |
|
#12
|
||||
|
||||
|
Re: What does your team use to share code?
During the season we use one of our facilities desktops as a SVN server. After the season ends we publish the code on our team's website.
|
|
#13
|
||||
|
||||
|
Re: What does your team use to share code?
Thanks for all the help!
I have been using GitHub for a few weeks and it has been working great! (They even gave our team bronze for free!) Now comes the hardest part, convincing the Programming Captain that GitHub is better than flash drives, he refuses to use GitHub (maybe because he's a Senior and a Sophomore set it up and knows more than him?) and I need to convince him that GitHub is easier to use and better for organizing the 10+ programmers we now have. Last edited by FRC2501 : 30-01-2015 at 09:27. |
|
#14
|
||||
|
||||
|
Re: What does your team use to share code?
Quote:
http://git-scm.com/book/en/v1/Getting-Started https://guides.github.com/introduction/flow/ https://guides.github.com/activities/hello-world/ https://www.atlassian.com/git/tutorials/ |
|
#15
|
||||
|
||||
|
Re: What does your team use to share code?
Our school set up every student with a Google account with unlimited Google Drive space. We put the programs into a zip file and upload and share it through google drive.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|