Category "git"

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

Detached head in gitlab ci pipeline - how to push correctly

I got some problems with a detached head for my repository in a CI pipeline. In the build stage of the pipeline I am running a script, which changes a specific

Show diff between two merges in GIT

I have the next output of my git log: commit de812cfacf6e38e713068e96e15e50c5 (HEAD -> rc1.11, origin/rc1.11, rc1.10) Merge: b72b512f7 475d8f391 Author: Pep

How to make git submodule files available in parent repo?

I have this directory structure: --/home/user/main_git_project --main_files.txt --sub_git_project --sub_files.txt I added the submodule with git subm

How git write-tree works internally?

I wonder how git commit works internally. On that, I mean, how the plumbing git write-tree works internally. I have the index with a couple of files, say: % git

error "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree"?

I tried running the command 'flutter' in cmd. I am getting this error please resolve it. fatal: ambiguous argument 'HEAD': unknown revision or path not in the w

Add commit hash to each commit message

I'm wondering how to add an original commit hash to each commit message with a help of git filter-repo --commit-callback What I've tried is git filter-repo --co

Get Current Git branch name in Danger Js script

I am writing a custom danger js check in danger js. I want to avoid running this check when the branch is a hotfix/* branch I want to know how to get the curren

Support for password authentication was removed on August 13, 2021

Over a long period of time I am using tortoise git, today I am not able to use the tortoise git and getting the below error. git.exe pull --progress -v --no-re

remote: GitLab: Push operation timed out

I'm trying to fix my repository with BFG Repo-Cleaner, by removing some large files that were added to it, using this guide: https://rtyley.github.io/bfg-repo-c