Tag: git

56 votes
16 answers
1.6K views
How to install an npm package from GitHub directly

Trying to install modules from GitHub results in this error: ENOENT error on package.json. Easily reproduced

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
50 votes
11 answers
1.7K views
GitHub relative link in Markdown file

Is there a way to create a URL anchor, <a>, link from within a Markdown file, to another file within the

avatar
Elicia
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
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
66 votes
21 answers
2.8K views
git replacing LF with CRLF

Running git on a Windows XP machine, using bash. I exported my project from SVN, and then cloned a bare reposi

avatar
Daniel
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
983 views
How do you push a tag to a remote repository using Git?

I have cloned a remote Git repository to my laptop, then I wanted to add a tag so I ran git tag mytag master

avatar
Robt
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.1K views
How to change the author and committer name and e-mail of multiple commits in Git?

I was writing a simple script in the school computer, and committing the changes to Git (in a repo that was in

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
67 votes
30 answers
2.7K views
Git fetch remote branch

My colleague and I are working on the same repository. We've branched it into two branches, each technica

avatar
Brianne
0 1 0 9
asked 07 September, 2021
48 votes
16 answers
558 views
How to modify a specified commit?

I usually submit a list of commits for review. If I have the following commits: HEAD Commit3 Commit2 Comm

avatar
Mikki
0 1 0 9
asked 07 September, 2021
61 votes
21 answers
993 views
Ignore files that have already been committed to a Git repository

I have an already initialized Git repository that I added a .gitignore file to. How can I refresh the fil

avatar
Wilber
0 1 0 9
asked 07 September, 2021
53 votes
12 answers
1.3K views
What does cherry-picking a commit with Git mean?

Recently, I have been asked to cherry-pick a commit. So what does cherry-picking a commit in git mean? How d

avatar
Solomon
0 1 0 9
asked 07 September, 2021
54 votes
25 answers
3K views
Git refusing to merge unrelated histories on rebase

During git rebase origin/development the following error message is shown from Git: fatal: refusing to merge

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
50 votes
15 answers
391 views
I ran into a merge conflict. How can I abort the merge?

I used git pull and had a merge conflict: unmerged: _widget.html.erb You are in the middle of a conflicted

avatar
Majorie
0 1 0 9
asked 07 September, 2021