question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't turn a folder into a repository anymore

See original GitHub issue

Description

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

  1. Drag a regular folder (not a repository) into the app.
  2. A error alert appears with the message “repo path here isn’t a git repository.”
  3. 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:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
joshabercommented, Jul 19, 2017

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:

screen shot 2017-07-19 at 11 43 08 am

But I feel like maybe I’m missing or forgetting some history. @iAmWillShepherd what do you think?

1reaction
j-f1commented, Aug 2, 2017

I wonder if there should be a list of directories to warn people about when adding. (/Users/*/Documents, C:\*\My Documents, etc)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found