GIT

Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. Do not use this tag for general programming questions that happen to involve a Git repository.

55 votes
15 answers
857 views
Delete forked repo from GitHub

I'm starting with git and GitHub and there's a project I'm watching on GitHub. I unintentionall

avatar
Chaya
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
2K views
Pushing to Git returning Error Code 403 fatal: HTTP request failed

I was able to clone a copy of this repo over HTTPS authenticated. I've made some commits and want to push

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
55 votes
8 answers
1.6K views
Pull new updates from original GitHub repository into forked GitHub repository

I forked someone's repository on GitHub and would like to update my version with commits and updates made

avatar
Arline
0 1 0 9
asked 07 September, 2021
58 votes
14 answers
2K views
There is no tracking information for the current branch

I've been using github from a relatively short period, and I've always used the client to perform co

avatar
Suzan
0 1 0 9
asked 07 September, 2021
57 votes
29 answers
3K views
Git keeps prompting me for a password

I've been using Git for a while now, but the constant requests for a password are starting to drive me up

avatar
Cortez
0 1 0 9
asked 07 September, 2021
53 votes
12 answers
1.5K views
Git pull a certain branch from GitHub

I have a project with multiple branches. I've been pushing them to GitHub, and now that someone else is w

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
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
68 votes
30 answers
351 views
GitHub Error Message - Permission denied (publickey)

Anybody seen this error and know what to do? I'm using the terminal, I'm in the root, the GitHub re

avatar
Corey
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
952 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
62 votes
8 answers
2.6K views
Create a tag in a GitHub repository

I have a repository in GitHub and I need to tag it. I tagged in a shell, but on GitHub, it is not showing up.

avatar
Clarice
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
485 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
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