Tag: linux

Error when pulling warning: suboptimal pack – out of memory

I keep getting this error when trying to do a pull or a git gc warning: suboptimal pack – out of memory Compressing objects: 100% (10955/10955), done. fatal: Out of memory, malloc failed (tried to allocate 827101023 bytes) error: failed to run repack How would I go about fixing this?

How to get the name of the current git branch into a variable in a shell script?

This question already has an answer here: How to programmatically determine the current checked out Git branch 19 answers

Git enter long passphrase for every push

Every time I try to push anything to GitHub it asks me the address git@github.com:… and after that it wants the passphrase. Is there a way to automate this? I am using Linux Ubuntu.

how to shrink the .git folder

My current base has a total size of approx. 200MB. but my .git folder has an amazing size of 5GB (!). since i push my work to an external server, i don’t need any big local history… how can i shrink the .git folder to free some space on my notebook? Can i delete all […]

Concurrency in a GIT repo on a network shared folder

I want to have a bare git repository stored on a (windows) network share. I use linux, and have the said network share mounted with CIFS. My coleague uses windows xp, and has the network share automounted (from ActiveDirectory, somehow) as a network drive. I wonder if I can use the repo from both computers, […]

Git and hard links

Considering that Git does not recognize symbolic links that point outside of the repository, is there any problem using hard links? Could Git break them? Can you please point me to detailed information?

Git asks for username every time I push

Whenever I try to push into my repo git asks for both username & password. I have no problem in re-entering my password each time but the problem is in entering username. I use https to clone my repository. So, how can I configure git so that it doesn’t asks for username on each git […]

git: can't push (unpacker error) related to permission issues

I have this problem when i try to push in git: error: insufficient permission for adding an object to repository database ./objects fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To ssh://<repo url>/<repo dir> ! [remote rejected] master -> master (n/a (unpacker error)) error: failed to push some refs to ‘ssh://<repo url>/<repo […]

Git keeps asking me for my ssh key passphrase

I’m using Linux and I created keys as instructed in the github tutorial, registered them with github, and tried using ssh-agent explicitly — yet git continues to ask me for my passphrase every time I try to do a pull or a push. What could be the cause?

How to install latest version of git on CentOS 6.x/7.x

I used the usual: yum install git But it did not install the latest version of git on my CentOS 6.4. So, how can I update to the latest version for CentOS 6.4? Note: The solution can be applicable to other newly released versions of CentOS such as CentOS 7.x.

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