Tag: c

60 votes
30 answers
2.2K views
Download single files from GitHub

I guess most of you, developers, use any VCS, and I hope some of you use Git. Do you have any tip or trick how

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
2.6K views
Make the current commit the only (initial) commit in a Git repository?

I currently have a local Git repository, which I push to a Github repository. The local repository has ~10 c

avatar
Daniel
0 1 0 9
asked 07 September, 2021
58 votes
10 answers
1.2K views
Are Git forks actually Git clones?

I keep hearing people say they're forking code in Git. Git "fork" sounds suspiciously like Git "clone" pl

avatar
Gigi
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
2.6K views
Link to the issue number on GitHub within a commit message

Is it somehow possible to automatically have a link to GitHub issue number in the git commit message?

avatar
Freida
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
951 views
Git push results in "Authentication Failed"

I have been using Github for a little while and I have been fine with git add, git commit, and git push so far

avatar
Royal
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
1.9K views
How to remove a directory from git repository?

I have 2 directories on my GitHub repository. I'd like to delete one of them. How could I do that without

avatar
Venice
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
484 views
Download a single folder or directory from a GitHub repo

How can I download only a specific folder or directory from a remote Git repo hosted on GitHub? Say the examp

avatar
Roger
0 1 0 9
asked 07 September, 2021
57 votes
26 answers
1.3K views
Git push requires username and password

I cloned a Git repository from my GitHub account to my PC. I want to work with both my PC and laptop, but wit

avatar
Roger
0 1 0 9
asked 07 September, 2021
78 votes
24 answers
2.2K views
How can I remove a commit on GitHub?

I "accidentally" pushed a commit to GitHub. Is it possible to remove this commit? I want

avatar
Georgie
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
1.3K views
Is there a way to cache https credentials for pushing commits?

I recently switched to synchronizing my repositories to https:// on GitHub (due to firewall issues), and it as

avatar
Denese
0 1 0 9
asked 07 September, 2021
47 votes
30 answers
2.7K views
How can I delete all Git branches which have been merged?

I have many Git branches. How do I delete branches which have already been merged? Is there an easy way to del

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
52 votes
22 answers
2.5K views
Can you run GUI applications in a Linux Docker container?

How can you run GUI applications in a Linux Docker container? Are there any images that set up vncserver or so

avatar
Denese
0 1 0 9
asked 07 September, 2021
52 votes
16 answers
1.6K views
How to access host port from docker container

I have a docker container running jenkins. As part of the build process, I need to access a web server that is

avatar
Brianne
0 1 0 9
asked 07 September, 2021
57 votes
3 answers
804 views
Copy directory to another directory using ADD command

I have read http://docs.docker.com/engine/reference/builder/#add however I met a problem. I want to copy the l

avatar
Scot
0 1 0 9
asked 07 September, 2021
59 votes
9 answers
405 views
How to see docker image contents

I did a docker pull and can list the image that's downloaded. I want to see the contents of this image. D

avatar
Patsy
0 1 0 9
asked 07 September, 2021
53 votes
11 answers
1.2K views
How to push a docker image to a private repository

I have a docker image tagged as me/my-image, and I have a private repo on the dockerhub named me-private. When

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
48 votes
29 answers
1.2K views
Docker error : no space left on device

I installed docker on a Debian 7 machine in the following way $ echo deb http://get.docker.io/ubuntu docker

avatar
Chaya
0 1 0 9
asked 07 September, 2021
57 votes
7 answers
2.2K views
How do I make a comment in a Dockerfile?

I am writing a Dockerfile. Is there a way to make comments in this file? Does Docker have a comment option th

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
59 votes
16 answers
2.1K views
How do you attach and detach from Docker's process?

I can attach to a docker process but Ctrl+c doesn't work to detach from it. exit basically halts the proc

avatar
Suzan
0 1 0 9
asked 07 September, 2021
58 votes
4 answers
3.1K views
In a Dockerfile, How to update PATH environment variable?

I have a dockerfile that download and builds GTK from source, but the following line is not updating my image&

avatar
Royal
0 1 0 9
asked 07 September, 2021