Can't turn a folder into a repository anymore
See original GitHub issueDescription
I can’t drag a folder into the app (beta) to turn it into a repository like in GitHub for Mac/Windows.
Version
GitHub Desktop version: 0.6.2
OS version: macOS Sierra 10.12.5 (16F73)
Steps to Reproduce
- Drag a regular folder (not a repository) into the app.
- A error alert appears with the message “
repo path here
isn’t a git repository.” - Nothing else happens…
If you think screenshots or a GIF recording will help demonstrate the issue better, feel free to add them here.
Expected behavior: After the alert, it should the user if the dragged folder should be turned into a repository.
Actual behavior: Just shows the error alert and nothing else happens after that.
Reproduces how often: Always
Logs
No logs were created.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
I turned a directory into a git repo. How to undo that? [duplicate]
To confirm this type ls -a . This will list all the hidden "dot" directories in your current directory. If you see one...
Read more >How to Fix the “fatal: not a git repository” Error - ContainIQ
Check that you correctly created the repo. If the directory doesn't contain a .git repo, use git init to properly initialize the repo...
Read more >Git error - Fatal: Not a git repository and how to fix it | Datree.io
A Git command needs to be run on a specific repository, so this error typically occurs when a Git command is run in...
Read more >Convert a folder to a Git repository - Techielass
This command will create a folder called .git and is usually the first command you run on an empty or non-empty folder to...
Read more >Use .gitkeep to commit & push an empty Git folder or directory
The purpose of the .gitkeep file is to solve problem of Git not pushing empty folders to remote DVCS repos like GitHub or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tend to agree. I think we should use the “Add Local Repository” dialog so that users can click to initialize a new repository. That way it’s not a dead-end but takes some intentionality:
But I feel like maybe I’m missing or forgetting some history. @iAmWillShepherd what do you think?
I wonder if there should be a list of directories to warn people about when adding. (
/Users/*/Documents
,C:\*\My Documents
, etc)