Trending questions in Git & GitHub

+3 votes
3 answers

Git push vs git push origin

In simple words git push command updates ...READ MORE

Apr 23, 2019 in Git & GitHub by Hiran
121,262 views
0 votes
2 answers

fatal: unable to access could not resolve host: GitHub

Hi@akhtar, This can be caused in incorrect proxy ...READ MORE

Apr 10 in Git & GitHub by MD
• 66,500 points
9,007 views
+2 votes
3 answers

! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@github.com:abc70/new.git'

git push origin master --force I met the ...READ MORE

Apr 29 in Git & GitHub by anonymous
9,434 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 in Git & GitHub by Lyana
21 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 in Git & GitHub by MD
• 66,500 points
23 views
0 votes
1 answer

I want to create a repository on folder level in Git. Is this possible?

That is possible but ideally, you should ...READ MORE

Sep 27 in Git & GitHub by Mudit
29 views
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 in Git & GitHub by MD
• 66,500 points
85 views
0 votes
1 answer

How to clone all remote branches in Git?

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

Sep 4 in Git & GitHub by MD
• 66,500 points
79 views
0 votes
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 in Git & GitHub by MD
• 66,500 points
68 views
0 votes
1 answer

How to remove untracked files from the current Git working tree?

Hi@akhtar, If you have thousands of file then ...READ MORE

Sep 4 in Git & GitHub by MD
• 66,500 points
65 views
0 votes
1 answer

error: branch 'origin/master' not found.

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

Sep 4 in Git & GitHub by MD
• 66,500 points
63 views
0 votes
1 answer

How to delete a remote Git tag?

Hi@MD, It is very simple to delete a ...READ MORE

Sep 4 in Git & GitHub by akhtar
• 28,720 points
59 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 in Git & GitHub by MD
• 66,500 points
46 views
0 votes
1 answer

How do I rename a local Git branch?

Hi@akhtar, You can rename your branch name. Sometimes ...READ MORE

Sep 4 in Git & GitHub by MD
• 66,500 points
42 views
0 votes
0 answers
0 votes
1 answer

How to clone seperate folder individually rather than the whole repository from GitHub?

Hi@akhtar, I don't think you can do that ...READ MORE

Aug 27 in Git & GitHub by MD
• 66,500 points
42 views
+2 votes
5 answers

error cloning remote repo 'origin'

ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Could ...READ MORE

Jun 3, 2019 in Git & GitHub by Sirajul
• 58,130 points
16,237 views
0 votes
2 answers

fatal: refusing to merge unrelated histories.

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

Jul 31 in Git & GitHub by Sasi
2,268 views
+1 vote
1 answer

master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:abc70/new.git'

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

Feb 14 in Git & GitHub by MD
• 66,500 points
6,672 views
0 votes
1 answer

fatal: could not create work tree dir 'C:/Program Files/Git/data': Permission denied

Hi@akhtar, You may get this error if your ...READ MORE

Jun 14 in Git & GitHub by MD
• 66,500 points
1,521 views
0 votes
1 answer
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 in Git & GitHub by MD
• 66,500 points
899 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 in Git & GitHub by MD
• 66,500 points
2,177 views
0 votes
1 answer

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

Hi@MD, When you installed git in your system ...READ MORE

Apr 29 in Git & GitHub by akhtar
• 28,720 points
1,747 views
0 votes
1 answer

error on branch master nothing to commit, working directory clean, when try to commit my changes.

Hi@akhtar,  If you already have a .git/ folder ...READ MORE

Apr 10 in Git & GitHub by MD
• 66,500 points
2,525 views
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 in Git & GitHub by Niroj
• 67,020 points
397 views
0 votes
0 answers

Git tutorial basics cases are explained here

Here is the link to the blog: https://www.edureka.co/blog/git-tutorial/ I ...READ MORE

Jun 4 in Git & GitHub by Vardhan
• 13,180 points
82 views
0 votes
3 answers

Can anyone explain the git workflow?

HI. The following will help you -Git Workflow Step ...READ MORE

Sep 22 in Git & GitHub by SRI
134 views
0 votes
2 answers

VSCode “please clean your repository working tree before checkout”

One of the ways is to stash ...READ MORE

Apr 22, 2019 in Git & GitHub by Nikhil
22,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 in Git & GitHub by MD
• 66,500 points
1,296 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 10 in Git & GitHub by MD
• 66,500 points
800 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 17 in Git & GitHub by anonymous
687 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 in Git & GitHub by MD
• 66,500 points
352 views
0 votes
1 answer

How to untrack a file in Git?

Hi@akhtar, You can untrack your file from git ...READ MORE

May 4 in Git & GitHub by MD
• 66,500 points
589 views
0 votes
1 answer

How to merge with squash in Git?

Hi@akhtar, If you want to merge your data ...READ MORE

May 13 in Git & GitHub by MD
• 66,500 points
84 views
0 votes
1 answer

How to merge data between Git branches?

Hi@akhtar, You can merge your data between Git ...READ MORE

May 10 in Git & GitHub by MD
• 66,500 points
74 views
0 votes
1 answer

How to create branch in GitHub from my local Git repo?

Hi@akhtar, To sync your existing branch in GitHub, ...READ MORE

May 7 in Git & GitHub by MD
• 66,500 points
92 views
0 votes
1 answer

How to share images in GitHub from local system?

Hi@akhtar, You can follow the below steps to ...READ MORE

May 7 in Git & GitHub by MD
• 66,500 points
82 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 in Git & GitHub by MD
• 66,500 points
144 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 in Git & GitHub by MD
• 66,500 points
140 views
0 votes
1 answer

Implement automation between Git and GitHub.

Hi@akhtar, Every Git repository has a .git/hooks folder with a ...READ MORE

May 4 in Git & GitHub by MD
• 66,500 points
81 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 18 in Git & GitHub by MD
• 66,500 points
277 views
0 votes
1 answer

How to roll back to previous version in Git?

Hi@akhtar, You can roll back your previous version ...READ MORE

Apr 29 in Git & GitHub by MD
• 66,500 points
83 views
+1 vote
1 answer

why we need to add at staging area before commit??

Hi@akhtar, The staging area is like a rough draft space, ...READ MORE

Jul 18 in Git & GitHub by MD
• 66,500 points
83 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 in Git & GitHub by MD
• 66,500 points
628 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 in Git & GitHub by MD
• 66,500 points
521 views
0 votes
2 answers

Are the commands git stash apply and git stash pop the same?

The key difference in is the fact ...READ MORE

Jun 17 in Git & GitHub by Cameron
• 140 points
1,048 views
0 votes
1 answer

Can anyone provide git realtime scenarios?

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

Feb 6 in Git & GitHub by Sirajul
• 58,130 points
401 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 in Git & GitHub by MD
• 66,500 points
287 views