Category "git"

Changing Remote Branch To Push To In Netbeans

I'm using netbeans 7.1 and I want to change remote branch to push to. I cannot find a way to do that. If I do a pull, I can see the branches (dev and master). B

How do I determine file encoding?

Is there a git command that returns file encoding like file in Linux? That completely describes my problem. I tried searching Google but found nothing.

Git pull from someone else's fork

We are two students working on our online repository (different repo) that is forked from a common upstream repo. Let's say other student made Changes, Commit

Git bare repo with multiple branches

I want to make a git bare repository with multiple branches (master, develop, release, etc..). So question is if it is possible to checkout the bare repository

Git in PHPstorm: Unstage files from Git (remove uncommited files from stage)

In PHPStorm's Git interface it's easy to stage files and folders, with the "+Add" option in the "Git >" submenu of the right click context menu. But, how do

How to change folder with git bash?

My default git folder is C:\Users\username\.git. What command should I use to go into C:/project?

Why is my Git pre-commit hook not executable by default?

If you see the accepted answer in: Aggregating and uglifying JavaScript in a Git pre-commit hook, you'll see that I had to do a chmod +x on my pre-commit hook t

Git command to remove local branches that have a deleted upstream?

There are lots of similar questions to this (e.g. this one or this one) but the accepted answers do not seem to answer my exact question. Branch1 is not merged

Authentication failed on tfs server

I am having a really weird issue with git bash on windows. When I am working in Visual Studio I have no problem working with my git repo stored in a tfs server

What should my automated git update process look like?

I come from a subversion background and recently my company made the switch to git. I used to have a cron entry, on my laptop, to update the multitude of checko

How to open Sublime Text 3 editor with git commit

I have already configured Sublime Text 3 as my text editor for git Bash. Sublime successfully opens when I type subl 'filePath' However, when I try a git commi

How to check if remote branch exists on a given remote repository?

I need to do a subtree merge for a specific branch, if it exists on a given remote repository. The problem is that the remote repository is not checked out loca

ssh -vvvT failing with "shell request failed on channel 0"

While trying to setup git SSH from my windows laptop, I see the below. How do I make it work? Currently, I see "shell request failed on channel 0" Command Exa

Is there a way to instruct Visual Studio Code to skip git commit hooks (i.e., to supply the -n argument)?

I would like to be able to install a pre-commit hook, but also to be able to commit under certain circumstances (e.g., WIP) even when the hook fails. I can do t

Is there a way to instruct Visual Studio Code to skip git commit hooks (i.e., to supply the -n argument)?

I would like to be able to install a pre-commit hook, but also to be able to commit under certain circumstances (e.g., WIP) even when the hook fails. I can do t

git clone and cd into it

If I wanted to make a directory and change directory into it all in one line, I could do something like this: mkdir dir_name && cd $_ How can I do the

"Cannot update paths and switch to branch at the same time"

I sometimes use the checkout -b option to create a new branch, check it out at the same time and set up tracking in one command. In a new environment, I get th

How to handle folder of git submodule which is marked as "untracked" in the host repo?

I've got a code base in which I want to add another repo as a submodule to do some integration testing. So following a tutorial I ran git submodule add -b maste

Including js from raw.github.com

I have a github.com demo page that is linking to https://raw.github.com/.../master/.../file.js so that I don't need to always copy the .js file over to the gh-p

How to switch existing Intellij IDEA projects from SVN to Git SVN

I currently have existing Intellij IDEA projects that are tied to the SVN repository. I'm thinking of switching these projects to use Git SVN because I find the