kingdomfert.blogg.se

Github and sourcetree app
Github and sourcetree app









What causes “fatal: not a git repository”? Fortunately, even if it is a very common problem, it is also very easy to solve. git, states that you tried to execute a repository-specific command, outside of the Git repository. The error above, fatal: not a git repository (or any of the parent directories). For example, if you run git push -u origin master outside of a git repository, Git will simply not know what to push and where to push. Most of the Git commands must be executed against a Git repository. What is the “fatal: not a git repository” error? Preventing “fatal: not a git repository”Ĭ.What causes “fatal: not a git repository”?.What is the “fatal: not a git repository” error?.

github and sourcetree app

Github and sourcetree app how to#

In this article, we will explore what causes, how to prevent, and how to solve the fatal: not a git repository error. While working with Git, you may encounter errors that seem confusing, especially if you are a beginner and the terms used are not familiar to you.

github and sourcetree app

I changed the entries in my ~/.ssh/config file to the following: Host Īfter making this change, the "This is not a valid source path / URL" error went away and I was able to clone repositories from my Bitbucket and GitHub accounts without problem.A Git repository is a collection of files and information regarding past changes made in them. The Host values it generated are incorrect. IdentityFile /Users/adil/.ssh/username-GitHub IdentityFile /Users/adil/.ssh/username-Bitbucket It created entries as follows: Host username-Bitbucket SourceTree did everything correctly to generate SSH keys and add them to my machine but it made a slight mess of the entries that it added to my ~/.ssh/config file. In my case I had used SourceTree's "Add account" setting to add my Bitbucket and GitHub accounts to SourceTree under the SSH protocol. However, I don't want to do that because I need to commit any changes to the repository on my behalf.ĭoes anybody know how can this error be fixed or worked around? One think I did not try is to clone the repository using another GtHub account. I am able to push changes to the online repository using the Terminal console but I would like to use a UI (that SourceTree provides) to manage and compare changes in the code. I asked the Administration of the GitHub repository for any other permissions but my account has all of them.

github and sourcetree app

I tried to re-install SourceTree but the error still exists. SourceTree does not tell me the reason for the error or anything else. However, when I click to enter Destination Path, the window shows an error: This is not a valid source path / URLĬlicking the error may give the following details: remote: Repository not found. The nest step is to specify a local folder where the repository will be copied. I copied it from the browser after I logged in to my GitHub account so the link is correct. In the opened window I paste the HTTPS clone URL. Start the SourceTree and navigate to File -> Clone / New. In order to manage a local copy, I need to clone the online version. Also, I have a GitHub account with permissions to clone and push the repository.

github and sourcetree app

I downloaded and installed the latest official version of the SourceTree software. However, I think my scenario is a bit different. I know that similar questions have already been posted here.









Github and sourcetree app