Category "git"

How do I update the password for Git?

I'm using BitBucket with Xcode and Git for version control, and recently I changed all of my passwords (thanks Adobe!). Unsurprisingly, I'm no longer able to p

How to debug Syncing lock on pushing the current branch to Visual Studio Team Services

Last night I committed to local repo just fine but then when pushing up to Visual Studio Team Services (previously Team Foundation Service, not Server), the com

How do I remove the cruft at the start of my posh-git window title?

I'm using posh-git for my powershell window, and the prompt is perfect: S:\Repos\DevTools [master ≡ +1 ~2 -0 !]> But the title of the window has ext

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