Answer the question
In order to leave comments, you need to log in
How to properly set up cloning in SmartGit?
Initial data: Ubuntu 14.04, SmartGit v7, simple application (*.php) in /var/www/myblog/ I configure
that the application is in /var/www/myblog/ and in a remote repository on github.
I try:
1. Create a remote repository on github
2. SmartGit -> Repository -> Clone
3. Specify the link to the repository and the folder where the repository will be located, respectively, /var/www/myblog/
4. We get this folder /var/www /myblog/myblog.git (and /var/www/myblog/myblog.git/.git ), naturally SmartGit does not see my files in /var/www/myblog/
5. For experiment, repeat steps 1-3, only specify another folder like ~/documents/myblog. SmartGit immediately creates a hidden .git directory and works as it should.
Why is an intermediate directory myblog.git created in the first case, and how can I get around this?
Answer the question
In order to leave comments, you need to log in
cloning cannot be done to a folder with files, only to an empty one.
move the files to another location, clone the repo and check in the files.
Solved, the problem was in an empty and not empty directory.
It was necessary to remove all files from the /var/www/myblog/ directory, perform the Clone operation, and then return the application files back. SmartGit immediately saw all the files after copying them to the old location.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question