Category "git"

What does "fatal: bad numeric config value 'ward' for 'core.safecrlf': invalid unit" mean?

When I type git init (or git help tutorial) in terminal (MacOS), I get this message: fatal: bad numeric config value 'ward' for 'core.safecrlf': invalid unit

iOS Framework addition failed due to a Cocoapods installation failure

when i try to build my unity project for IOS, Unity creates an error related with Firebase and Cocoapods. I could not find any solution. Can you please advice m

Pushing changes to branch other than main

I cloned a repo from github I made, I did some changes. My repo on github has 2 branches, main and dev. I want to push my changes to dev first and then main. I

Pushing changes to branch other than main

I cloned a repo from github I made, I did some changes. My repo on github has 2 branches, main and dev. I want to push my changes to dev first and then main. I

Copying content of a directory on another branch

I have 2 branches on github: master gh-pages My branch master has the directory _site which contains all the files that I need to be stored on the root of gh-pa

Git setting submodule.recurse is not working (Git Bash)

I'm using Git Bash for Windows, version 2.34.1.windows.1. I would like Git to automatically initialize submodules when I do a clone, checkout or pull. I found

Unable to negotiate with __IP_ADDRESS_ port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

While using git clone in PhpStorm, I got an error message: Clone failed Unable to negotiate with IP ADDRESS port 22: no matching host key type found. Thei

Unable to negotiate with __IP_ADDRESS_ port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

While using git clone in PhpStorm, I got an error message: Clone failed Unable to negotiate with IP ADDRESS port 22: no matching host key type found. Thei

How to get ref names with git log --pretty=format:"...."? %d shows refs, but all in same color

I'm trying to get a customized git log listing using --pretty=format:"....", but can't seem to find out how get the ref names colored as in git log --oneline. T

How to add a folder in existing git repository

I have created a repository on github and now I wish to add a folder with info in that existing folder. How to do it ??

Git alias to open the git installation folder

I want to create a git alias git dir, which when used should open the git installation folder via Windows Explorer, how to implement such an alias?

How to push a new development branch to a mirrored gitea repository?

It seems can't push commits to a new branch to a mirror repository without setting push to upstream. I created a mirror repository in gitea, it synchronizes fro

SSH key not working for git push unless recently logged in

Background I use SiteGround to host my websites. I have git repos set up for each of my sites on SiteGround. I use SSH keys for authentication. I just set si

GitLab: Commit must be signed with a GPG key

I've faced an issue with GitLab, and I don't know how to fix this issue. I'm owner of repository, I've already gpg enabled, but at the end I still face an issue

git merge multiple copies preserving history

I have a project which has multiple copies of some files in different places. For example: src/location1/foobar.h src/location1/foobar.cpp src/location2/foobar.

Can't push to private repository

By mistake i pushed .env file to github and then i wanted to hide .env file from my private github repo using .gitignore. For this purpose, i did many stupid th

Migrating TFS 2015 repo historical file changesets to git repo [duplicate]

A code base was moved from TFS to Azure/Git though when I view file history in git the history starts at the date of migration. Rather than lo

How to remove a tag from a commit in Visual Studio 2019?

Looks like there's no way to checkout a previous commit in Visual Studio 2019 except by adding tags and then checking out the commit with the tag. It works (som

How can I stop git from use of GUI PGP key manager when signing a commit?

I am working in terminal via ssh. When I commit, I am asked for a password to unlock my private key. As long as I have no graphical session running everything

How to add commit hash to details of an executable file

One of my previous employers added the GIT hash of the current commit to the "Details" tab of the file properties of the executable, once it was built. As I fou