Questions tagged [git]

Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Filter by
Sorted by
Tagged with
4
votes
2answers
159 views

Is there a downloadable git client for Linux without the need to install it?

I'd like to use a git client in a product I'm shipping. The problem is that the machine on which my product is installed doesn't have git installed. Installing it requires a big bureaucratic effort, ...
0
votes
2answers
580 views

Howto resolve “git merge” issues when attempting to keep PR's in sync with master

As I understand from answers given elsewhere on StackExchange - the process is suppossed to be simple: a) git checkout master b) git fetch origin c) git pull origin d) git push myremote # named ...
0
votes
2answers
3k views

Compile Git to use OpenSSL library libssl.so.1.0.1

Running a system that only has full support for OpenSSL version 0.9.8. Installed in parallel is OpenSSL 1.0.1 libraries (Supported by Distro) Git still preferentially uses the 0.9.8 libraries but we ...
0
votes
1answer
212 views

How to complie OpenBSD in src?

Running on OpenBSD, I issue a: git clone https://github.com/openbsd/src.git then how can I compile all the OpenBSD binaries? Is there a "master" make file? I only need the binaries inside the src ...
3
votes
1answer
866 views

Git Client with UI on a Debian system

I known using git on the command line is the preferred method by a lot of Linux users. But has somebody have successfully installed and used a Git Client with GUI on Debian Based System? (to be ...
0
votes
1answer
135 views

Insert credentials into HTTP string?

I need to insert user credentials into an HTTP string so I can properly populate my git credentials file at ~/.git-credentials. These are the three environment variables I have to start with: user="...
1
vote
3answers
123 views

How to find which author and committer has done more commits to a project using git log?

I have been browsing Git Basics - Viewing the Commit History as well as Git Tools - Searching and while most of the ways seem straight-forward I have been trying to figure out if there was a way to ...
2
votes
3answers
936 views

Delete any file mentioned in .gitignore

I have the following entries in a .gitignore file and I want to remove them. The reason why is because these files are temporary-junk files created during a TeX compilation and I want to be able to ...
2
votes
1answer
420 views

error `bash: prompt_git` report when no git operations performed

I occasionally encounter such an error: $ which bash /usr/local/bin/bash bash: prompt_git: command not found The report is obscure, since I did not manipulate git. When it's rebooted, the error ...
1
vote
2answers
250 views

Install git to 32 bit Centos

Trying to install git to 32 bit Centos 7: sudo yum install git Got answer: Requires: perl(Error) How to fix that and install git? Why it is not trying to download perl if needed? UPD: ...
1
vote
2answers
3k views

How to add and push empty directory in git?

When I run git status git doesn't show the empty directory. My remote repository is in github. Can't I add and push empty directory?
0
votes
0answers
112 views

Replace all contiguous newline chars to a single comma

I have this git log command: const command = [ `git log ${branch} -${count} --grep="${grep}"`, ` --pretty=format:'{"subject":"%s","body":"%b","commit":"%h","sanitized_subject_line":"%f",`, ...
0
votes
1answer
319 views

can't output dialog value on bash

I have a dynamic menu on dialog (the items are provided from an array) but the menu is not displaying the selected option gp_options=() for i in `find ~ -type d -name .git`; do gp_options+=("" "$...
2
votes
1answer
761 views

Display git branch in terminal

I am using fedora OS and I want to display git branch or tag in terminal when I go into the git folder project. I follow this tutorial. After I ran: source /usr/share/git-core/contrib/completion/git-...
2
votes
1answer
145 views

How do I make a git server accessible to multiple users?

I have set up a git server, but I'm having some problems with users pushing their commits. I have a total of 3 users, but if any one of them pushes some files, they become read-only for the other ...
1
vote
1answer
291 views

Can git be installed locally (including its dependencies)

I've developed a bash script which needs a specific version of git (2.11.1). Each developer in my team has his/her own virtual machine on the same remote physic server. My colleagues need that script,...
1
vote
1answer
636 views

Clone a repo from github on RHEL 5

I am using RedHat 5.2 and I need to clone a repo from Github. Sadly, since February 1st of this year, they disabled TLSv1 and TLSv1.1 Unfortunately, Red Hat 5 does not have a point release that ...
6
votes
1answer
2k views

Display filename of git diff filtered by term

-n works as a grep argument to display the line number, but -H doesn't for filename. I think it is because git diff doesn't by default output filename for each changed line. As I was typing, I ...
0
votes
0answers
840 views

gpg: Sorry, no terminal at all requested - can't get input

I am trying to run the command: git secret reveal But I am getting error: gpg: Sorry, no terminal at all requested - can't get input I have followed: https://help.github.com/articles/generating-a-...
0
votes
1answer
255 views

Running two git commands in parallel

What happens if two git pull command are run simultaneously in the same directory?
0
votes
1answer
174 views

git does not exclude .git directory

I'm trying to use version control in my music folder to track how I sort it and when I add/delete music. I only need the metadata and not the contents in the repo. To achieve this, I'm using tree to ...
10
votes
3answers
9k views

Change a directory name in a Github repository remotely, directly from local Linux Git?

This is my Git repository: https://github.com/benqzq/ulcwe It has a dir named local and I want to change its name to another name (say, from local to xyz). Changing it through GitHub GUI manually ...
0
votes
1answer
70 views

Git and Git LFS: Doing version tracking on files via a server

I work with many large files (~0.5-1TB) on a server. I would like a better way to do version tracking of these files on the server. My limited understanding is that this may be possible with git LFS....
7
votes
3answers
7k views

Shortest way to download from GitHub

This is, how I download various master branches from GitHub, and I aim to have a prettier script (and maybe more reliable?). wget -P ~/ https://github.com/user/repository/archive/master.zip unzip ~/...
-4
votes
3answers
4k views

How to download all files of a GitHub project with wget (in raw form)? [duplicate]

How to download all files of a GitHub project with wget? All files should be downloaded in their raw form. Already tried: wget -P ~/ https://raw.githubusercontent.com/u/p/b/* wget -P ~/ https://raw....
0
votes
2answers
57 views

How to get the modified files(before and after) from git version server?

Now here is the commit id 41f9f4e392ab50db264e0328de7d69f1f10646eb, I want to get this commit id code which were modified only. I use git show 41f9f4e392ab50db264e0328de7d69f1f10646eb to see modified ...
0
votes
2answers
103 views

How to install packages from git

I want to install the package from the following URL: https://github.com/VegetableAvenger/ARPSpoofing.git I have executed the command git clone https://github.com/VegetableAvenger/ARPSpoofing.git ...
2
votes
0answers
820 views

GIT on Debian Stretch [closed]

I am running Debian 9, vanilla install. My hardware is HP Z230-SFF Workstation, Intel Core i7-4790, GPU Nvidia Quadro K620. Normally on Boot I get the following error: tpm: tpm0 a error(7) occurred ...
1
vote
1answer
171 views

Running `ls` in git repository results in `git status --porcelain --ignore`

When connected to our production server over ssh, sometimes when running ls inside a git repository and simultaneously looking at the output of htop I can see a process git status --porcelain --ignore ...
1
vote
1answer
2k views

branch name in Jenkins regular pipeline job

For a Jenkins pipeline job having web-hook trigger in Git/Bitbucket, each repo push triggers pipeline job. How we can know branch name in pipeline job on which push/change is committed. I need this ...
7
votes
1answer
2k views

How can I get git to select txt files in the current directory alone

How do I select all the files ending with .txt in the current directory, but omit all the ones in the subdirectories? *.txt selects all the files ending in .txt in the subdirectories as well. How do ...
1
vote
1answer
436 views

Git functions requiring SSH broken on Cygwin

On Cygwin, running git clone git@..., git pull or git push, where the remote is an SSH repository address, fails. Below is output of running git clone: Cloning into 'iko-app-rocket'... fatal: cannot ...
0
votes
1answer
288 views

why does watch remove the colors from git log

possible duplicate : watch command not showing colors for 'git status' running the following command: watch -n1 git --no-pager log --oneline --graph -20 reproduces what i expect only it strips ...
3
votes
1answer
133 views

High memory usage from “git status -z -u”?

I am running Ubuntu 16.04. Recently I often find one or two "git status -z -u" process that each takes more than 5GB of memory. So I try to figure out what's going wrong. pstree gives me some output ...
0
votes
2answers
739 views

Can't clone https urls with git

After the upgrade to Fedora 27, I can't clone urls using https anymore, ssh works fine. The error is: fatal: unable to access 'https://repo-url': SSL certificate problem: unable to get local issuer ...
4
votes
2answers
455 views

git: use visual diff (meld) only when in GUI

I know I can specify external diff command to be used for git diff: [diff] external = But then when I am logged in console (without X) this fails because my visual diff cannot open display (...
4
votes
2answers
3k views

How to use any command (such as git) with a normal user's ssh keys but sudo file permissions

I can clone a project as follows: $ git clone git@mysite.com:root/myproject.git ~/bla But now I wish to clone it to /var/www. So I try $ git clone git@mysite.com:root/myproject.git ~/var/www But ...
0
votes
2answers
78 views

Version Control System

In our company we use Subversion for version control system. Now if there is a folder of 10GB in the server and 4 users are working in the project, then during checkout it will accumlate 40GB's of ...
2
votes
1answer
635 views

Recover a git repo which was overwritten with an older version

I've just run tar x by mistake instead of tar c, and overwrote my git repo with a few days older version. This will have left alone any files I had newly created though, including objects in .git. ...
2
votes
1answer
53 views

What does “bm_start” do in a bash script?

Studying the Github backup-utils I found the command bm_start inside their scripts. This is an example that uses the bm_start and bm_end, with some other code between them. According to the project ...
1
vote
1answer
99 views

git-annex created a monster that I cannot un-init

I was going to explore git-annex, but it turns out it doesn't do what I need. That would be fine except that I initialized it on a repository that I'm using (stupid, I see that now) and now all my ...
0
votes
2answers
185 views

sed not catching the expected text

I am working with the git filter branch for one specific task. It is using the sed command. When I use simple regex everything is working but for something more complex it is not. Maybe I have mistake ...
0
votes
1answer
59 views

Permit Duplicate Root Login No [closed]

How i can disable duplicate root/others user access from different device concurrently in Linux Terminal Ubuntu 16.04 LTS?
-1
votes
1answer
695 views

Terminals like Terminator or Guake terminal are not able to parse prompt profiles for git which is set in .bashrc file

Terminals like Terminator or Guake terminal are not able to parse prompt profiles for git which is set in .bashrc file. PS1 variable is not set for terminals which use xterm as base which guake and ...
2
votes
2answers
4k views

Git asks for password when using SSH URL, ssh does not

I have three servers (two ubuntu 16.04, one mac mini) and several macbooks. One server ubuntu is for gitlab and the other is an internal site server. The mac mini is running a CI. Recently the ...
-5
votes
1answer
203 views

Apacheds unable to start [closed]

While trying to start apacheds.service I am getting error like apacheds is not loading properly
2
votes
1answer
290 views

change of directory is very slow

from time to time changing to a directory (through terminal) launches git process which takes 100% of CPU time and up to 5-6 seconds during which my console is absolutely unresponsive. This doesn't ...
0
votes
2answers
244 views

Colored git output piped to sponge

git will color it's output. Staged changes are green and deleted files are red for example. I have a script running several git commands in parallel and I use sponge to get a nicer output. But using ...
1
vote
1answer
390 views

Keychain ssh-agent overriding specified SSH key

I use GitLab repositories with two users (myself and a test user). For my test repository I have this in .git/config: [core] sshCommand = ssh -i /test-project/test_id_rsa [remote "origin"] ...
1
vote
2answers
167 views

Display command prompt (PS1) info for a set of directories

Is there a straightforward way to display the results of my PS1 for a given set of directories? To avoid the XY Problem, I'll state up front: I want to rapidly check the status of every git repo ...

1 3 4 5 6 7 16