Category "git"

Is there a way to synchronize a file across all branches?

I am trying store my dotfiles on GitHub using a bare repository. The thing is, that I want to create different branches for different desktop styles but if I ha

first commit in branch

Whith command git rev-list --max-parents=0 HEAD I get first commit in project 37a8bdc19ce1fd41ebfa1611621da3b30e92ff03 With this two I get the same output: gi

How to verify if the submodule hash is pushed to the remote?

I've a monorepo with many submodules,everytime a PR is raised on my monrepo to update hashes of the submodule, i need to run a jenkins job to see if the hashes

How do I push git even after using PAT

I tried to push some command to remote GitHub, even after using the PAT (personal access token) I'm still facing this problem. please help. C:\Users\adegu\proje

Gitlab Issue on git push -A

When I git push a Folder with the following Commands git add -A <directory> and git commit and git push it pushes some sub-directories as directories and

How can send custom error message after git push from local git server by using jgit api

I have been making a local git server by using jgit . Following is my code repository for local git server. https://github.com/masumcse1/mygitserver https://git

How to use "git describe" with dev and main (with tags) branches

I'm trying to setup a repository as if it there will be collaboration in the future, but for now it's just me using it. My intention is to use three branch tier

How to add directory recursively on git safe.directory?

According to this QA, we may use safe.directory argument to add directory to be marked as whitelist, due to latest CVE found on git. But it seems there is no wa

Git GPG: gpg failed to sign the data

I have an error with signing my commits by git commit -S -m 'test' and getting these errors: error: gpg failed to sign the data fatal: failed to write commit ob

Get commits from master branch to a branch with different history

I'm making an E-commerce website using django and web(HTML/CSS/Js). I'm planning to host the app on Heroku, so for that, I'll need to create some files and do m

error: inflate: data stream error (incorrect header check)

I did a bunch of file renames in my codebase and when I run git status or git log, I get the following error: inflate: data stream error (incorrect header check

Migration SVN to Gitlab

How can we migrate a project SVN to Gitlab ? if we commit to SVN , will be automatically change in gitlab referenciel ?

Visual Studio Code remote: Invalid username or password fatal: Authentication failed

I'm using Visual Studio code editor issue is it is not asking for password when i run git push origin branchname remote: Invalid username or password fatal: Aut

Git : explore folders tructure of old commit without checking it out

I want to look at the folder structure of an old commit that I cannot checkout anymore (it had some Git LFS stuff which is now broken beyond my power to repair

Get method names and lines from git commit - python

I am wondering if there is a way to get the list of method names that are modified along with modified lines and file path from git commit or if there are any b

Can a gitignore file have a name?

For example, can you name a .gitignore file foo.gitignore? Ultimately, the purpose for this being to have multiple .gitignore files for different sub-project ty

GIT separating 1 project into the 2

I am working in some project for mobile devices. Soon it will be separated into the two projects with the same code but another one will be for AndroidTV. So ho

If TS codebase has changes in a specific directory, then a file must also contain changes

I have a large frontend code base written in TypeScript that utilizes Storybook as a design system. Storybook is separate from the main application in the code

Git repository for multiple Linux users

after reading some of topics I still cannot find solution for this problem. Lets say this is my infrastructure: Two types of servers: dev and prod Two types of

How can I create a pull request between branches with entirely different commit histories

I have two branches with entirely different commit histories, and I need to create a pull request - NOT MERGE - from one of them to the other. When I tried it g