I have a repo synchronized with Google Drive, but my .git directory was disabled, so it is now uploaded to Google Drive.
I recently formatted the machine Gentoo, and after all the Google Drive files were synced again, I realized that the directory .gitdoes not exist.
Gentoo
.git
The problem is that I don’t remember if I had any unmarked / unmanaged changes in local and not in github.
I searched, but I only found answers to the opposite question (Cloning without a directory .git)
I do not want to make git clonemy repo until I am sure that possible local changes will not be lost.
git clone
Is there a way to clone only folders .gitand then push any local changes that I may have on my machine?
I solve it. It was a simple process:
/tmp
git status
Hope this helps others.
One-step solution:
git clone --no-checkout <repo_url>
or if you already have an empty directory,
cd myrepo git clone --no-checkout <repo_url> .
Source: https://habr.com/ru/post/1651559/More articles:Duplicate the line and comment on the old - sublimetext2Django test - unable to delete and update test database - pythonКак лениво создавать карту, конструкция которой использует себя в Rust - hashmapXSS - Content Security Policy - javascriptstartTimeMillis is no longer updated in Google InApp Subscription Update - androidПочему это дает мне String каждый раз? - javascriptR: How can I read a CSV file with data.table :: fread, which has a comma as a decimal and indicate as a thousand separators = "." - rCUBA platform: invalid window height for the editor, opened as a dialog from a table action - cuba-platformhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1651563/how-to-process-the-different-graph-files-to-be-processed-independently-in-between-the-cluster-nodes-in-apache-spark&usg=ALkJrhgUkzxOIARCeS_5LowDzmzEwo9x-wHow to hide dots in last view of UIPageViewController SWIFT - swiftAll Articles