Category "git"

Git: How to move origin/master from an abandoned branch to current HEAD?

Git newbie here. I made some changes that I wanted to abandon. So I did a checkout to an earlier point, and started working again. I don't recall exactly what e

LF will be replaced by CRLF in git - What is that and is it important? [duplicate]

When I create a new rails application I'm seeing a warning in git about LF replacement. I do git init git add . and then boom! I see

How to tell Git to ignore what has been changed in a file since the last staged/commit?

I do not want to undo the changes. I do not want Git to ignore this file. (Note: a totally hypothetical situation in order to explain the question.) I'm an inex

Git - Commit and push local changes without losing file diffs?

I'm in VSCode and just made a ton of changes on my branch. I have a rough draft that would be a shame to lose due to to not backing up online. So naturally it w

How do I rerun the editor after the git commit-msg hook?

I have a git commit-msg hook that looks like this: #!/bin/bash COMMIT_MESSAGE_FILE="$1" COMMIT_MESSAGE=$(cat "$COMMIT_MESSAGE_FILE") if echo $COMMIT_MESSAGE |

Weird resource leak related to gulpfile or git or cmd prompt

I have a gulpfile in a project directory. I use gulp frequently and this file is similar to my different gulpfile's that I've used many times before. I first be

Emacs magit command that shows names of modified files in a branch

While on a branch, I'm looking to run effectively this command: git diff --name-only master... using magit. What is the appropriate keystroke to see the name

Error Broken Pipe by Pushing Git Gogs in Eclipse

When I try to push my code from eclipse 4.22.0 to local git server, come error messege Can't connect to any repository: http://192.168.0.100:3000/root/ABC (http

Accidentally override local branch by origin with pycharm

I have some branch name X I was working on. I committed my work locally (didn't push). Then I noticed a bug and tried to compare my results to the ones in the r

GITLAB - Fatal: Could not read from remote repository

First of all, thank you so much for your attention on this important issue that I'm dealing right now... See the image below then keep reading the text: So, I b

Download a specific folder from on-prem GitLab

I have an on-prem GitLab with a huge repository with many folders. I'm trying to create a freestyle Jenkins job that would only retrieve the folder from the rep

How to delete all commits from private repository in github?

I want to add gitignore with 2 files( node_module,another one) in a private repository which is given by github classroom. But I already git pushed for several

I cloned a repo using ssh, yet when im trying to push now im getting as public key denied warning

I tried ssh -T [email protected] and was successfully authenticated. this is the error I get when trying to push. [email protected]: Permission denied (publickey). fa

Using Nuke build to push a tag to an Azure Devops repository

I'm trying to figure out how to push a tag after a successful build back to the azure devops git repository. Whether I'm just asking the wrong questions or goi

Command executed via pexpect not taking effect

I am trying to cherry-pick gerrit reviews using a python script. I already have the string required to cherry-pick a review. I have used pexpect to automate the

Using GitHub with Multiple Accounts on the 1 Machine

I am having trouble getting multiple GitHub accounts working on the 1 machine (Windows 11). Here's the scenario. My work has a Github account. Let's call it jon

Push Submodules in source control Panel

I have a local repository with n number of submodules in it. sometimes i work on these sub-modules and make changes to it.when i wanted to commit and push these

git gc: error: Could not read 0000000000000000000000000000000000000000

git gc error: Could not read 0000000000000000000000000000000000000000 Enumerating objects: 147323, done. Counting objects: 100% (147323/147323), done. Delta com

remove all git tags cross-platform

I'm trying to remove all local and remote git tags I found several methods to accomplish this, but none of them works natively for cross-platforms for example:

Is it possible to name different batches of staged files in git?

For example, I have changes to a few files in my branch. I then stage them using git add. Then I have other additional changes. I stage them again using git add