Category "git"

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

Cloud Shell git repository not found after repo move

After creating a new organisation on GitHub and moving the repo from the old organisation to the new one I get the error message: "fatal: repository 'https://gi

Should I delete a corrupt .pack file in the .git folder?

I am unable to push to my remote because of this error: fatal: packed object {some hash} (stored in .git/objects/pack/pack-{abc}.pack) is corrupt remote: fatal:

git-credential-osxkeychain wants to access key "github.com" in your keychain

In line with the github recently removing support for password authentication - I have created a PAT following this guide However, everytime I git push I see th

How can I add existing files to a Gitkraken repository?

This is the same question but still unresolved: Add files to local repository in GitKraken I am new to gitkraken. I had initialized a repository with just a rea

gnutls_handshake() failed (The TLS connection was non-properly terminated) while getting Fuchsia?

I was trying to get the Google Fuchsia source code, but I keep running into a bunch of these errors: ERROR: 'git fetch -p origin' failed: stdout: stderr: fatal:

"error: could not spawn fsmonitor--daemon in the background" when I stage Changed in Git GUI

When I stage Changed in Git GUI, it raised an index error: Updating the Git index failed. A rescan will be automatically started to resynchronize git-gui. er

Git Convert All Remotes in a Repo from HTTPS to SSH

Is there a command to programmatically convert all existing remotes on a repo from HTTPS to SSH? For example, if I had a repo with a remote for GitHub, and anot