https://techglimpse.com For all your Tech Needs! Tue, 21 Dec 2021 07:02:22 +0000 en-US hourly 1 https://wordpress.org/?v=5.4.6 error: src refspec main does not match any [GIT] https://techglimpse.com/error-src-refspec-main-does-not-match-any-git/ https://techglimpse.com/error-src-refspec-main-does-not-match-any-git/#comments Tue, 21 Dec 2021 07:02:22 +0000 https://techglimpse.com/?post_type=ht_kb&p=42664 Created a private repository on GitHub and when tried to push the files from my server using the below commands, I get error: src refspec main does not match any.The complete command and error are as below: # git add .  # git commit -m "Initial Commit" # git push...

The post error: src refspec main does not match any [GIT] appeared first on Techglimpse.

]]>
3
Recover deleted files in Git [With example commands] https://techglimpse.com/deleted-files-git-command-examples/ https://techglimpse.com/deleted-files-git-command-examples/#comments Mon, 29 Jun 2020 01:08:44 +0000 https://techglimpse.com/?post_type=ht_kb&p=42039 In this tutorial, I’ll be explaining how to recover deleted files in Git. Let’s assume a few scenarios and see how Git file recovering commands are working. I deleted a file but not staged for commit Ok, you realized your mistake as soon as you deleted the file, then it’s...

The post Recover deleted files in Git [With example commands] appeared first on Techglimpse.

]]>
1
How to Duplicate a Git Repository or Mirror a Repository https://techglimpse.com/how-to-duplicate-a-git-repository-or-mirror-a-repository/ https://techglimpse.com/how-to-duplicate-a-git-repository-or-mirror-a-repository/#comments Sun, 28 Jun 2020 04:27:52 +0000 https://techglimpse.com/?post_type=ht_kb&p=42030 One way of duplicating a repository is by forking it -to do that, browse to the repository you wish to duplicate, and click the “Fork” button. The other way to duplicate a Git repository is without forking it by executing a mirror-push command to the newly created repository. In this...

The post How to Duplicate a Git Repository or Mirror a Repository appeared first on Techglimpse.

]]>
1
Remote Repository not found – Git push error https://techglimpse.com/remote-repository-not-found-git-push/ https://techglimpse.com/remote-repository-not-found-git-push/#respond Sat, 27 Jun 2020 01:03:02 +0000 https://techglimpse.com/?post_type=ht_kb&p=42032 “remote: Repository not found” – I encountered this error while pushing a code change to the repository. remote: Repository not found fatal: repository 'https://github.com/techglimpse/Qiskit.git/' not found Solution: If you see this error while pushing a code change to the repository, it means that the repository does not exist or you...

The post Remote Repository not found – Git push error appeared first on Techglimpse.

]]>
0