2

I have created a Rails project on Aptana Studio 3 and now I want to put it in a repository on Github. I red How to set up Git with Aptana Studio 3? but the solution given in it is the other way. So, my question is how to export my project (for first time) in my empty Github repository ?

Thank you

enter image description here

MysteryGuy
  • 1,091
  • 2
  • 18
  • 43
  • https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ – Bentaye Feb 24 '18 at 07:12
  • You did select the right answer initially! Your question was about Aptana. The answer is not about what your question was! – VonC Mar 02 '18 at 06:00
  • I managed to find the solution thanks to @Bentaye answer, that's why I awarded him the bounty – MysteryGuy Mar 02 '18 at 10:51

2 Answers2

1

Simply follow github's tutorial here https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ It work for any project

Bentaye
  • 9,403
  • 5
  • 32
  • 45
  • When I do this, I get a fatal error as you can see in the edit. How can I fix it ? Thanks – MysteryGuy Feb 27 '18 at 15:51
  • 1
    Can you check your version of git `git --version`? – Bentaye Feb 27 '18 at 16:05
  • 1.9.4.msysgit.2. Thanks – MysteryGuy Feb 27 '18 at 16:13
  • 1
    @MysteryGuy I have updated my answer accordingly. Note: your question was about Aptana, not the command-line. But I have updated the answer for both. – VonC Feb 27 '18 at 16:19
  • 1
    The latest version is 2.16.2, I suggest you update your git and try again. – Bentaye Feb 27 '18 at 16:20
  • Thanks guys, I'll try it – MysteryGuy Feb 27 '18 at 16:21
  • How can I change my Git version ? I downloaded 2.16.2 version but Git Bash still uses the old one. Thanks – MysteryGuy Feb 27 '18 at 16:30
  • @Bentaye I've got this error : `$ git push origin master To https://github.com/polytech1/PTI.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/polytech1/PTI.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.` – MysteryGuy Feb 28 '18 at 10:31
  • I am not good enough with git to sort this out, the same issue is described here https://stackoverflow.com/questions/24357108/git-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have – Bentaye Feb 28 '18 at 11:13
  • @Bentaye finally it went, i recreated a project from scratch. :) Thanks – MysteryGuy Feb 28 '18 at 14:58
  • 1
    @MysteryGuy I'm glad we sorted it out! – Bentaye Feb 28 '18 at 15:03
0

Since Aptana Studio 3 is based on Eclipse, and includes EGit, you can follow the EGit GitHub tutorial to push your local repo to your new empty GitHub repo.

As long as you

you will be able to specify "Add all branches spec" to your push configuration.

http://wiki.eclipse.org/images/7/75/Egit-0.10-github-push-refspec.png

If you are using HTTPS (or even SSH) you need a recent Git For Windows (2.16.1).
Not the 1.9.4 you show.
That is because because GitHub just disabled TLSV1 a few days ago.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250