Tag: linux

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

What are the dashes in git? Such as: -a -b -p

I know generally what they do, but where do they come from? Do they have a formal name? I’ve seen similar letters followed by dashes often in shell commands as well. I couldn’t turn up an answer after some quick searching, since I can’t search for “-a” “-b” etc since the dash isn’t picked up […]

Git/Linux: What is a good strategy for maintaining a Linux kernel with patches from multiple Git repositories?

I am maintaining a custom Linux kernel which is comprised of merged changes from a variety of sources. This is for an embedded system. The chip vendor we are working with releases a board support package as a changes against a mainline kernel (2.6.31). I have since made changes to support our custom hardware, and […]

How to work on a windows IDE while my Git repository is on Linux (using VMPlayer)

I want to develop on 2 systems – using Linux (ubuntu) for server/git repo while having my IDE (RubyMine) in Win7. What is the best approach to configure my environment so the files will be shared between the systems, and also that my Win RubyMine will work correctly with git?

Git doesn't find repository

I have a git repository setup on a server: andy@ubuntu:/home/git/repositories$ ls gitosis-admin.git GoGoFlow.git andy@ubuntu:/home/git/repositories$ pwd /home/git/repositories All fine and dandy. I then come to a new machine – which I have not used before with git I manually added my machines public key into the export_dir/keydir in the gitosis project and type: git clone git@novo.dyndns.tv:GoGoFlow […]

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