0

I swapped from svn to git and have problems to initially import my project files to the created git repository.

So I have project x and use

VCS -> Import into Version Control -> create Git Repositroy

new empty repository created

(path to git repo /foo/bar)
(path to project /elsewhere

Question: How to push my project into this repository

When I use Push... (ctrl + shift + k) a popup occurs whichs says

master -> empty repository

and when I try to use

VCS -> Git -> Checkin Directory it says:

No changes detected

2 Answers 2

1

Pushing is an operation of moving changes from one repository to another. In this case, there is only one repository, so there's nothing to push.

To put your files into the repository, you need to add them using "Git | Add..." action in the context menu or using the Changes view, and then commit them using the "Commit Changes" action. That's it.

Sign up to request clarification or add additional context in comments.

5 Comments

but it always states : no changes detected
It will say "No changes detected" if you did not add any files to the repository. You need to add the files
does the repos has to be in the same directory as the project ?
Yes, it has to be in the same directory.
so I have to create the git repositroy at the project root; I thought I could sepperate the working directory and my repositroy
0

I made the mistake to not create the git repository at my project's root (svn habbit's).

solved by :

VCS -> Import into Version Control -> create Git Repositroy

Select directory where the new Git repositoty will be created:

/path/to/project

now I can commit the files and push them to a remote repository

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.