Rails: Rubymine: GitHub

I cannot figure out how to transfer my files to GitHub.

I am using RubyMine 4.5 on MAC

I have git locally

I have a personal GitHub account

From the RubyMine settings, I have my GitHub credentials that are correctly configured (and verified as such by RubyMine), but this did not allow me to select a repository in GitHub.

How to transfer a file to GitHub repository? Too many CVS and git menu items in RubyMine.

PS: I read the online help sections (the only thing that is available to me), and I followed the instructions in GitHub integration, but the directory I'm trying to make cannot click on GitHub, with RubyMine saying that there is nothing to do. This is the first time I'm using RubyMine for GitHub. Nothing about this in StackOverflow.

+6
source share
1 answer

Ok, I think I recovered your situation locally, and it looks like RubyMine has terrible support for remote control. If you create a Git repository locally, then (separately) create a repository on GitHub, there is no obvious way to go beyond RubyMine.

Basically, you need to configure GitHub as a remote for your local repository from the shell, and once this is done, RubyMine will be able to execute as usual.

Please note that the instructions below assume that you want to overwrite the GitHub repository with the full history from your local repository. If your GitHub repository has data that you do not want to lose, do not run these commands! See below.

Open terminal:

cd /path/to/my/project/root git remote add origin https://github.com/yourusername/yourrepo.git git push -u origin +master 

RubyMine should now be able to click on your GitHub repository via VCS > Git > Push

If your GitHub repository is already installed and you do not want to lose these changes, you need to either create a new GitHub repository or clone the GitHub repository into another folder and merge your local repository into a clone.

You can completely avoid this if you are trying to push the existing local repository to the GitHub repository new : just use the VCS > Import into Version Control > Share project on GitHub option and use this dialog box to create a new GitHub repository.

+9
source

Source: https://habr.com/ru/post/921142/


All Articles