Category "git"

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

Windows GIT using HTTPS client auth from smartcard token

On Windows, how does one configure GIT to prompt or otherwise use a client HTTPS certificate when connecting to an HTTPS repository that requires HTTPS Client a

Git "includeIf" directive not working (Ubuntu) [duplicate]

I want to specify separate gitconfig settings for projects inside a "work" directory, using the "includeIf" directive. I have ~/.gitconfig:

jmeter guidelines for Git version control

In our organization we have being using jmeter since 4 years. In this time we created, manage and execute our jmx scripts through a network drive to share and w

How to insert git info in environment variables using Vite?

How to get information from git about current branch, commit date and other when using Vite bundler?

Does git lfs migrate --no-rewrite change all the branches? And will it change the large file from history to LFS objects?

In my repo, I have large files committed in history and also present in latest commit. I want to use git lfs migrate --no-rewirte so that the previous commits S