Category "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

Git diff command from shell script

I have a script: #!/bin/bash git log -1 | grep -w '^commit' | cut -d ' ' -f2 | git show | grep -w '^index' | cut -d ' ' -f2 > tmp_out while read -r arg do

Master branch won't pull updates from local branch

I created a branch using these commands "git branch placeorder" in my terminal locally, and it was created successfully but when I had committed and pushed my c

Support for password authentication was removed. Please use a personal access token instead

I got this error on my console when I tried to use git pull: remote: Support for password authentication was removed on August 13, 2021. Please use a personal

prevent github to re-order my directory tree wrapping with number

I have a structure on my local like this: root/ dir 1 dir 2 dir 3 dir 4 dir 5 dir 6 dir 7 dir 8 dir 9 dir 10 dir 11 dir 12 but when i commit it and push to git

git mergetool with intellij Idea's community edition on windows

I'm using GitExtensions windows software to work with git and i had many trouble configuring it to work with Idea's community edition, to use it as a merge tool

Push failed android-studio project

I am getting the following error while i am trying to push/pull to/from my github repository. I haven't touched my repository for 20 days now. Last time that I