How can I put a database under git (version control)?

I'm doing a web app, and I need to make a branch for some major changes, the thing is, these changes require changes to the database schema, so I'd like to put the entire database under git as...

Git Pull: Change Authentication

I'm quite new to git. I have a repo setup on a server (A) where access is via ssh rsa keys. I have a few users there including myself. Now I do git clone on my local machine and get a local copy,...

Switch to another Git tag

How do I check out version version/tag 1.1.4 of the rspec bundle? cd ~/Library/Application\ Support/TextMate/Bundles/ git clone git://github.com/rspec/rspec-tmbundle.git RSpec.tmbundle osascript...

error: object file is empty .git/objects/../.. is empty -- fatal: loose object ... is corrupt

So this is the fifth time this has happened in the past three weeks and I am really stumped as to why this keeps happening. This is the exact message I get when I do 'git status' error: object...

Git "efrror: RPC failed; result=55, HTTP code = 0" on push

I've spent all day on this one and could really use some help. When I try to push a relatively large commit, Writing objects: 100% (21/21), 908.07 KiB | 0 bytes/s, done. Total 21 (delta 17),...

Git Bash on windows 7 behind proxy no longer working

I'm on a windows 7, 32 bit box, and working behind a proxy. I just upgraded my git client (Git Bash) to Git-1.8.3-preview20130601, and all of the sudden, I'm getting the following error whenever I...

How to commit only a message to GIT?

Suppose that I have been working on a branch and have committed my work but want to add a message in the logs of what is next on the todo list for the branch. Times I might want to do this...

Is it mandatory to save *.iml files in Version control?

I have now switched to Android Studio and saving my projects in Git with Source Tree. Whenever I add or remove any library from my module, its .iml file also changes. It really doesn't matter if I...

How to git cherrypick all changes introduced in specific branch

Background info: Due to restrictions in workflow with out existing systems, we need to set up a somewhat unorthodox git process. (patch) A-B---F | | (hotfix) C-D-E ...

Homebrew fatal: needed a single revision (MacOs Sierra)

Not sure if this problem is related to upgrading to MacOs Sierra, but since that moment this error occurs when I run 'brew update' → brew update Checking out v1.0.0 in...

missing files and lines after git merge

I'm trying to perform a simple task : merging a branch into master but I can't get it working properly. I do : git merge new-design I have conflicts, no big deal, some files from my new-design...

How to remove remote git hooks?

I have pre-push hook implemented with Husky. Now I wanna remove it. Problem is that after yarn remove husky git hooks are still there inside .git/hooks. Because of that I get this error every time...

Git error: remote unpack failed when pushing to a bare repo

I'm having trouble with switching my local SugarCRM instance from a gitlab repo to a new github repo. Locally, the project is on a vagrant VM running on a Windows 10 host. I run git commands from...

How to fix pod install error glog is too old or missing react native ios in windows 10

I wanted to detach expo in my expo project to get the bare react native project after expo detach i run pod install bring me this error that during installing glog that script is too old or is...

Is there a keyboard shortcut to switch between the left-hand side and right-hand side of a diff/compare-two-files editor?

I love using VS Code with the vscode-vim extension as I can do most editing without the mouse. But whenever I'm looking at a diff view (by clicking a file with changes in the SCM/git pane) or an...

Plesk Obsidian, Github Cloning not working

I am using this method mentioned here to clone my Github repo to my httpdocs folder: Is it possible to connect to private Github repositories using Plesk Git extension?, but I am unable to...

How to solve insufficient authentication scopes when use Pubsub on GCP

I'm trying to build 2 microservices (in Java Spring Boot) to communicate with each other using GCP Pub/Sub. First, I tested the programs(in Eclipse) working as epxected in my local...

Maven is not using Java 11 - Fatal error compiling: invalid target release: 11

I am trying to compile my project with Java 11. When I try to run the application with Java 8 as the Java version in pom.xml, it works fine. But when I try to run it with Java 11, it throws an...

Does git stash, stashes only staged files or even Unstaged and Untracked files?

I've made few changes to my code on a wrong branch(dev). I wanted to shift all my changes to master branch, I got some lead from here, but I'm not clear whether the git stash stashes only *staged*...

Inline merge conflict resolver in PyCharm/IntelliJ/JetBrains IDEs

Switched back again to PyCharm recently. VS Code has this handy inline merge conflict resolver which you could select the action you want, and for trickier conflicts, you could move the line...

azure pipelines for static website hosted on azure storage blob

I have a static website stored on an azure storage blob with a web container. I also create two pipelines one for build and one for release and there are triggered for any git push. However, even...

Git gui icon disappeared vs code

image of my current vs Code VSCode Version: 1.49.3 OS Version: 10.15.7 The git gui icon is missing. I have tried creating a new repo + git init. Also, I have tried to enable and disable git from...

How can I Transfer Learn using TPU on Colab

I am trying to teach myself Transfer Learning techniques using Tensorflow 2 on Colab. Using GPU is working fine but as everybody knows Google has its TPUs and they are faster than GPUs. In Colab,...

Reliable set of command to switch between git branches with and without submodules

I'm attempting to create a node/go library (https://github.com/simpleviewinc/git-tools) to help using git to checkout a repo to a specific remote/branch for handling production checkouts as well...

Can I change the default git branch in Android Studio?

The default git branch in Android Studio is 'master'. However, Github has updated its default to 'main', and I'd like to keep consistent with that. Is there any way to change the default git...

Prevent deleting dead code during Auto Format on Save?

What is the magic configuration for allowing a file to be auto-formatted upon a Save operation, but stop / disable / prevent VSCode from deleting dead code? Sometimes I want to deliberately throw...

After migrating to an Apple M1, my app doesn't start anymore

1 year ago I developed an application. The latest update I published was 2 months ago. Since then, I switched from a MacBook Pro 2017 to an Apple Air M1. Today, I wanted to make some updates to...

Visual Studio 2022 how to turn off the new Git experience

Looks like the option to turn off the new Git experience is gone from VS2022. And there is still no way to link in a DevOps work item like you could in the Team Explorer. Has anyone found the off...

Unable to reach Jenkins Pod from outside of kubernetes cluster under Metallb

I have a Kubernetes cluster that is running a Jenkins Pod with a service set up for Metallb. Currently when I try to hit the loadBalancerIP for the pod outside of my cluster I am unable to. I also...

SPA server for localhost not working, can't find localhost

I have a React.js project utilizing .NET in the backend. I switched computers, pulled the files from git, and expected things to run fine. However I am unable to get the local server up and...