Skip to main content

Questions tagged [github]

Git repository hosting service - May be better on Web Apps or Stack Overflow

Filter by
Sorted by
Tagged with
183 votes
13 answers
273k views

How do I ensure Git doesn't ask me for my GitHub username and password?

I am working with a repo on GitHub and everytime I try to push something, it asks for my GitHub username and password. I don't want it doing that. I tried the instructions on setting your email in ...
picardo's user avatar
  • 2,577
144 votes
7 answers
207k views

Is there a way to edit a commit message on GitHub?

Is there a way to edit a commit message after committing and pushing to GitHub? I see that there is a 'add a note' as well as inline commenting, but no actual editing of a commit message. There is ...
Matthew Peters's user avatar
106 votes
9 answers
589k views

How to switch git user at terminal?

I am trying to push a project to a remote repository from the command line. From inside my local directory, I hit: $ git push and obtain the following error: remote: Permission to username1/repo....
Mowzer's user avatar
  • 2,339
74 votes
2 answers
33k views

Read Only access to GitHub repo via SSH key

I want to generate an SSH key with only READ permissions to be used with my GitHub account is it possible? or should I create another account with only read permission?
jibe's user avatar
  • 843
63 votes
1 answer
42k views

SSH config - same host but different keys and usernames

I've set up two GitHub accounts, but I can't get ssh keys to work correctly. I've tried various configs. Host github_username1 HostName github.com IdentityFile ~/.ssh/rsa_1 User username1 ...
usr's user avatar
  • 845
57 votes
5 answers
287k views

Bring a local folder to remote git repo

I have a folder with all my files set up for a project. I decided to use git on that folder, so I created on Github an empty repo. Usually the procedure is to clone on my local disk the remote repo, ...
user840718's user avatar
  • 1,123
53 votes
5 answers
28k views

Does Git delete empty folders?

I deleted all files from a directory in my work folder, but the directory itself still exists. After pushing the changes to a remote repository (GitHub) I checked my project and noticed that the ...
vitaliy4us's user avatar
53 votes
4 answers
86k views

Is a GitHub account required for cloning a repository?

I'm putting together some documentation and don't have access to a non-configured machine to test this myself I'm curious if you need a GitHub account to clone a repository from GitHub to a local ...
user avatar
47 votes
5 answers
21k views

Mark file as “uncommitable” with Git

I want to show off some of my work by uploading them to my GitHub account. However, there are some files that contain passwords, like database connections. Is there a way of marking a file as ...
Adam Carter's user avatar
37 votes
4 answers
23k views

Git push failing with Fatal: HttpRequestException encountered

lt is really strange that when l try to use git push today,error reports Fatal: HttpRequestException encountered and requires me to enter username and password. l have tried git pull and git clone ...
Rosmee's user avatar
  • 373
34 votes
3 answers
14k views

How can I Resync a fork from original

I just forked a project in Github. I made modifications and sent a pull request. The owner merged my fork with the main project and after that he made some modifications. So for now my fork is not ...
bAN's user avatar
  • 1,746
33 votes
3 answers
118k views

Connecting to github using PuTTY generated SSH key in Windows

On an otherwise pristine Windows 7 Enterprise install: Install PuTTY 0.62 Create public/private key pair with puttygen.exe Add public key for pasting into OpenSSH authorized_keys to github account ...
Radu's user avatar
  • 499
32 votes
6 answers
15k views

github flavored markdown editor for osx [closed]

Do you know any editor for Mac OSX that helps with editing Github flavored markdown? I think Mou ( http://mouapp.com/ ) is fine, only that its just plain markdown and not Github markdown. Please, ...
Michael's user avatar
  • 431
31 votes
5 answers
47k views

What does the git error message "Server does not allow request for unadvertised object" mean?

I am trying to do a checkout from github, and I got this error message: [user@arch ~]$ git clone --recursive https://github.com/simsong/tcpflow.git Cloning into 'tcpflow'... The authenticity of host '...
vy32's user avatar
  • 3,401
31 votes
4 answers
15k views

Is it safe to store (encrypted) passwords on GitHub?

I am using pass to handle all my passwords. They are encrypted using GPG with a 4096 bits key, using the SHA256 algorithm. I am using a different password for every login in my password store. One of ...
Nicolas Mattia's user avatar
30 votes
6 answers
50k views

Can not clone any git repository from github

Since the update to OS X 10.9.2 I am not able to clone any git repository from github.com If I run the git clone command I get the following error: git clone https://github.com/davedelong/...
patrickS's user avatar
  • 1,527
27 votes
3 answers
26k views

Use a specified key from ssh-agent

Along the lines of How to tell git which private key to use? I would like to use a specific ssh key in a given situation. My problem is that even when I specify '-i something' ssh uses the keys from ...
svrist's user avatar
  • 815
25 votes
3 answers
198k views

How to push an existing Eclipse project to GitHub?

Currently I'm developing some applications that I want to share with the community using GitHub. I've found a lot of tutorials on how to create a GitHub repository from scratch, but I couldn't find ...
RoflcoptrException's user avatar
23 votes
3 answers
27k views

GitHub desktop not showing remote branches

GitHub (version 3.0.5.2) for Windows no longer shows me all the remote branches. This is working with a GitHub for Enterprise server. For example, when I click on the branches drop down, it used to ...
Greg McGuffey's user avatar
20 votes
2 answers
202k views

GitHub - completely messed up the local files of gitHub in my computer

I created a repo in the wrong folder. Meaning the User folder in OS where all the user folders are from pics, videos to documents. So I pushed that all to gitHub without knowing and now I can't create ...
user avatar
20 votes
2 answers
46k views

git pull does nothing / git push just hangs / debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

I had an issue in ubuntu 13.10 and 12.10 where attempting to connect to github (git clone / pull / push or anything) would fail with no output. I checked my /.ssh directory for config and any ssh ...
Jason's user avatar
  • 1,899
18 votes
3 answers
5k views

Can I delete my fork before the pull request gets accepted? [closed]

I made a fork of a project on github, did a small correction and submitted a pull request. However, from every pull request “in line”, I can see that this developer will take a long time before ...
user137369's user avatar
  • 1,072
15 votes
2 answers
3k views

How to pull a git repo from github with all unlinked commits

I'm wondering how to pull a repo with all of the commits that have not been gc'd, if that is possible.. is it something like: $ git clone x $ cd x $ git fetch origin -f ? or something else?
ztatic's user avatar
  • 620
14 votes
1 answer
18k views

syntax for comments in github's README.md?

A GitHub repo is described in a text file README.md, in Daring Fireball's Markdown format. Does that language support comments, either as a feature or a quick hack? I'd like to have some text that ...
Camille Goudeseune's user avatar
14 votes
1 answer
14k views

GitHub for Windows Install Error

I'm trying to install the GitHub for Windows that I downloaded from the GitHub site. However, I get the following error message: Application cannot be started. Contact the application vendor. I'm ...
snowBlind's user avatar
  • 241
12 votes
2 answers
25k views

Can I integrate a Discord channel with GitHub pull requests?

I have a programming team that shares code using GitHub, but primarily communicates through Discord. How can I setup my team's Discord to automatically include updates about GitHub commits and pull ...
Stevoisiak's user avatar
  • 14.6k
12 votes
1 answer
990 views

Error from egit installation

Just installed a fresh 32 bit copy of Java and Eclipse. I'm now trying to add egit for the first time, following the instructions here (using the main repository). I receive this error when I try to ...
jth41's user avatar
  • 639
11 votes
2 answers
19k views

Monitor a Folder OSX for file changes then run a bash script [duplicate]

Possible Duplicate: Watch Filesystem in Real Time on OS X and Ubuntu I'm looking for a efficient method to monitor a local directory in OSX and if any files have been changed in that directory ...
Tegan Snyder's user avatar
11 votes
2 answers
26k views

How to download a private GitHub repo with no 'git' on my local machine?

What I want to do is to download private repository archive from GitHub, extract it, remove archive file and copy some directories that are inside downloaded project. I tried to use wget but I cannot ...
Kamil Lelonek's user avatar
10 votes
2 answers
9k views

Find commit that first added a particular line of code on Github

I would like to find the commit that added the following lines of code to solver.cpp for the deep learning library caffe, which is hosted on Github. I am not a contributor or have any special ...
pir's user avatar
  • 301
10 votes
1 answer
4k views

How can I create a tag with Github for Mac?

GitHub for Mac OS X is cool software. I can do a lot of cool things with it (history, branches, etc) - but I don't know how to create tags. Can I do this with the GUI? GitHub for Mac
cwd's user avatar
  • 18.2k
10 votes
1 answer
3k views

GitHub for Windows can not sync to repo while command line tools can

I have my git repos hosted on a server using Gitolite. I can access them using SSH like this and it works from Mac OS X/Linux: git clone [email protected] On a Windows 8 Box I now have installed ...
joni's user avatar
  • 576
9 votes
3 answers
55k views

How can I delete old commits in Github via terminal?

I have a repository. How can I delete my old commits via terminal? My SSH key is uploaded. (I'm using github pages, that's why version tracking is not important, don't want to waste Github's ...
LoukiosValentine79's user avatar
9 votes
1 answer
14k views

Cloned GitHub repos ask for a password, while originally created don't

I've just lost a bunch of repositories from my disk, so I've cloned them from GitHub. These are now asking for username and password each time I push something to GitHub. Those that haven't been ...
usr's user avatar
  • 845
9 votes
1 answer
9k views

Generate table of contents with links for GitHub markdown with pandoc

How to generate table of contents with links for GitHub markdown with pandoc? I tried pandoc -f markdown_github --toc -s -S README.md -o new.md It does create a table of contents but it has no link ...
Franck Dernoncourt's user avatar
9 votes
1 answer
39k views

another "SSH connect to host github.com port 22: Bad file number"

I have a problem with my first-time SSH connection. Yes, I've already done your guides, already tried your "Dealing with firewalls and proxies" article and the problem is still occuring. I am using ...
user avatar
9 votes
2 answers
18k views

How to fix warning: Identity file github not accessible: No such file or directory?

Host github.com git HostName github.com User git IdentityFile ~/.ssh/github # I've tried also /home/freinn/.shh/github There's no /home/freinn/github file created, have I to create it? That's ...
freinn's user avatar
  • 191
8 votes
4 answers
19k views

How to clone a git project from the website to your desktop?

When I try to clone a git repository to my Desktop it always takes me to the download page but it is already downloaded. How can I clone it directly from the browser to PC ?
meda's user avatar
  • 571
8 votes
2 answers
42k views

sh.exe": clip: command not found

Friends Im trying to copy the ssh key on to the clipboard and while on the git bash, Im getting $ clip < ~/.ssh/id_rsa.pub sh.exe": clip: command not found Im using Win7 , I tried using the ...
user avatar
8 votes
1 answer
17k views

Pushing a local repo to a GitHub repo which has dual-factor authentication

I'm trying to push code in my local repo (on an OS X 10.8.5 system with the GitHub app installed and logged into) to a repo I created on GitHub via their website, using the command line. Oddly, when I ...
Jules's user avatar
  • 698
8 votes
1 answer
4k views

git push to github via cron on mac

I'm trying to use git push in a bash script being run by crontab to push a commit to github. At the end of the script I'm doing this: # script processes some files, then: git add -A git commit -a -m "...
Stephen Turner's user avatar
8 votes
2 answers
6k views

Is it safe to delete a branch from a github fork once it's been merged upstream?

I've only recently tried my hand at forking in github and would like some "best practice" advice. I created a branch in my fork, and that branch got pulled into master of the upstream project. It no ...
Tim's user avatar
  • 412
8 votes
2 answers
5k views

Agent Forwarding Through Different Usernames (Git & Deployment)

This query isn't directly related to Git, but since one of Git's supported transports is SSH, and I'm trying to use agent-forwarding, I thought I would ask for clarification (the man pages have let me ...
Lee Hambley's user avatar
8 votes
1 answer
5k views

Gist vs repository on GitHub [closed]

Say you have a couple of projects that you want to host on GitHub, and they're all pretty small (i.e. each one is a single bash script with less than 100 lines). Even though they're relatively small, ...
user137369's user avatar
  • 1,072
8 votes
0 answers
817 views

Full github issue and project board integration for IntelliJ IDEA

I recently found out that apart from just simply pushing/pulling from a github repo from within IntelliJ IDEA, you can also create pull requests and create tasks and change lists based on issues on ...
coolcat007's user avatar
7 votes
2 answers
11k views

How do I configure git to use multiple SSH keys for different accounts on a Mac?

I have two GitHub accounts, one for work and one for personal use. Due to IT requirements at work, I've been using SSH for several years, but for my personal project I've been using basic ...
JDB's user avatar
  • 355
7 votes
1 answer
4k views

Which email to sign commits with for GitHub and retain privacy?

I have my GitHub account set to keep my personal email address private. The only place my personal email address is used at GitHub is to email me notifications. This means that an address of the form &...
Toby's user avatar
  • 836
7 votes
2 answers
4k views

Github lets me commit as another user

I'm learning how to use Git, and I've noticed that there's no control over the user.name and user.email when commiting. For example, I'm inside my repository. I can change my local config, $ git ...
whitenoisedb's user avatar
7 votes
2 answers
6k views

Can I submit commits to someone else's pull request in my repository?

Someone has issued a pull request into my code, and I have a few changes I'd like to make rather than rejecting the request or waiting for them to make them. I have no idea what the etiquette is, but ...
Maslow's user avatar
  • 916
7 votes
3 answers
10k views

Unable to open github.com Error code: DNS_PROBE_FINISHED_NXDOMAIN

I am using Ubuntu 14.04 64 bit with a wired connection. For the last 7 days, I have been unable to open Github. It instead has an error. Is there anything wrong with my connection / hardware / ...
xkeshav's user avatar
  • 375

1
2 3 4 5
11