Category "git"

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

Git: cannot delete local branch

I was trying to track a remote branch with $ git checkout -b --track global/master, and git created a branch named "--track". Now, when I run $ git branch -D -

Merge local branch into remote branch other than master?

so I have a local branch A that doesn't exist yet in remote repo. And I have remote branch B in remote repo. How do I merge my local changes into the remote bra

Rename file with Git

I would like to rename file from README to README.md. What is the best practice to do that? I have only one repo called "change-z-index". I open and login like

Git and nasty "error: cannot lock existing info/refs fatal"

After cloning from remote git repository (at bettercodes) I made some changes, commited and tried to push: git push origin master Errors with: error: c

git pushes with wrong user from terminal

I have an issue with git and my terminal. Here's a gallery to show you my issue : http://imgur.com/a/6RrEY When I push commits from my terminal, git says I pu

SSH Key - Still asking for password and passphrase

I've been somewhat 'putting up' with Github always asking for my username and password when I clone a repository. I want to bypass this step because it is an a

How to delete a specific revision of a github gist?

I created a Gist on GitHub and I saw informations I don't want anyone to see. I updated the file since, but everybody can still access the old revision of the f

git ignore .env files not working

I have a laravel project. In the root directory are these 4 files: .env .env.example .env.local .env.staging I have a .gitignore file, and I'm listing the

How to delete a specific revision of a github gist?

I created a Gist on GitHub and I saw informations I don't want anyone to see. I updated the file since, but everybody can still access the old revision of the f