Learn ReactJS & React Native With Me
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Facebook
  • Twitter
  • LinkedIn
  • Email
Learn ReactJS & React Native With Me

Code, Bugs, Pitfalls, Tricks of React Js & React Native

  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact

Browsing Tag

git short

18 posts

Pulling without specifying how to reconcile divergent branches discouraged

  • Akash Mittal
  • October 15, 2022
You pulled from git using command git pull origin master and got a warning – “Pulling without specifying how to reconcile divergent branches is discouraged“ in this form – This…
View Post

Git unexpected disconnect while reading sideband packet – Code Example

  • Akash Mittal
  • September 27, 2022
Suppose you are downloading a 50GB movie and you have 1MBps or 8mbps connection. It will take around 50 x 1024 seconds. That is, around 15 hours. In these 15…
View Post

Git clean your repository working tree before checkout – Code Example

  • Akash Mittal
  • September 12, 2022
VSCode throws error “clean your repository working tree before checkout” when you have unstaged changes and trying to push your code. In this article we will look at the ways…
View Post

Git fatal this operation must be run in a work tree – Code Example

  • Akash Mittal
  • September 9, 2022
Git throws the fatal error that operation must be run in a work tree if you try to run a command outside the directory where git is absent. To understand…
View Post

Unable to negotiate with ip:22: no matching host key found – Code Example

  • Akash Mittal
  • August 30, 2022
You get Unable to negotiate with ip port 22: no matching host key type found error when you try to authenticate on Github with SSH using ssh-rsa algorithm. ssh-rsa is…
View Post

Prevent re-entering of password in git pull – Code Example

  • Akash Mittal
  • August 30, 2022
To prevent re-entering of password in git pull or git push, you can edit your .git/config file in the project and update the remote url value. Add user token before…
View Post

COMMIT_EDITMSG open when commit in VSCode

  • Akash Mittal
  • August 13, 2022
COMMIT_EDITMSG is a file which VSCode opens when you do not provide commit message in the Source Control plugin box – The COMMIT_EDITMSG file looks like this – Here you…
View Post

error: There was a problem with editor “git-editor.sh” supply the message

  • Akash Mittal
  • August 13, 2022
Git throws Error: Bad status code: 500; error: There was a problem with the editor “git-editor.sh” Please supply the message using either -m or -F option, when you forget to…
View Post

git error Invalid syntax in configuration ini file – Code Example

  • Akash Mittal
  • August 30, 2022
So you are trying to commit to git and getting [ERROR] Invalid syntax in configuration ini file. Right? Well this is generally caused by hooks installed in your git directory.…
View Post

Git rename local branch – git branch -m oldname newnm – Code Example

  • Akash Mittal
  • August 30, 2022
In this article we will show you the command to rename local and remote branch of git. Code Example – 1. Rename local git branch – 2. Rename remote git…
View Post

Commands to delete local & remote git branches – Code Example

  • Akash Mittal
  • September 30, 2022
In this article we will show you the commands to delete git branch locally and remotely. Local Branch Delete – For force delete – Remote Branch Delete – Local remote-tracking…
View Post

fatal: detected dubious ownership in repository at ‘…’ git – Code Example

  • Akash Mittal
  • August 30, 2022
In this article I will show you the solution to the git error – fatal: detected dubious ownership in repository at ‘…’. This error shows that there are issues with…
View Post
git cheatsheet essential commands
  • Git

    Git Essentials – Most useful GIT commands

    • Akash Mittal
    • June 14, 2021
    In this article I am going to list most useful and essential GIT commands which you may require in almost all of your projects. This is the cheat sheet for…
    View Post

    Git Error: refusing to merge unrelated histories

    • Akash Mittal
    • April 6, 2021
    Git throws error: refusing to merge unrelated histories, when git history is lost or got corrupted and you try to merge the pull. The solution to this problem is to…
    View Post

    error: src refspec master does not match any

    • Akash Mittal
    • April 6, 2021
    Git throws error: src refspec master does not match any, due to a number of reasons and most common are – Wrong or spelling mistake in branch name, using older…
    View Post

    ! [remote rejected] master -> master (pre-receive hook declined) – Git Error

    • Akash Mittal
    • February 14, 2021
    ! [remote rejected] master -> master (pre-receive hook declined) is the error we receive when either the branch is marked protected or you don’t have permission to push. According to…
    View Post

    ! [rejected] master -> master (non-fast-forward) – Git Error

    • Akash Mittal
    • February 14, 2021
    ! [rejected] master -> master (non-fast-forward) error indicates that in order to complete your commit request, git has to lose some previous commits. This is not good because it leads…
    View Post

    ! [rejected] master -> master (fetch first) – Git

    • Akash Mittal
    • February 14, 2021
    ! [rejected] master -> master (fetch first) is a Git error which indicates that you need to fetch the repository first before committing to it. In Git, sometimes you get…
    View Post

    Learn ReactJS & React Native With Me
    Copyright AkashMittal.com | Privacy Policy