Git error: conq: repository does not exist

In my case, the git repository was duplicated somehow in the config file: cat .git/config gave me: [remote “origin”] url = [email protected]:myUserName/myRepositoryName.git/myRepositoryName.git fetch = +refs/heads/*:refs/remotes/origin/* As you can see, myRepositoryName is duplicated, so I removed that, and now the config file looks like this: [remote “origin”] url = [email protected]:myUserName/myRepositoryName.git fetch = +refs/heads/*:refs/remotes/origin/* Doing this, my … Read more

How to change git repository using android studio

We can change the repository url. Just follow the steps. In Android Studio Arctic Fox | 2020.3.1 Right click on project folder From menu Choose “Git” Then chosse “Manage Remotes…” Now, select the existing “origin” and click on edit Enter your new URL and click OK For Android Studio Older versions Right click on project … Read more

Error – “There is no script engine for file extension .vbs” when using “Git Bash Here” in Windows 7

The problem is caused by associating .vbs files with a program other than Microsoft Windows Based Script Host (the default). In my case, I had associated the files with Notepad++. I was able to solve it by running Notepad++ as an administrator and removing the file association for .vbs files. If you’re not sure which … Read more

Removing files from git history – bad revision error

Git should run from either cmd.exe or bash. The problem is the use of ‘ in your command. Windows only uses “. The command you are looking for is: git filter-branch –force –index-filter \ “git rm –cached –ignore-unmatch *.csv” \ –prune-empty –tag-name-filter cat — –all

pushing to git remote branch

As Abizern says, this works: git push origin mybranch But, to explain further, the mybranch part is a refspec. This specifies the remote ref which should be updated with the given local commit. So, the command above is equivalent to: git push origin mybranch:mybranch or even: git push origin mybranch:refs/heads/mybranch and, indeed, since you’re on … Read more