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,460 points
7,058 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
27,256 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,460 points
1,131 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,460 points
1,683 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,460 points
1,035 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,460 points
934 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,460 points
2,724 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,460 points
811 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,460 points
735 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,460 points
755 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,460 points
709 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,460 points
727 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,460 points
689 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,460 points
630 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,460 points
552 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,460 points
1,046 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,460 points
1,019 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,460 points
937 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,260 points
845 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,460 points
812 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,460 points
739 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,460 points
610 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,460 points
557 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,460 points
559 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,460 points
585 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,460 points
610 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,460 points
1,147 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,460 points
1,094 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,460 points
797 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,460 points
891 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,460 points
760 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
805 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,460 points
756 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,460 points
778 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,460 points
827 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,460 points

edited Nov 19, 2020 by MD 824 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,260 points
757 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,460 points
783 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
23,435 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,989 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,460 points
8,086 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,460 points
674 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,460 points
631 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,460 points
539 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,460 points
8,878 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,460 points
3,250 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,460 points
2,642 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,460 points
8,879 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
1,121 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,460 points
1,110 views