Tag: git config

GIT: fatal: Could not read from remote repository when you create new branch

I’m create new branch and I’m trying to push the branch (I have tried the following commands): git push –all -u git push origin NewBranch But in both cases I’m getting this error: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository […]

synchronize git branch with master, selectively

I know how to “synchronize” two branches (i.e. the gh-pages branch is updated everytime the master is updated). What I would like is to sinchronize only a certain directory of master to the gh-pages branch. To be clear, that’s what I would like to achieve: master: +– some | +– file | +– here | […]

how to patch git completion that is missing the difftool command

My system’s git autocompletion is pretty good, but lacks completion of at least git difftool and git diffmerge. I mean that if I type git diff<TAB> on my prompt what I get is the following: $ g diff<TAB> diff — show changes between commits, commit and working tree, etc. diff-files — compare files in the […]

GIT over HTTP configure auth username. credential.username not working?

I am working on a project where the git repo (gitolite) is configured to only allow me https access. Worse the user name they created for me to authenticate with is dreadful. In my .git/config I have user.name set to my real name, so that my commits are correctly associated me me. However, whenever I […]

How to make git to save different versions of a conflicted file into the workspace

In SVN if there is a conflict, the different versions of the conflicted file are saved to the workspace with postfixes. Can I have this in Git as well? I should now hold some training about TortoiseGit, and if a binary conflict occurs, I don’t see any simple option to have the different versions of […]

What does git config do?

I’m new to git and I’m working through a tutorial on setting up subModules. I’m trying to understand all the commands and getting hung up on the lines below. git config branch.master.remote origin git config branch.master.merge refs/heads/master Can someone explain what git config does and how to interpret branch.master.remote branch.master.merge https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial

How can I set to fetch only some branches from remote

I have moodle project in git, and want to constantly update from the original git repository. However it has lot of active branches from which I need only two. Can I set in the gitconfig file to only fetch the two branch I need and leave out the others? I have this part of the […]

How to locally override a version-controlled configuration file in a way that isn't incredibly confusing?

Heres my latest headscratcher: I commit my global git configuration ~/.gitconfig into a dotfiles repo. My actual repo is named vim-config, and I reckon it can continue being named as such because the .vimrc is by far the centerpiece of this repository. At any rate, the point is that when I set up a new […]

Forcing Git to use a specific .gitconfig file

I have tried to google this but could not find a solution. Context: My work laptop constantly keeps changing my HOMEDRIVE and HOMEPATH variables. Instead of trying other approaches to change those variables on my system, I was trying to see if I can force Git to use a .gitconfig file of my choice. So […]

Git Graphical log is not working

I am pretty new to git and I am trying to create a graphical log from an given example in git with this code: git config –global alias.graphlog log –graph –full-history –all –color \ –pretty=format:’%x1b[33m%h%x09%C(blue)(%ar)%C(reset)%x09%x1b[32m%d%x1b[0m%x20%s%x20%C(dim white)-%x20%an%C(reset)’ …currently I am not yet understanding all the given parameters in the example. Is it a git setting issue […]

Git Baby is a git and github fan, let's start git clone.