Category "git"

What scopes do IntelliJ settings sync require?

I am trying to get my Android Studio (IntelliJ) IDE settings synced across multiple computers. From what I understand, the easiest options should be to use a se

how to push only current changes on specific or other branch from my current branch

let's asume, I have a repo. there are separate branches. branch A & branch B. branch A has 15 commits and branch B has 10 commits. now I am working on branc

Trying to simulate a git merge conflict

I am trying to simulate a simple merge conflict, having read about similar tasks on the website, my situation is slightly different. Here are the steps that i a

git push stalls on macOS

after the last two updates of xcode I am having a really annoying problem with git. All commands but git push works perfectly. But git push stalls/hangs. This i

Did I just lose all my work? How to restore my local data? (Git)

I'm very new to git. I'm an idiot and I was using it without really knowing what I was doing. I accidentally overwrote everything in my local with the master. 3

Git: "Missing or invalid task ID in the commit message".Why do I have to provide a task ID?

When I do push in Visual Studio, it says in Polish language "Git: Brak lub niepoprawny ID zadania w message'u commita"(translated as "Missing or invalid task ID

AWS EC2 npm install suddenly very slow

In my ElasticBeanstalk environment, it always (for years) used to take ~5 mins for my Node.js app to be deployed and for the instance to change from status "Pen

Git detects files as newer after reverting a merge, so it doesn't show conflict

I have this scenario: There are 2 branches, 'develop' and 'feature-branch'. This two branches have been growing over time each one independently. Now, 16 of Nov

'git status' yields different results in git bash (Windows 10) an WSL2 bash

I work on Windows 10 with WSL2. I initialized a git repo in git bash (Windows) and everything works fine (commit, push etc.). git status # on Windows, git b

Every file added to .gitignore was deleted by Git during a Pull

I recently wanted to start tracking some project files for a certificate course I'm taking, so I got the Git Desktop app and linked my main project folder to my

Why does Git tell me "error: No such remote 'origin' " when i try git remote remove origin?

I created a project and I want to send it to heroku but I have a problem with the URL so I wanted remove remote.origin.url=http://exp and replace that with remo

What is the Sign Off feature in Git for?

What's the point of the Sign Off feature in Git? git commit --signoff When should I use it, if at all?

Can't clone from repository of Github in Visual Studio

Recently, my visual studio can't clone from repository of GitHub. Once it is completed clone, the visual studio will report this error "One or more errors occur

Change CRLF to LF of all the files in repo

My repo has lots of files with CRLF. I want them to be changed to LF. I tried to change in my working copy and commit them but the changes are ignored by git. T

Heroku deployment with Git fails with 504 Gateway TImeout

Due to the recent problems on Heroku´s Dashboard, I am trying to deploy directly my app through Git as stated here: https://devcenter.heroku.com/articles

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 |