Trending questions in Git & GitHub

0 votes
1 answer

How to remove remote origin from Git repo?

Hi@akhtar, You can remove or add a new ...READ MORE

Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
6,437 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
892 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,395 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
773 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
649 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
625 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
560 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
567 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
552 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
522 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
436 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
419 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,283 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
376 views
+1 vote
0 answers

Give full access permission to another user in GitHub

How do I give full access permission ...READ MORE

May 15, 2019 in Git & GitHub by Umer
26,275 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
696 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
725 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
660 views
0 votes
1 answer

How to revert a Git repository to a previous commit?

Hi@akhtar, This depends a lot on what you ...READ MORE

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

How to move the most recent commits to a new branch with Git?

Hi@akhtar, If you want to move your commits ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
564 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
523 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
397 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
385 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
365 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
394 views
0 votes
1 answer

How to undo the most recent local commits in Git?

Hi@akhtar, There is one way available to undo ...READ MORE

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

How to change the URL for a remote Git repository?

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

Nov 21, 2020 in Git & GitHub by MD
• 95,440 points
823 views
0 votes
1 answer

How to delete all the Git stashes in the stack?

Hi@akhtar, If you want to delete all the ...READ MORE

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

How to save files in Git Stash?

Hi@akhtar, Git Stash temporarily save changes you've made to ...READ MORE

Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
655 views
+1 vote
1 answer

How to resolve merge conflicts in Git repository?

Hi@akhtar, You can try with git mergetool. It ...READ MORE

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

How to recover a dropped stash in Git?

Hi@akhtar, You can create a separate branch for ...READ MORE

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

Difference between git stash pop and git stash apply.

"Git stash pop" deletes the last pushed ...READ MORE

Nov 21, 2020 in Git & GitHub by anonymous
573 views
0 votes
1 answer

How to apply a Stash in Git?

Hi@akhtar, In order to apply your Git stash ...READ MORE

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

How to unstage a file in Git?

Hi@akhtar, Sometimes we accidentally add files in the ...READ MORE

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

How to reset the changes in Git?

Hi@MD, Reset command can be used to undo ...READ MORE

Nov 20, 2020 in Git & GitHub by akhtar
• 38,230 points
571 views
0 votes
1 answer

How to set a username in the Git server?

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

Nov 19, 2020 in Git & GitHub by MD
• 95,440 points

edited Nov 19, 2020 by MD 607 views
0 votes
1 answer

How to delete a Git branch remotely?

Hi@akhtar, You can delete the branch locally or ...READ MORE

Nov 21, 2020 in Git & GitHub by MD
• 95,440 points
479 views
0 votes
1 answer

How to remove files from git repository as well as users system?

Hi@akhtar, The git rm command deletes the file ...READ MORE

Nov 19, 2020 in Git & GitHub by MD
• 95,440 points
520 views
+1 vote
1 answer

How to check out a remote Git branch?

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

Nov 21, 2020 in Git & GitHub by MD
• 95,440 points
358 views
0 votes
1 answer

How to install Git in the Ubuntu system?

Hi@akhtar, In the Ubuntu system, you can use ...READ MORE

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

How to list all the saved stashes in Git?

Hi@akhtar, In Git, the stash operation takes your ...READ MORE

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

GIT commit Error while pushing to remote repository

Hi@Ajit, To update your local repo to GitHub, ...READ MORE

Jun 1, 2020 in Git & GitHub by MD
• 95,440 points
7,537 views
0 votes
2 answers

What is the difference between git fetch and git pull?

Hii.. I HOPE BELOW ANSWER  MAY HELP YOU- In ...READ MORE

Jul 18, 2020 in Git & GitHub by anonymous
8,228 views
0 votes
1 answer

fatal: Not a git repository (or any of the parent directories): .git

Hi@akhtar, I think you didn't initialize your folder ...READ MORE

Apr 29, 2020 in Git & GitHub by MD
• 95,440 points
8,424 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,855 views
0 votes
1 answer

How to add an empty directory to a Git repository?

Hi@akhtar, A popular solution is to simply add ...READ MORE

Oct 5, 2020 in Git & GitHub by MD
• 95,440 points
816 views
0 votes
1 answer

What's difference between git rebase and git commit?

The git commit command captures a snapshot of the ...READ MORE

Oct 6, 2020 in Git & GitHub by Lyana
621 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,939 views
0 votes
3 answers

difference between git remote and git clone

HI.... GIT REMOTE add just creates an entry in ...READ MORE

Jul 11, 2020 in Git & GitHub by anonymous
21,252 views
0 votes
1 answer

error: Could not read error: unable to read tree object HEAD nothing to commit (working directory clean)

Hi@akhtar,  This kind of error may occur if ...READ MORE

Apr 10, 2020 in Git & GitHub by MD
• 95,440 points
8,115 views