Category "git"

Git has stopped working after installing VS 2022

After installing the new Visual Studio 2022 the built-in Git support has suddenly stopped working. For one of the projects I am seeing only a submodule instead

React native init android,ios and app folder missing

Missing android,ios & app folders and index js files I'm using react native v 0.1.10 in windows 7 OS

'cannot open git-upload-pack' error in Eclipse when cloning or pushing git repository

I am not able to clone or push to a git repository at Bitbucket in Eclipse: It's weird, because a day before I didn't have any problem. I have downloaded the

How can I save username and password in Git?

I want to use a push and pull automatically in Git Extensions, Sourcetree or any other Git GUI without entering my username and password in a prompt, every time

Short flag for `git push --force-with-lease`?

I've begun using git push --force-with-lease rather than --force in most cases for the additional branch protection: git push --force-with-lease vs. --force I m

GitHub Actions Failed to Deploy changes to Heroku

I am using GitHub Actions to Deploy my JavaScript to Heroku and it is working fine as expected. However, when my GitHub Repository is recently updated my GitHub

package.json and remote git repository

In my package.json I have defined a GitHub repo as a dependency. "dependencies": { "react": "^16.3.0-alpha.1", "react-native": "0.54.0-rc.3", "re

I can't checkout a specific branch, "detached HEAD state"

Me and my friend has a repo which he created. He then created a branch called "lexer" for us to work on. The problem is that while he can switch forth and back

Unable to initialize Git; AggregateError(2) Error: Unable to find git Error: Unable to find git

Iam getting this in my visual studio code no matter how many time I try to reinstall it

How to merge specific files from Git branches

I have 2 git branches branch1 and branch2 and I want to merge file.py in branch2 into file.py in branch1 and only that file. In essence I just want to work on

How to merge specific files from Git branches

I have 2 git branches branch1 and branch2 and I want to merge file.py in branch2 into file.py in branch1 and only that file. In essence I just want to work on

Going back to a previous commit in Github Desktop

I am trying to use GitHub Desktop (i.e. the GUI application - NOT command line) to go back to a previous commit (on the same branch). Something that I would hav

File size difference between two commits in git

So, I know it's possible to get the file size difference outputted as a positive or negative delta value between two commits using git diff command. Although

running git clone against AWS CodeCommits gets me a 403 error

My local laptop is a Mac. The ssh key is configured properly. This is the content of ~/.ssh/config Host barthea Hostname git-codecommit.us-east-1.amazonaws.com

Should the package-lock.json file be added to .gitignore? [duplicate]

To lock the versions of dependencies that are installed over a project, the command npm install creates a file called package-lock.json. This

Install gitk on Mac

How can I install gitk on a Mac? From their official website, it seems gitk comes with Git, but the version of my Git (git version 1.7.12.4 (Apple Git-37)) does

How to Merge when you get error "Hint: You have divergent branches and need to specify how to reconcile them."

I'm working with 1 other developer who has created a branch that needs to be merged with master. I get this error when attempting to Pull in Git in Visual Studi

git submodule foreach checkout supermodule branch

Consider a git repository Foo/, which has submodules bar1/ and bar2/. Each of these has the same branches: 1 & 2. I enter the supermodule, and I want to

How to run Maven Checkstyle plugin on modified files only

I am running Maven Checkstyle plugin through pre-commit githook written in python (I think that the same question applies to running it directly from terminal).

What Are the Steps to Move Content from GitHub to JsDelivr?

From what I can tell, the steps to move content from GitHub to JsDelivr are the following: Fork from https://github.com/jsdelivr/jsdelivr to https::/github.co