Most viewed questions in Git & GitHub

0 votes
2 answers

fatal: refusing to merge unrelated histories.

Try, git pull origin master --allow-unrelated-histories READ MORE

Aug 1, 2020 in Git & GitHub by Sasi
5,245 views
0 votes
1 answer

error: Failed to merge in the changes. hint: Use 'git am --show-current-patch' to see the failed patch Patch failed at 0001 b1

Hi@akhtar, You got this error because you have ...READ MORE

May 11, 2020 in Git & GitHub by MD
• 95,440 points
5,161 views
0 votes
1 answer

How to delete Stash from the stash list?

Hi@akhtar, Before you drop the Stash, you can ...READ MORE

Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
4,845 views
0 votes
1 answer

How can I retrieve previous version data in Git & GitHub!!?

Hi@akhtar, You can use reset command to do ...READ MORE

Jul 19, 2020 in Git & GitHub by MD
• 95,440 points
4,486 views
0 votes
1 answer

git - show modified files, except for deleted (or renamed) files

You can use --diff-filter=dr to exclude delete ...READ MORE

Aug 14, 2018 in Git & GitHub by Kalgi
• 52,360 points
4,327 views
0 votes
1 answer

fatal: unable to auto-detect email address (got 'root@xxxxx.(none)')

Hi@akhtar, In the Git server, you need to set ...READ MORE

Nov 19, 2020 in Git & GitHub by MD
• 95,440 points
4,296 views
0 votes
0 answers
0 votes
1 answer

What is the difference between remote add origin vs remote set-url origin in git?

Hello, If you want to add a new ...READ MORE

May 27, 2020 in Git & GitHub by Niroj
• 82,880 points
3,952 views
0 votes
1 answer

fatal: The current branch master has no upstream branch

Hi@akhtar, You got this error, because you did ...READ MORE

Apr 30, 2020 in Git & GitHub by MD
• 95,440 points
3,786 views
0 votes
1 answer

Why is Git commit not functioning with Git Bash?

This occurs because you might have git ...READ MORE

Aug 7, 2018 in Git & GitHub by Sophie may
• 10,610 points
3,574 views
0 votes
1 answer

error: RPC failed; result=18, HTTP code = 200KiB | 5.00 KiB/s fatal: The remote end hung up unexpectedly fatal: early EOF

Hi@akhtar, In your case buffer size of git ...READ MORE

Apr 10, 2020 in Git & GitHub by MD
• 95,440 points
3,484 views
0 votes
1 answer

How to force git to completely forget about a file that is present in .gitignore folder?

Hi@akhtar, gitignore file is a text file that tells Git which files or ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
3,224 views
+1 vote
2 answers

Delete a git branch locally and remotely

Deleting a remote branch: git push origin --delete ...READ MORE

Aug 20, 2018 in Git & GitHub by Nilesh
• 7,050 points
3,171 views
0 votes
1 answer

Cannot push to GitHub - keeps saying need merge.

Hi@akhtar, You can use the git pull origin ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
3,151 views
0 votes
0 answers

git fatal Could not read from remote repository

I want to set git with http://danielmiessler.com/study/git/#website to manage ...READ MORE

May 20, 2022 in Git & GitHub by Kichu
• 19,050 points
3,143 views
0 votes
2 answers

What's the difference between git push and git commit?

I installed ubuntu on vagrant and gave ...READ MORE

Jan 3, 2019 in Git & GitHub by Ali
• 11,360 points
2,992 views
0 votes
1 answer

Change a commit author for a specific commit

You can use interactive rebase. git rebase -i ...READ MORE

Aug 17, 2018 in Git & GitHub by Kalgi
• 52,360 points
2,931 views
0 votes
1 answer

error: branch 'origin/master' not found.

Hi@akhtar, It seems your branch is not synced ...READ MORE

Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
2,886 views
+1 vote
2 answers

undo git add before commit

git status git will tell you what is ...READ MORE

Aug 20, 2018 in Git & GitHub by Nilesh
• 7,050 points

edited Dec 21, 2020 by MD 2,808 views
0 votes
1 answer

How to ignore an error on 'git pull' about my local changes would be overwritten by merge?

Hi Team, If you want to remove all ...READ MORE

Jan 5, 2021 in Git & GitHub by MD
• 95,440 points
2,792 views
0 votes
1 answer

error: The branch 'dev1' is not fully merged.If you are sure you want to delete it, run 'git branch -D dev1'.

Hi@akhtar, When you create one new branch in ...READ MORE

May 10, 2020 in Git & GitHub by MD
• 95,440 points
2,675 views
0 votes
2 answers

What does cherry-picking a commit with Git mean?

To answer your question, Cherry Picking in ...READ MORE

Feb 8, 2022 in Git & GitHub by Rahul
• 9,670 points
2,668 views
0 votes
2 answers

Delete all git branches that have been merged

To delete all local branches that are ...READ MORE

Aug 21, 2018 in Git & GitHub by Nilesh
• 7,050 points
2,461 views
0 votes
1 answer

How to perform a sonarqube analysis from drone.io in github?

DRONE_PULL_REQUEST  env variable holds the pull request ...READ MORE

Jul 6, 2018 in Git & GitHub by DareDev
• 6,890 points
2,330 views
0 votes
1 answer

How to pull from a Git repository through an HTTP proxy?

Hi@akhtar, You can set the HTTP proxy that Git ...READ MORE

Nov 22, 2020 in Git & GitHub by MD
• 95,440 points
2,316 views
0 votes
1 answer

How do I go to a particular version of a file in the Git repository?

Hi@akhtar, You can use git checkout <sha1> to check ...READ MORE

Jan 5, 2021 in Git & GitHub by MD
• 95,440 points
2,246 views
0 votes
2 answers

Trying to change the password in gitlab's active directory

I think gitlab does not have write ...READ MORE

May 17, 2019 in Git & GitHub by Umer
2,241 views
0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

May 7, 2018 in Git & GitHub by DareDev
• 6,890 points
2,224 views
0 votes
1 answer

How to solve Permission denied (publickey) error when using Git?

Hi@akhtar, If the user has not generated an ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
2,147 views
0 votes
1 answer

How to solve the ‘Git commit -a error’?

This happens when no editor is set. ...READ MORE

Jul 5, 2018 in Git & GitHub by Tyrion anex
• 8,700 points
2,044 views
+1 vote
1 answer

What ENTRYPOINT commands are needed in the dockerfile that adds php files into a container

Hope you are doing good! In this step, ...READ MORE

Dec 16, 2018 in Git & GitHub by Kiyara
2,029 views
0 votes
1 answer

Merge test branch with master branch in Git.

Hi@akhtar, You can merge master into the test first so that ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
2,026 views
0 votes
1 answer

How to view git logs of one user's commits?

Hi@akhtar, You can use the git log command ...READ MORE

Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
1,993 views
0 votes
1 answer

How to configure git send-email in local system?

Hi@akhtar, To use git send-email service you have ...READ MORE

May 4, 2020 in Git & GitHub by MD
• 95,440 points
1,992 views
0 votes
1 answer

what are these - @@--@@ in github

This statement is called the hunk header. You ...READ MORE

Jun 27, 2018 in Git & GitHub by anonymous
1,980 views
0 votes
1 answer

Can anyone provide git realtime scenarios?

You work in a team. You are ...READ MORE

Feb 6, 2020 in Git & GitHub by Sirajul
• 59,230 points
1,957 views
0 votes
1 answer

Git export/import commits history

This should work $ cd dotnet_newrepo $ git filter-branch ...READ MORE

Jul 12, 2018 in Git & GitHub by Kalgi
• 2,680 points

edited Jul 12, 2018 by Kalgi 1,952 views
0 votes
0 answers

What does "Changes not staged for commit" mean

As far as I know, to track ...READ MORE

May 23, 2022 in Git & GitHub by Kichu
• 19,050 points
1,932 views
0 votes
1 answer

Can't locate Net/SMTP/SSL.pm in @INC (@INC contains: .

Hi@akhtar, You may need to upgrade/install the Net::SMTP::SSL ...READ MORE

May 4, 2020 in Git & GitHub by MD
• 95,440 points
1,852 views
0 votes
3 answers

Change commit message after committing and before push.

You also can use git filter-branch for that. git filter-branch ...READ MORE

Sep 6, 2018 in Git & GitHub by lina
• 8,220 points
1,833 views
0 votes
1 answer

error saying unmerged paths

Git merging means taking changes from one ...READ MORE

Jun 27, 2018 in Git & GitHub by anonymous
1,781 views
0 votes
0 answers

Unable to negotiate with 40.74.28.9 port 22: no matching host key type found. Their offer: ssh-rsa

When using git within Azure DevOps repositories ...READ MORE

Dec 13, 2022 in Git & GitHub by Edureka
• 12,690 points
1,677 views
0 votes
1 answer

Push from phpstorm to bitbucket

I think you haven’t committed the changes ...READ MORE

Aug 14, 2018 in Git & GitHub by Kalgi
• 52,360 points
1,663 views
0 votes
1 answer

gerrit-cherry-pick:fatal: 'origin' does not appear to be a git repository

The user account making that command does ...READ MORE

Aug 13, 2018 in Git & GitHub by Kalgi
• 52,360 points
1,660 views
+1 vote
1 answer

How to force “git pull” to overwrite local files?

Hi@akhtar, First, you need to download the latest from ...READ MORE

Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
1,517 views
0 votes
1 answer

How to modify existing, unpushed commit messages?

Hi@akhtar, The git commit --amend command is a convenient way to modify ...READ MORE

Dec 21, 2020 in Git & GitHub by MD
• 95,440 points
1,430 views
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

Aug 2, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,323 views
0 votes
1 answer

Git pull vs Git Fetch

The objective of both these commands is ...READ MORE

Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,450 points
1,313 views
0 votes
0 answers

git - remote add origin vs remote set-url origin

I created a new repo: git init echo "# ...READ MORE

May 13, 2022 in Git & GitHub by Kichu
• 19,050 points
1,305 views
0 votes
1 answer

Automatic merge failed; fix conflicts and then commit the result

Hi@Hasid, There are two types of merging in ...READ MORE

Feb 2, 2020 in Git & GitHub by MD
• 95,440 points
1,304 views