Category "git"

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

Cannot do a git pull, unable to write to pack directory

I receive the following error when doing a simple git pull: remote: Azure Repos remote: Found 357 objects to send. (13 ms) Receiving objects: 100% (357/357), 91

E2E tests with multiple repositories in CircleCI

I have a project in which the backend is a Rails app (API-only mode) while the frontend is a React app. They are in different Github repositories but I'd like t

Could not read from remote repository, in other words push rejectec

I'm trying to push my branch, made the necessary changes and made the commit. However once I press push on Android Studio, it tells me that Push is rejected and

How do I have permission to use git push in gitlab ci?

CI_JOB_TOKEN has only read-only access to repository, and I am able to have write access to the repository using the gitlab personal access token, but I need to

Remove commit from history without changing anything else (dates, committers)

I expected this to be as easy as interactive rebase, but I've noticed that rebase changes commit dates and committers. What would be the easiest way to remove a

Bitbucket Cloud recently stopped supporting account passwords for Git authentication

I have pushed the code in the morning it was working fine but now I'm trying to push code but getting this error: Bitbucket Cloud recently stopped supporting ac

Is there a way to undo detached HEAD state without undoing the work I've done while in detached HEAD state?

I'm in a detached HEAD state but have made a bunch of commits while in detached HEAD that I can't lose. Is there a way to undo the detached HEAD state without l

git checkout error: unable to read askpass response in Windows 10

Error occurred while cloning repository in Android Studio error: unable to read askpass response from 'C:\Users\User\AppData\Local\Google\AndroidStudio2021.1\tm

Redoing Git Commit

I have Git commit "Day 19" that doesn't have all the code I wanted to commit. Then I made a new commit with those new changes "Day 21". Is there a way to re-com

Are there some rebase best practices with multiple pushes?

I started a new job at the beginning of the year, whose git practices are different than what I am used to, and I keep running into problems. The documented pro

problem when fix error git : "Support for password authentication was removed", there are no github internet password in Keychain Access?

I installed git on my Mac and checked it on terminal by command git version, it showed me this : git version 2.35.1 So maybe it is ok. When I tried to push a f

Any way to avoid git checkout -f "warning directory is not empty"?

I have a git repository that contains multiple branch that diverged a lot. When I say diverged it means that each branch can contain new folder or submodule and

Github reads previously merged files as new file changes

Admittedly I don't understand Git well enough, so I'd really appreciate someone's help here. Situation: We are working off feature branches, branched from test

How to take changes from one remote branch to other remote branch

I'm working on a project and I cut a branch from a release_branch let's call my branch branch_A. My colleague also had cut another branch from same release bran

List files in which a word has disappeared

So, say I have two branches old_release (containing an old release) and new_release (containing a new release). In the old release there was a tool called cook,

Git checkout remote branch deleted locally

In one of my systems while working on a project, I made changes and pushed it. Now I have a new system with all the same ssh/user details, I cloned that project

What does *105 rebase-i 1/8 ?1 mean?

I get the following every time Im on my master branch. Does anyone know what it means? on master *105 rebase-i 1/8 ?1

Pushing git tag to ssh protocol type link failes in jenkins

I have a repo: https://github.com/Elydasian/gatling-example I have a pipeline in jenkins ready, that checks out that repo, and after some building and whatnot,

Git pre-merge-commit hook : How do I ignore a file during a merge?

Context I'm working in a complex git flow where some specific branches get specific submodules and some specific config files that require to be committed, but