Skip to content

Tag: git

How to get source code from git repo using DockerFile

I have Git and Docker on a remote Linux machine. The source code of my project is in a bare repo. I need a way of making the source code from this repo available to Docker during the build process. Below is what I have now (which is basically the default template in VS 2017 for a Docker ASP.NET Core

How can I determine the URL my git repo is located?

I am to work on a project and I have initialized a git repo on a server. Let’s suppose the URL of the server is foo.bar and the repo is at /var/www/vhosts/foo.bar/httpdocs I have created a git repo by running and then I created a .gitignore file, added whatever needed to be added, committed and from my …

Symbolic Link Edits and differences to hard link [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

How can I push only the files in current index?

I have many large binary files with source code under git version control. I want to only push the source files to github for repo initialization. So I used git rm -r –cached to remove the large binary files from the index. After checking git ls-tree -r –names-only mybranch, I confirmed there are …

Pipe in ZSH is stripping colors from Git log output

I’m trying to utilize GRB’s git helpers (https://github.com/garybernhardt/dotfiles/blob/master/.githelpers) for pretty printing my git log. The git log –graph –pretty=”tformat:${LOG_FORMAT}” command from line #62 works just fine; printing with colors in iTerm. But as soon a…