Mon 21 Mar 2016
Placing Eclipse project under Git source control
Posted by CRG Admin under Git , SoftwareNo Comments
Because I can never remember how to do this, instructions on how to add an existing project to source control using Git.
- Create new repository using Github web interface
- cd to project directory
- >git init
- >git add .
- >git pull <repos> master
- >git commit -a -m “initial checkin”
- >git remote add origin <repos>
- >git push origin master
I don’t recall doing #5 the last time, but it was required this time…
Leave a Reply
You must be logged in to post a comment.