Tag: linux

How to setup SSH keys for buildbot user

I’m trying to setup SSH keys for Buildbot’s buildbot user, so it can clone my private repo without needing a username and password. This is how I’m testing: sudo -u buildbot bash export HOME=/var/lib/buildbot cd $HOME mkdir git cd git git clone git@bitbucket.org:myproject/myrepo.git the last step fails with: Cloning into ‘myrepo’… Permission denied (publickey). fatal: […]

How to detect correct GIT_DIR and GIT_WORK_TREE of the parent Git repository in a submodule

I’d like to implement a submodule in GNU Bash to check all GNU Bash scripts in the parent repository, excluding all submodules’ Bash scripts. I’ve already know that git ls-files -z \*.bash will to the job properly, the problem is I don’t know how to detect the exact GIT_DIR and GIT_WORK_TREE environment variables of the […]

Nginx Configuration Versioning Strategy

currently a project my team inherited has a complete mess on the nginx configuration across 10+ environments, we would like to implement a versioning strategy however im not sure how people “normally” achieve this. you make the whole nginx conf folder a git repo and ignore what you do not want to version? or have […]

Why does Visual Studio Code wants to access my private SSH key?

I started using SSH based authentication to push/pull to/from my github remotes. For any git related work, I used the default terminal present in Ubuntu. The problem started when I switched to Visual Studio Code a few weeks ago. VSCode has some git features, and this results in a prompt every few minutes. This prompt […]

GIT hook -> Python -> Bash: How to read user input?

I’m doing a GIT hook in Python 3.5. The python script calls a Bash script that that reads input from the user using read command. The bash script by itself works, also when calling directly the python script, but when GIT runs the hook written in Python, it doesn’t work as expected because no user […]

definition of gitk's “Mark Branch Sides” option

In gitk, there is an option in the “Edit View” (F4) window called “Mark branch sides”. It seems to correspond to the –left-right option: +set known_view_options { + {perm b . {} {mc “Remember this view”}} + {args t50= + {} {mc “Commits to include (arguments to git log):”}} + {all b * “–all” {mc […]

Gitolite Error: gitolite-admin not a repo

Quick Note: Before anyone points it out, I did originally post this on Server Fault, but after doing so I realized this site may be more appropriate. Sorry for the “double post”. I had installed gitolite about 6 months ago and all of a sudden I started getting this error: fatal: ‘gitolite-admin’ does not appear […]

Trouble connecting to my git repository from windows to linux

I have git installed on my local windows 7 PC. I can commit there. I have git installed on my linux dev server. I can commit there. I have successfully cloned to each machine a github repository. So they seem to be working in that sense. But I’d like to be able to push from […]

Best practices for maintaining configuration of embedded linux system for production

I have a small single board computer which will be running a linux distribution and some programs and has specific user configuration, directory structure, permissions settings etc. My question is, what is the best way to maintain the system configuration for release? In my time thinking about this problem I’ve thought of a few ideas […]

git: creating remote branch failed

I tried creating remote branch devel using: git push origin origin:refs/heads/devel But it fails with: error: src refspec devel does not match any. error: failed to push some refs to ‘git@***.com:***/abcd.git’ What’s going on? EDIT: I am following: This Tutorial

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