How do I tell Git to ignore everything except a subdirectory?

I want to ignore all files in my repository except those that occur in the bin subdirectory. I tried adding the following to my .gitignore: * !bin/* This does not have the desired effect,...

Heroku - Application Error

I've created simple application with Ruby on Rails and I’ve tried to commit it on Heroku. I’ve followed this [Getting Started on Heroku guide][1], I finished it and try to open my page but I...

How to install/setup TortoiseGit to work with GitHub

I have just installed Git For Windows, and created my SSH key using SSH through Cygwin. It seems to be working from command-line and the Git For Windows GUI, but now I want to use TortoiseGit....

Redirect top-level domain except for one page in Drupal

I have two top-level domains pointing to my Drupal installation, abc.com and xyz.com. I'd like to force all pages to use abc.com, EXCEPT for one page (node), which should always use xyz.com. I've...

Git asks to commit or stash, but there's nothing to commit

While trying to pull from a remote branch I get an error: Your local changes to the following files would be overwritten by merge: app/..../_shared.scss Git is asking to commit the file or to...

oh-my-zsh slow, but only for certain Git repo

I recently started using Zsh and it's awesome. Unfortunately, for the project I consider my "main" project, everything is slow. What I mean is that every time I run a command - ls, for example -...

Git warning: unable to access 'P:\/.gitconfig': Invalid argument

I am just testing git. I ran the following command: git config user.email "[email protected]" I now get this when git status and others: C:\gitg\g1>git status warning: unable to access...

Using IPython notebooks under version control

What is a good strategy for keeping IPython notebooks under version control? The notebook format is quite amenable for version control: if one wants to version control the notebook and the outputs...

Git unable to resolve references when pushing

I am having an issue with Git. For unknown reasons, my master branch has somehow gotten corrupted. I have a local commit that I want to push up, but when I push, I get this: git push origin...

git push fails using maven release plugin

running git version 1.7 and maven 3.0.3 and maven release plugin 2.4.2 and attempting to run the following command: mvn clean install release:clean release:prepare release:perform I receive the...

How to check the status of all git repositories at once?

Introduction In order to check the status of git repositores, git status could be issued from the root of a repository. C:\path\to\git_repositories\git_repo_1>git status On branch master Your...

What are the best practices for having git clean history?

Reading about git workflows, I was wondering about the appropriateness of history rewriting. My workflow, and I imagine that of many others, is this: Take Github repository, let's call this...

Visual Studio Code always asking for git credentials

I started using Visual Studio Code, and I was trying to save my test project into GitHub, but Visual Studio Code is always asking for my GitHub credentials. I have installed in my PC GitHub...

Node Sass does not yet support Windows 64-bit

I am running protractor UI automation project and try to run test with yarn test and received following build error Module build failed: Error: Node Sass does not yet support your current...

numpy is already installed with Anaconda but I get an ImportError (DLL load failed: The specified module could not be found)

I am using the Anaconda distribution with Python 3.7. Among the packages installed, I have numpy, pandas, etc. In PyCharm IDE, I have set the Project Interpreter to be the path to the python.exe...

How can I commit Git hooks?

I'm trying to add a pre-commit script. The script works, but Git ignores the changes to the file. It seems like Git ignores any changes I make in .git, but it isn't specified in .gitignore. For...

Org agenda “wrong number of arguments” error

I am trying to use org-mode agenda view again. When I run M-x org-todo-list, I get an empty *Org Agenda* and the minibuffer displays Wrong number of arguments: (0 . 0), 2 I am running...

React Native: App crashes on start due to SoLoader issue

I'm having issues with my app on Android (iOS is running fine). Every time I do the build, when I open the application it closes before starting. I have tried many solutions that I have been...

Running numpy using anaconda and VS Code

I am trying to get VScode to work with anaconda but having issues with numpy. I have managed to get VScode to use the right python environment From VScode (ctrl+shift+P, type Python:Select...

Building docs fails due to missing pandoc

The problem I am having trouble getting my docs to build successfully when clicking "Build" on the readthedocs.io web interface, but it builds just fine on my local machine. To test that it is an...

React native app crashes in IOS 13 version devices

I am working on a react-native app. The app is running perfectly in android and IOS below 13 version, but it crashes on devices with IOS 13 and above. I don't get any error or warning while...

BUG: unpack-trees.c:699: pos must point at the first entry in this directory

I tried to soft reset my branch to remove a directory I had accidentally pushed to GitHub. After the soft reset I was still getting the following error: fatal: Unable to create...

Vue CLI SOCKET_TIMEOUT error creating new project (npm error)

So basically I am trying to set up a new Vue project using vue create vue-first-app and I end up with this error below. I tried to increase the timeout using npm install -timeout=9999999 . I also...

npm run production error : "unknown option no-progress"

I am trying to run the command npm run dev or npm run production. But none of them are successful. Once I run the command I am getting an error like in image : error after running npm run prod My...

Opening Realm files of format version 5 is not supported by this version of Realm

I can't find a way to read my Realm file. I assumed Realm is backwards compatible. The Realm objects/attributes/classes have remained exactly the same. I tried changing the schema and also tried...

How to resolve Gemfile.lock contains merge conflicts (running `git checkout HEAD -- Gemfile.lock` does not work)

I got an error message after I ran bundle install in my ruby on rails app, the error message was: Your Gemfile.lock contains merge conflicts. Run `git checkout HEAD -- Gemfile.lock` first to get a...

Docstrings are not included in Read the Docs Sphinx build

I built a Sphinx documentation and the build works well locally. My docstrings appear as shown below. When moving to readthedoc.io, I added a specific requirement file under docs/requirement.txt...

Troubleshooting pycocotools installation

I'm trying to use object detection models from Tensorflow and need to get pycocotools installed. I'm doing this from a python (3) virtual environment on a Windows 10 machine. There seems to be...

ESlint - Error: Must use import to load ES Module

I am currently setting up a boilerplate with React, Typescript, styled components, webpack etc. and I am getting an error when trying to run eslint: Error: Must use import to load ES Module Here...

Springboot 2.6.0 / Spring fox 3 - Failed to start bean 'documentationPluginsBootstrapper'

I'm trying to initiate a Springboot project using Open Jdk 15, Springboot 2.6.0, Springfox 3. We are working on a project that replaced Netty as the webserver and used Jetty instead because we do...