The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

158 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
58 views

Patching the kernel source through git

I'm trying to understand how the patching of the kernel source works. I found the patch that I would like to try an apply on the following page. I found no .patch files that I can use to apply the ...
1
vote
1answer
771 views

Strange symbols instead of normal icons and sidekiq issue in GitLab

After setting the relative url in gitlab: # Note that three settings need to be changed for this to work. # 1) In your application.rb file: config.relative_url_root = "/gitlab" # 2) In your gitlab....
1
vote
0answers
1k views

git deploy using sudo nopasswd

I'm trying to write simple post-recieve script, which would switch to webserver user and pull git repository. To do so, I added git user to sudoers (I've added this to very last line): git ALL = (www:...
1
vote
2answers
2k views

pass answer to git command

I try to get "git pull". It is asking for username and password. How i can automate it? ➜ git:(master) git pull Username for 'http://127.0.0.1': username Password for 'http://username@127.0.0.1': ...
0
votes
0answers
9 views

How to do custom build of git with portage

I would like to add a 'profile' local flag for my git install that uses the profile build options referenced here: https://github.com/git/git/blob/master/INSTALL According to the INSTALL file, I ...
0
votes
0answers
19 views

Capturing output from `git push` so I can auto open the “create new PR” url

I'm trying to write a bash script to auto-open the url that is displayed to create a new PR when you push a branch to origin the first time. This is what I got and always shows "NO MATCH" when I do ...
0
votes
0answers
18 views

Why don't we need main module file in git unlike CVS?

How can we bind all the submodules with a main module in git? I am coming from CVS background where we have a main module file where we specify the commit ids of each submodules. How can we do so in ...
0
votes
0answers
35 views

How can I find my Git credential helper / manager?

I'm using my github account with ssh key on my CentOS 7 desktop. So, I don't need to input password for git commands such as git clone generally. But, I need to clone a private git repository of ...
0
votes
0answers
48 views

Git Bash can’t quit less pager- q not working

I was referred here from stack overflow. having an issue with Git Bash/ Git for Windows (Windows 10). It seems that I am frequently but not always unable to quit git commands when they open up the ...
0
votes
0answers
37 views

Where to place machine's system-wide private ssh deploy key?

I'm following the directions at https://developer.github.com/enterprise/2.16/v3/guides/managing-deploy-keys/#deploy-keys , which includes Run the ssh-keygen procedure on your server to generate a ...
0
votes
0answers
37 views

Why does git clone prompt for 'passphrase for key' when I SSH to my machine as my user?

I am running Ubuntu 16.04. When I am logged in normally and I run a git clone it works without issues - wesley@localhost:~/Temp$ git clone ssh://git@xyz.pqr.com:5678/abc/myproject.git Cloning into '...
0
votes
0answers
24 views

Why is stdin closed in Git hooks?

Based on how to prompt a user from within a Git hook it looks like stdin is closed by default within Git hooks. What is the reason for this behaviour? It's causing problems both with commands no ...
0
votes
0answers
790 views

How to put secure password in Jenkins Groovy parameter script

My overall goal is to create a build parameter in Jenkins which is a drop down for only release branches. I have been at this for some time and know there are many ways to do this. Let me run through ...
0
votes
1answer
248 views

Unable to access GitHub; Couldn't connect to server

I've been trying to clone a git repository (several, actually) and I'm getting the following error: fatal: unable to access 'https://github.com/repository-name': Couldn't connect to server My ...
0
votes
1answer
95 views

git remove from repo history a large subdirectory that was removed several commits ago

This repository had a large subdirectory of large files that months ago I removed from the commit and that I now want to remove from the repo forever. The massive subdirectory is no longer in the ...
0
votes
0answers
47 views

How to install git repo using apt-get?

I want to install my new git hub application to system using command like apt-get install <application_name> rather than cloning git repo and compiling and moving the file to /bin/folder.
0
votes
0answers
28 views

when I do git diff filename, I get “g -csn: pg: command not found”

When I run : git diff filename That returns : pg -csn: pg: command not found Why am I getting this?
0
votes
1answer
33 views

Remove .gitignored folders and `node_modules` and `vendor` folders whilst I rsync them

On my GNU/Linux machine I want to backup a list of files specified in a text file names rsyncFolders.txt the idea is to keep the files I want and to exclude unwanted ones to backup. In these folders ...
0
votes
1answer
169 views

I deleted my files with git rm, but i also commited them, how to get them back?

I ran git rm on some files thinking that they will be removed from the bitbucket repository, and i also commited them, after that i checked that they disapeared from the bitbucket repo, but they were ...
0
votes
0answers
25 views

git hook for pre fetch

I have a notify watching a local git directory and I want to disable the notify before the fetch,merge,pull... With the notify running, the pull of files alters the directory and fires the notify. ...
0
votes
1answer
28 views

How to build Postfix from Debian Salsa Git? (gbp:error: upstream/3.3.2 is not a valid treeish)

I would like to rebuild the Debian package 'postfix'. Without anything fancy, so no local patches and unsigned packages are fine. Here's what I tried: Install some dependencies: $ apt install ...
0
votes
0answers
34 views

Error in git install from source on Ubuntu

I get the error message install: missing destination file operand after 'git' I tried to install git but whenever I tried I get git clone https://github.com/lwfinger/rtlwifi_new.git Command 'git' ...
0
votes
1answer
101 views

unable to execute git pull if the script is executed on reboot

I have created the following script: #!/bin/bash cd /home/pi/workspace/my-app /usr/bin/git pull python3 main.py & If I run the script from the console, git pull is executed as expected and then ...
0
votes
0answers
74 views

google-cloud-print-connector - SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

I have an ancient CentOS 5.11 installation on an inhouse server. The server is due for upgrade in a few months but till then, I'm stuck with 5.11. I intend to install google-cloud-print-connector but ...
0
votes
0answers
88 views

How to trace a specific historic file in the Linux kernel tree: Git question

I'm currently manually building a Linux image with some specific drivers for a Xilinx Zynqmp device. Aside from the main Linux tree, there are 2 other mirrored Linux repositories, one from Xilinx and ...
0
votes
0answers
141 views

Git: exclude folder but include subfolder

I read this link: https://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder/5534865#5534865 But this is use-case when git fails without any clue: * !abc abc/...
0
votes
0answers
215 views

Git: doesn't add filename with dash

lastest git versin on archlinux that doesn't add filename that contain dash, e.g: test-abc (git version 2.19.2) How to automatically add filename with dash (or folder) with git?
0
votes
1answer
42 views

git cmd formatting a log

I have a uni assignment to discuss the relationships in defective files for a given git repository. I am trying to generate a git log of the following format: file name + number of commits + current ...
0
votes
0answers
49 views

Colorize bash output?

I keep all my git repositories in a single folder, and sometimes I want to get a quick status check on all of them, mostly to make sure I'm not leaving the office without pushing any commits. I ...
0
votes
0answers
291 views

Decrypt old openssl data

I have a git repo encrypted with openssl. I have moved the repo to a new host. The original host was using: » openssl version OpenSSL 1.0.2g 1 Mar 2016 The current host is using: » openssl version ...
0
votes
0answers
105 views

Debian 8 Jessie | Gitian-Builder: start-target: qemu-system-x86_64: not found

Following this guide: https://www.dash.org/forum/threads/how-to-gitian-build-dash-under-debian-jessie-using-lxc.5397/ I am using Gitian-builder to, hopefully, build the script gitian-win.yml, which ...
0
votes
1answer
846 views

Old CentOS 5.6, Due to github.com delete the TLSv1/TLSv1.1 support, How can I access to github.com/repo.git using git system

Now I have a cluster with Rocks 5.4 based on CentOS 5.6. When I git push the code to github.com, I run into the errors: error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert ...
0
votes
0answers
75 views

Red Hat: How to sftp upload and git push with 755/644 and apache:apache rights/owner?

I have apache web server, linux, ssh access with sudo. And many troubles with editing, uploading, pushing, committing there. Because there are set 755 for dirs, 644 for files, and apache:apache owner ...
0
votes
2answers
531 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
0answers
81 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
255 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+=("" "$...
0
votes
0answers
748 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
288 views

How do I give my Ubuntu machine a domain name on a Windows network?

I want to setup a GIT server on my Ubuntu machine in the office but I want a domain name for it that I can connect to from Windows machines on the same network. I've read about using Samba or adding ...
0
votes
1answer
594 views

Perform periodic task using BASH and watch command

I'm trying to write a BASH script with the purpose of using watch command to monitor a local git repository for changes from the remote branch and then executing a task. Let's say the script is ...
0
votes
1answer
68 views

Re- Setup git-svn repository in Mac after a cleanup

I need to re- set up a password protected, project repository in my Mac OS X after it was wiped due to hardware issues. I followed these steps Installed the Xcode Command Line version Installed ...
0
votes
0answers
76 views

git does not work for some repo but work for others

I encountered a very weird issue for git. I have three repo.s in github, say repo1, repo2 and repo3. On machine 1, I used to be able to clone and pull all three repos. However, suddenly I couldn't ...
0
votes
1answer
545 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
0
votes
1answer
370 views

Git Daemon not using specified base-path

I have the following configuration in /etc/xinetd.d/git # description: The git server offers access to git repositories service git { disable = no type = UNLISTED ...
0
votes
0answers
789 views

Where in CentOS 7 should I install Ruby?

I am installing Ruby and rbenv on a CentOS 7 by following the instructions in this tutorial, with modifications. One of the recommended lines of code is cd followed by git clone commands. I assume ...
0
votes
0answers
320 views

DNS problem with ipv6 on centos6

I have a couple of open-stack instances that communicates with github.com. When any of these machines reboots , the file /etc/resolv.conf gets the ipv6 addresses of my DNS servers. Everything still ...
0
votes
1answer
848 views

Error setting certificate while doing 'git clone' in redhat

Error: % git clone --depth 1 http://github.com/junegunn/fzf.git ~/Downloads/fzf Initialized empty Git repository in ~/Downloads/fzf/.git/ error: error setting certificate verify locations: CAfile: /...
0
votes
2answers
52 views

can I set up openssh-server on local machine without messing my git ssh access to git and gerrit server?

We have git/ gerrit ssh on local machine (~/.ssh/id_rsa id_rsa.pub known_hosts + ssh-agent ) Now we want to access local machine from multiple remote clients (4-5 users, 1 user at a time), to ...
0
votes
2answers
1k views

Git clone from Bitbucket

I am trying to git clone a repo off of bitbucket. I use git clone {https} temp. This gives me an error of refs not found. The https address is the one I get off of bitbucket, but the one they provide ...
0
votes
2answers
104 views

use git to update my local copy with latest btrfs-progs

Most info about git assumes you want to upload and merge changes and my situation is much simpler than this. I am trying to ensure I always have and run the newest stable btrfs-progs utilities. To do ...
0
votes
0answers
2k views

Fedora 20: Can't install git

[root@8440p Downloads]# yum clean all Loaded plugins: langpacks Cleaning repos: rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree : rpmfusion-nonfree-updates updates Cleaning up ...