Tag: c#

How to handle dependencies in cross platform C++ projects?

This are the ways I see for dealing with external libraries in a cross-platform project in an automated way. (Why are there no cross platform package managers?) Add compiled binaries to the repository. (This doesn’t work, since platform and build configuration vary and new environments may come up.) Write download scripts to fetch source code […]

Error encountered while pushing to the remote Git repository

I’m currently working on a project that is hosted on visualstudio.com (Visual studio online) and I choose Git as the code repository but I’m getting a error when I try to push my changes in the code to a Git repository. When I’m using Visual Studio 2015 to push it I’m getting that error message: […]

Nuget fails to manage references in a project cloned from git

I created a project (asp mvc 4) and used nuget to add dlls to it. Than I committed it to bitbucket and finally cloned to a different directory on the same PC. In the cloned project every single reference shows an error (yellow exclamation mark) I allowed nuget to manage packages: I also have nuget […]

running git 'post-receive' hook with setuid fails

I have a git repository that needs to run a post-receive hook as sudo. The binary that I compiled to test this looks like: #include <stdlib.h> #include <unistd.h> #include <stdio.h> int main() { int ret; ret = setuid(geteuid()); if(!ret) { fprintf(stderr, “error setting uid %d \n”, ret); } system(“[…command only sudo can access…]”); return 0; […]

How can I get file binary data out of Git repository using LibGit2Sharp?

I have decided to try and migrate my project from using GitSharp to LibGit2Sharp since GitSharp is no longer actively maintained. With GitSharp I was able to access the raw bytes of any file checked into my repo given a branch. I cannot locate any documentation or example code of how this is done using […]

YouCompleteMe can't autocomplete

I want to develop C/C++ programs, so I installed YouCompleteMe for Vim through Vundle.but it can’t work normally, In fact, it shows only the words contained in the current file.hope to help! my step are as follow: download Vundle.vim git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim #modify .vimrc set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin ‘gmarik/Vundle.vim’ […]

Git commit and push a binary file, but don't keep history

I have a .NET C# repository. Included is a binary executable which builds a database based on a number of regularly updated SQL scripts also in the same repository. Naturally, the bin folder is ignored using .gitignore. However, I have some non-developer users who need to get regular updates to this file. Ideally what I’d […]

Splitting up a .NET solution/Git repo for multiple apps

I currently have a single solution that contains both the one application developed so far and projects for all of the homegrown libraries. This entire solution is also kept in a single Git repo. I am now going to be developing a second application that will make use of those same libraries. That application will […]

How can I do a git clone operation using Cake

Is it possible to clone a git repository using a Cake script? If so, how can this be done?

What does the value means in git?

In a .gitattributes file I found the following line *.cs text diff=csharp what does it mean?

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