Latest questions in Git & GitHub

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,678 views
0 votes
0 answers

How can I save username and password in Git?

I want to do a push and ...READ MORE

May 24, 2022 in Git & GitHub by Kichu
• 19,050 points
621 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,933 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
0 answers

How do I properly force a Git push?

I have cloned a remote non-bare main ...READ MORE

May 19, 2022 in Git & GitHub by Kichu
• 19,050 points
573 views
0 votes
0 answers

How do I use git reset --hard HEAD to revert to a previous commit

When I revert this commit: git reset --hard ...READ MORE

May 15, 2022 in Git & GitHub by Kichu
• 19,050 points
615 views
0 votes
0 answers

Git fetch remote branch

I am my co-worker are working on ...READ MORE

May 14, 2022 in Git & GitHub by Kichu
• 19,050 points
468 views
0 votes
0 answers

How do I resolve git saying "Commit your changes or stash them before you can merge"?

I made some changes to my local ...READ MORE

May 13, 2022 in Git & GitHub by Kichu
• 19,050 points
869 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
0 answers

Could not open a connection to your authentication agent

I am getting this warning error: $ git ...READ MORE

May 8, 2022 in Git & GitHub by Kichu
• 19,050 points
1,160 views
0 votes
0 answers

Updates were rejected because the tip of your current branch is behind its remote counterpart

We have a branch called dev We access it ...READ MORE

May 5, 2022 in Git & GitHub by Kichu
• 19,050 points
8,545 views
0 votes
0 answers

How to upload a project to GitHub?

I have created a repository and now ...READ MORE

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

git error: failed to push some refs to remote

I would advise using: git pull --rebase git push The ...READ MORE

May 2, 2022 in Git & GitHub by narikkadan
• 63,420 points
7,653 views
0 votes
1 answer

GitHub "fatal: remote origin already exists"

Update the existing remote: $ git remote set-url ...READ MORE

May 1, 2022 in Git & GitHub by narikkadan
• 63,420 points
1,203 views
0 votes
1 answer

TypeError: $(...).DataTable is not a function

This happened because the jQuery DataTables library ...READ MORE

Apr 30, 2022 in Git & GitHub by narikkadan
• 63,420 points
11,539 views
0 votes
0 answers

Within Azure DevOps, in a Scrum project, change the work type label from "product backlog item" to "user story"

The default hierarchy in ADO using the ...READ MORE

Apr 1, 2022 in Git & GitHub by Kichu
• 19,050 points
299 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,247 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

How do I update the password for Git?

Hi@akhtar, You need to update your credentials. For ...READ MORE

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

Git pull a certain branch from GitHub.

Hi@akhtar, You can simply track your remote branches ...READ MORE

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

Pushing to Git returning Error Code 403 fatal: HTTP request failed.

Hi@akhtar, Github seems to only support the ssh ...READ MORE

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

How to download single files from GitHub?

Hi@akhtar, Git does not support downloading parts of ...READ MORE

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

How do I access my SSH public key?

Hi@akhtar, You can use the cat command in ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
578 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

Remove credentials from Git.

Hi@akhtar, The Git credential cache runs a daemon ...READ MORE

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

How to get changes from master branch to a new branch in Git?

Hi@akhtar, You need to check out the branch and ...READ MORE

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

GitHub Error Message - Permission denied (publickey).

Hi@akhtar, I think GitHub isn't able to authenticate ...READ MORE

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

How to undo pushed commits in Git?

Hi@akhtar, You can revert individual commits with: git revert ...READ MORE

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

Update Git branches from master.

Hi@akhtar, You can do merge. That is actually ...READ MORE

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

How to remove version tracking from a project cloned from git?

Hi@akhtar, All the data Git uses for information ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
663 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,152 views
0 votes
1 answer

Link to the issue number on GitHub within a commit message.

Hi@akhtar, You just need to include #xxx in your commit message ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
14,343 views
–1 vote
1 answer

Git: cannot checkout branch - error: pathspec '…' did not match any file(s) known to git.

Hi@MD, You can try the git fetch command ...READ MORE

Jan 4, 2021 in Git & GitHub by akhtar
• 38,230 points
28,491 views
0 votes
1 answer

How to ignore certain files in Git?

Hi@akhtar, The problem is that .gitignore ignores just files that ...READ MORE

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

How to cancel a local git commit?

Hi@akhtar, You just need to use the git ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
405 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,028 views
0 votes
1 answer

Please: Commit your changes or stash them before you can merge in Git.

Hi@akhtar, You can't merge with local modifications. Git ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
18,249 views
+1 vote
1 answer

How to abort the merge conflict in Git?

Hi@akhtar, You can use the git reset --merge ...READ MORE

Dec 23, 2020 in Git & GitHub by MD
• 95,440 points
27,440 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,669 views
0 votes
1 answer

How to make Git use the editor of our own choice for commits?

Hi@akhtar, You can set the editor name in ...READ MORE

Dec 23, 2020 in Git & GitHub by MD
• 95,440 points
377 views
0 votes
0 answers

How to find and restore a deleted file in a Git repository?

Hi Team, I have one Git repository. I ...READ MORE

Dec 22, 2020 in Git & GitHub by akhtar
• 38,230 points
667 views
0 votes
1 answer

How to get the current branch name in Git?

Hi@akhtar, You can run the git branch command ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
10,326 views
0 votes
1 answer

How to list all the files in a commit in Git?

Hi@akhtar, Using git diff-tree is considered as a preferred way ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
762 views
+1 vote
1 answer

Error: src refspec master does not match any. error: failed to push some refs to 'ssh://xxxxx.com/project.git'.

Hi@akhtar, The most probable reason for this error ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
26,847 views
+1 vote
1 answer

Difference between git add -A and git add . command.

Hi@akhtar, The difference lies in which files get ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
6,818 views
+1 vote
1 answer

How to view the change history of a file using Git versioning?

Hi@akhtar, You can use gitk for this task. ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
730 views
+1 vote
1 answer

How to create a remote Git branch?

Hi@akhtar, The easiest way is to create one ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
398 views
0 votes
1 answer

How to clone a specific Git branch?

Hi@akhtar, You need to specify the branch name ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
534 views
0 votes
1 answer

How to reset or revert a file to a specific version?

Hi@akhtar, To revert a specific file to that ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
412 views
+1 vote
1 answer

How to discard unstaged changes in Git?

Hi@akhtar, You can save the unstaged changes in ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
414 views