Questions tagged [github]

Github is an online service for using git repositories to enable social and collaborative coding.

Filter by
Sorted by
Tagged with
49 votes
4 answers
105k views

Using Same SSH Private Key Across Multiple Machines

I've got a Github repo I want to access from two different Linux machines. For the first machine, I followed Github's instructions for generating SSH keys, and added the resulting public key to ...
Yarin's user avatar
  • 1,366
21 votes
10 answers
23k views

Extract repository name from GitHub url in bash

Given ANY GitHub repository url string like: git://github.com/some-user/my-repo.git or [email protected]:some-user/my-repo.git or https://github.com/some-user/my-repo.git What is the best way in ...
Justin's user avatar
  • 5,388
20 votes
4 answers
2k views

Publishing id_rsa.pub for easier setup of new environments?

To make setting up passwordless SSH easier on new machines and environments, is there any reason why the id_rsa.pub file (just the public half of the key pair) could not be published somewhere on the ...
DouglasDD's user avatar
  • 533
20 votes
5 answers
23k views

Mirror github to Gitlab

In a local gitlab I created a copy of project nova (https://github.com/openstack/nova). How do I keep the local nova repo in sync with github, updating maybe once per hour or per day? I would like a ...
user186107's user avatar
16 votes
2 answers
10k views

Multiple SSH private keys for the same host

How can I store 2 different private SSH keys for the same host? I have tried 2 entries in /etc/ssh/ssh_config for the same host with the different keys, and I've also tried to put both keys in the ...
Sencha's user avatar
  • 323
15 votes
3 answers
94k views

How can I get Jenkins to execute a script that it pulled from Git?

I am using Jenkins to trigger and manage a series of import jobs. I want to put my import script in Github, and when Jenkins builds the job, it should (a) pull that version controlled script out of ...
Affable Geek's user avatar
10 votes
1 answer
25k views

kex_exchange_identification: Connection closed by remote host ... How do I resolve this error

emil@DESKTOP-1I1B1NM:~$ git clone [email protected]:EmilYoung2004/git_test.git Cloning into 'git_test'... kex_exchange_identification: Connection closed by remote host fatal: Could not read from remote ...
emil young's user avatar
9 votes
2 answers
18k views

How to run an OVA + OVF appliance inside of AWS EC2?

GitHub Enterprise ships as an Open Virtualisation Appliance and File; it's intended to be dropped into existing virtualization setup like VMWare, VirtualBox, etc. I'd like to run it inside of the AWS ...
Peter Mounce's user avatar
  • 1,263
7 votes
1 answer
1k views

How do I get notified on a failed deployment to azure?

I have a project hosted in Github that is being continuously deployed to Azure whenever a developer checks in any code. (this deployment is for a dev server, not prod). In the case of a failed ...
CleverPatrick's user avatar
7 votes
1 answer
8k views

RSA key, github keeps asking for my password

Okay folks, noob RSA question here. I have a production server, and I've generated an rsa key there. I've then taken the public key (id_rsa.pub) and given that to github, as a deploy key I believe. ...
thekevinscott's user avatar
7 votes
1 answer
7k views

Unknown option git config --local reported by Jenkins

I asked the same question on stack overflow but I only got 5 views, I think this is a better forum for this question. I'm setting up CI for a C# project hosted on github in a private repo. Git is ...
user3043457's user avatar
6 votes
3 answers
8k views

are github`s IP Addresses changed?

I had an issue today where my deployment on my application servers couldn't be completed due to connection problems with github. I noticed that when I perform a DNS lookup of github.com using ...
giomanda's user avatar
  • 1,774
6 votes
3 answers
17k views

Ubuntu Server 22.04.1 LTS "failed to connect to https //changelogs.ubuntu.com/meta-release-lts. Check your Internet Connection or Proxy Settings"

When I logged in to my Ubuntu Server in VirtualBox this message appeared below "failed to connect to https //changelogs.ubuntu.com/meta-release-lts. Check your Internet Connection or Proxy ...
SeniorBear's user avatar
6 votes
3 answers
1k views

Mirror github to Cloud Source Repositories

Can't connect for 3 days already, saing 'Failed to connect repositories' All access already granted and i'm repository owner Perhaps you know how to deal with that EDIT: Bitbucked connected ...
G.F.'s user avatar
  • 161
6 votes
2 answers
2k views

How can I get "mirrored from" on a GitHub repo?

I noticed that https://github.com/apache/ant says "mirrored from git://git.apache.org/ant.git" (with a link) and I'd like to do the same. https://exyr.org/2011/git-mirrors/ seems like a good write up ...
Philip Durbin's user avatar
5 votes
2 answers
8k views

How to install puppet module from GitHub?

I've installed camptocamp/nagios from Puppet Forge, but seems it has dependencies to puppet-apache_c2c which is published on GitHub. I've installed nagios module as suggested: puppet module install ...
kenorb's user avatar
  • 6,589
5 votes
2 answers
6k views

Why did git stop working after server disabled SSLv3?

Like most others, our repository server needs to disable SSLv3 (and v2) ASAP. However, doing so seems to break our git-clients -- at least, on RHEL5 (connections from my FreeBSD desktop work fine). ...
Mikhail T.'s user avatar
  • 2,347
5 votes
1 answer
2k views

Use Git hooks to auto format code after pull requests or commits or pushes/pulls?

Lets say you have a Git repository, like on GitHub, and you have a lot of people contributing to the repository. Everyone uses their own standards for coding, so the code ends up being a mess without ...
Jake Wilson's user avatar
  • 8,884
4 votes
1 answer
4k views

Change ssh ControlPath with host-specific declaration

I have a situation where I need to access the same SSH host (GitHub) with two different SSH keys. This is no problem and I can set it up easily by aliasing the hostname. The problem comes when this ...
petrsnd's user avatar
  • 168
4 votes
1 answer
1k views

GitHub Pages and DNS Records

I want to have my new site located at GitHub Pages, but unfortunately I've been using an email account with the domain I want to point to GitHub. So, I have this paid hosting where I'm receiving my ...
Andrés's user avatar
  • 177
4 votes
2 answers
11k views

Using the same github account from multiple PCs

I have my github account and I want to access it from my two workstations, an Ubuntu workstation and a Windows one. I'm a beginner on SSH and git as well, I followed all the instructions to setup my ...
Hoghweed's user avatar
  • 171
4 votes
2 answers
4k views

Cannot access my GitHub Pages website by IP Address

My custom domain works with GitHub Pages but I would like to understand how it actually works. For this example I am not using my custom domain at all. My GitHub Pages repository does not contain a ...
Jay's user avatar
  • 143
4 votes
2 answers
2k views

Auto-scaling EC2 Servers and Updating Code

We've come to the point where we need to set up autoscaling for our web server and I'm unsure how to go about the process of scaling servers and updating the the existing code without remaking a new ...
jstats's user avatar
  • 145
4 votes
2 answers
6k views

Jenkins github pull request builder picks wrong commit

I am using Jenkins with the plugin GitHub Pull Request Builder. I then have set up webhooks from GitHub to trigger a build in jenkins when a new Pull Request is opened or committed to. I configured ...
benedikt's user avatar
4 votes
2 answers
3k views

Error 403 when git push (multiple github accounts on the same mac)

I have two GitHub accounts on the same Mac. And have credential-osxkeychain installed. It works fine with my first GitHub account. But, how can I add the second account into the keychain access? If ...
user1597243's user avatar
4 votes
2 answers
9k views

Permission denied (publickey) error

I'm trying to connct to github via shh with using following command: ssh -v github.com But i have error Permission denied (publickey). I generated rsa keys with ssh-keygen command keys are located ...
iburlakov's user avatar
  • 163
4 votes
0 answers
395 views

Git Pull on CGI and Command Line have different results

I have an "after push" webhook on GitHub that calls a CGI script to update a Jekyll website. The script: user@server [~/_repo]# cat cgi-bin/githook.cgi #!/bin/bash echo Content-type: text/plain echo ...
yakatz's user avatar
  • 1,223
4 votes
2 answers
1k views

Can Fabric be used for auto-deploying from GitHub?

Can I use Fabric to automatically deploy an app on my server every time I push the code to GitHub? (GitHub has the ability to POST to a URL every time I push.) If so, how?
Ram Rachum's user avatar
  • 5,261
3 votes
3 answers
18k views

keeping a remote server up to date with git repo

So, I'm aware of git hooks, and will be looking into those next, but want to write a simple bash script, run via cron, to keep a repo on a remote server up to date. I imagine it working like this: ...
Greg 's user avatar
  • 231
3 votes
2 answers
1k views

How to keep pipeline files in a separate repository for azure devops pipeline?

Is there any way to keep the pipeline file separately in a different repo than the one in source code? So that, we can maintain all the pipelines related data in a separate repository but the pipeline ...
Sara June's user avatar
  • 481
3 votes
1 answer
1k views

Pointing main domain to another server while keeping subdomains in same place

I have a domain I want to point to my github pages site. However, I want to keep the subdomain old.mysite.com pointing at the current server (as this is an archive of my old php blog, which github ...
wheresrhys's user avatar
3 votes
1 answer
3k views

How to set up multi users on dev server with git and github

I'm working on lamp application. We have 2 servers (Debian) Live and Dev. I constantly work on dev main to add new features and fix bugs. When happy all works well I scp the relevant code to the ...
Derek Organ's user avatar
3 votes
2 answers
149 views

Any security risk in creating root public/private keys and adding public key to Github repo?

I would like to do version control on some important directories on my server such as /etc/apache. All the files and subdirectories in that directory are owned by root:root. Would it be considered a ...
Jim's user avatar
  • 340
3 votes
2 answers
4k views

Ansible with Github: Permission denied (Publickey)

I'm trying to understand the GitHub ssh configuration with Ansible (I'm working on the Ansible: Up & Running book). I'm running into two issues. Permission denied (publickey) - When I first ran ...
Sandwich Heat's user avatar
3 votes
2 answers
2k views

Domain Name Forwarding not working with github pages

I had my blog on github pages with a custom domain name blog.tamizhvendan.in and today I've moved it to a new domain name www.p3programmer.com by updating the CNAME record with www.p3programmer.com. ...
tamizhvendan's user avatar
3 votes
2 answers
4k views

pulling git-via-ssh repo via Puppet: "Could not create repository (non-repository at path)"

I'm trying to pull a git (github) repo via Puppet. I've used the official vcsrepo documentation and borrowed from the Fiesta post to come up with the following config: vcsrepo { "/tmp/": ensure =&...
tedder42's user avatar
  • 853
3 votes
3 answers
5k views

Download Git Zipball in Unix

I'm trying to download a zipball of a git repo: e.g. wget https://github.com/zeromq/jzmq/zipball/master This works fine in a web browser but on unix the file gets a weird name...how do I do this?
DD.'s user avatar
  • 3,114
3 votes
1 answer
2k views

Jenkins cannot read Github password since upgrading to Git client plugin 2.1.0

I'm currently using Jenkins 1.650 on Windows 2012 and I've upgraded a test instance of Jenkins (cloned from my production server) to 2.25. As part of this the Git Client plugin was upgraded from 1....
shaneoh's user avatar
  • 414
3 votes
1 answer
1k views

How to do 'naked domain aliasing' like DNS hosts that support it?

My goal is to use GitHub Pages and also benefit from their CDN, without having to use a third-party DNS host that supports DNS ALIAS record types (or ANAME - neither are accepted standards). I want to ...
Tom Brossman's user avatar
3 votes
1 answer
3k views

Setting up Github post-receive webhook with private Jenkins and private repo

I'm trying to set up a private GitHub project to send a post-receive request to a private Jenkins instance to trigger a project build on branch push. Using latest Jenkins with the GitHub plugin. I ...
Joseph S.'s user avatar
  • 171
3 votes
1 answer
1k views

private github repo in package.json breaking azure website deployment

Trying to deploy an Express app on an Azure "web site" through Github. I have a private repository in package.json dependencies: "dependencies": { "express: "~3.4.0", ... "private-repo": "git+...
AJcodez's user avatar
  • 233
2 votes
4 answers
5k views

Make shell script executable upon extraction from zip

I have a shell file that is pulled from github and built into a zip using TeamCity. It is typically edited and put into github from a Windows machine. I need this shell script to be executable upon ...
elgabito's user avatar
  • 133
2 votes
1 answer
3k views

How to authenticate and push to GitHub from a CI Script

I keep my development on a personal GitLab server. In my CI/CD script, I want to push the repository to a public GitHub repo when a new tag is created. The CI/CD runs in an ephemeral Docker container, ...
PrestonDocks's user avatar
2 votes
1 answer
6k views

In Amazon EC2, what's the best way to clone a private github repository on boot?

I need to configure an autoscale group of EC2 instances that on boot will clone a particular branch and commit from a private github repository, then execute code from inside that repository. I'm ...
leted's user avatar
  • 21
2 votes
1 answer
760 views

Git github not working with google authenticator OSX

So I had git running on my computer just fine. My password was saved with the osxkeychain thingy and everything ran smoothly. Today I decided I should be safe and enable google authenticator 2-step ...
Max Rahm's user avatar
  • 123
2 votes
1 answer
782 views

Git - Odd Disk Space Usage on GitHub

We use GitHub to host all my projects, and we've got a 6GB soft-limit. A few days ago, there were many files added to the repository which should not have been added (such as images, movies, etc.) ...
fresskoma's user avatar
  • 1,343
2 votes
1 answer
2k views

Commit hook on github to trigger hudson build

I'm using Hudson as my CI server and I'm trying to get my commits to trigger a build. When I was using gitosis I just had a post-receive that ran a curl -u gituser:password http://my.hudson.url/...
brad's user avatar
  • 512
2 votes
1 answer
361 views

Cannot SSH to github.com after changing to static IP

I've been using github.com for a long time, but just had my ISP switch my home internet to a static IP and now I can't SSH to github. What happens with SSH? The id_ed25519 key has just been re-...
Capn Sparrow's user avatar
2 votes
1 answer
4k views

EC2: Cannot git clone at launch

I am trying to git clone a private repository from GitHub on EC2 instance at launch. What I have in my script(user data) is the following. git clone -b branchname https://github.com/orgname/...
d-_-b's user avatar
  • 153
2 votes
1 answer
1k views

securely connect jenkins and github

we have a Jenkins server running on an ec2 instance. The security groups are very restricted in this server, they only allow traffic from the company office, and the slave nodes. we want to setup ...
Simon Ernesto Cardenas Zarate's user avatar

1
2 3 4 5