Tag: github

54 votes
30 answers
483 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
58 votes
30 answers
2.3K views
How to add images to README.md on GitHub?

Recently I joined GitHub. I hosted some projects there. I need to include some images in my README File. I do

avatar
Benton
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
2.9K views
Git asks for username every time I push

Whenever I try to push into my repo git asks for both username & password. I have no problem in re-enter

avatar
Bryant
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
689 views
How do I update or sync a forked repository on GitHub?

I forked a project, applied several fixes and created a pull request which was accepted. A few days later, ano

avatar
Wei
0 1 0 9
asked 07 September, 2021
55 votes
26 answers
2.9K views
How can I determine the URL that a local Git repository was originally cloned from?

I pulled a project from GitHub a few days ago. I've since discovered that there are several forks on GitH

avatar
Roger
0 1 0 9
asked 07 September, 2021