Go to Post Then you might have a 1902 (oink oink BOOM) which could result in a 418 (Purple Haze). - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-09-2015, 17:37
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 610
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Need assistance uploading code to Github.

Hey,
I've been trying to upload my code to a github repo, so I can work on it from school. Despite getting some help from another team through CD, I am still confused how to do this. I can figure out how to upload my code to a .git file on my pc, but I have no idea how to upload that to the repo on the github website.
If any additional info is needed for you to help, please ask!
Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-09-2015, 21:15
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Need assistance uploading code to Github.

https://git-scm.com/book/en/v1/Getting-Started

Start there
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-09-2015, 01:10
ShortCircuit908's Avatar
ShortCircuit908 ShortCircuit908 is offline
King of Hacky Fixes
AKA: Caleb Milligan
FRC #4450 (Olympia Robotics Federation)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Olympia, WA
Posts: 7
ShortCircuit908 is an unknown quantity at this point
Re: Need assistance uploading code to Github.

Simple guide using Git bash:
  1. Navigate to your workspace using the 'cd' command
  2. Code:
    git init
    (Creates an empty repository)
  3. Code:
    git remote add origin <SSH clone URL>
    (Adds the remote repository as 'origin.' <SSH clone URL> is the URL given to you by GitHub, resembilng git@github.com:Username/RepositoryName.git
  4. Code:
    git add -A
    (Adds current files to the repository)
  5. Code:
    git commit -am 'Initial commit'
    (Creates a commit with added files)
  6. Code:
    git push origin master
    (Pushes local commits to the remote repository)

It is recommended that you have a decent .gitignore file in the root directory of your workspace, in order to keep unnecessary files out of the repository. A good example of a .gitignore file can be found here.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-09-2015, 14:05
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Need assistance uploading code to Github.

Please take the time to actually understand git before using it with other people. Don't just copy paste commands from guides online.
__________________
All opinions are my own.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-09-2015, 11:42
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 610
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: Need assistance uploading code to Github.

Quote:
Originally Posted by joelg236 View Post
Please take the time to actually understand git before using it with other people. Don't just copy paste commands from guides online.
I am currently reading your guide to learn how to properly use Git, thanks!
Sorry if it appears like I'm in a rush, this code does need to be uploaded fast. (Currently going to upload the code, and then work on properly learning git)
EDIT: Managed to post the code to our repo! I'm continuing to learn git as I go on, but at least I can work on robot code from anywhere now

Last edited by thatprogrammer : 23-09-2015 at 12:26.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-09-2015, 21:02
SamcFuchs's Avatar
SamcFuchs SamcFuchs is offline
Programmer
AKA: Sam Fuchs
FRC #0236 (TechnoTicks)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2014
Location: Old Lyme, Connecticut
Posts: 58
SamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud of
In terms of .gitignore, you can pretty much just use the /dist/ file. You don't really need anything else.
__________________
Sam Fuchs
236 TechnoTicks, Old Lyme, CT

2015 - Programming, Electrical
2016 - Lead Programmer, Co-Driver
2017 - Lead Programmer, Co-Driver
Reply With Quote
  #7   Spotlight this post!  
Unread 24-09-2015, 21:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Need assistance uploading code to Github.

Quote:
Originally Posted by SamcFuchs View Post
In terms of .gitignore, you can pretty much just use the /dist/ file. You don't really need anything else.
We use:
Code:
*~
/bin/
sysProps.xml
/build/
/dist/
Reply With Quote
  #8   Spotlight this post!  
Unread 27-09-2015, 18:04
SamcFuchs's Avatar
SamcFuchs SamcFuchs is offline
Programmer
AKA: Sam Fuchs
FRC #0236 (TechnoTicks)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2014
Location: Old Lyme, Connecticut
Posts: 58
SamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud ofSamcFuchs has much to be proud of
Re: Need assistance uploading code to Github.

Quote:
Originally Posted by Joe Ross View Post
We use:
Code:
*~
/bin/
sysProps.xml
/build/
/dist/
Yeah, looking back, I didn't think that reply through. Here's a .gitignore that I like. It leaves pretty much only the src.

https://github.com/team236/2016-prac...ter/.gitignore
Reply With Quote
  #9   Spotlight this post!  
Unread 28-09-2015, 23:26
ShortCircuit908's Avatar
ShortCircuit908 ShortCircuit908 is offline
King of Hacky Fixes
AKA: Caleb Milligan
FRC #4450 (Olympia Robotics Federation)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Olympia, WA
Posts: 7
ShortCircuit908 is an unknown quantity at this point
Re: Need assistance uploading code to Github.

Quote:
Originally Posted by SamcFuchs View Post
Here's a .gitignore that I like. It leaves pretty much only the src.

https://github.com/team236/2016-prac...ter/.gitignore
You shouldn't need to ignore .xml files. In fact, you shouldn't, especially if your project uses a framework such as Maven, which is based off xml files, or if your project uses an XML properties file.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi