fatal: The current branch master has no upstream branch

0 votes

Hi Guys,

I am trying to push my file from local system to GitHub. But I am getting this below error.

fatal: The current branch master has no upstream branch.

How can I solve this error?

Apr 30 in Git & GitHub by akhtar
• 11,270 points
111 views

1 answer to this question.

0 votes

Hi@akhtar,

You got this error, because you did not link your GitHub branch to your local branch. Use the below given command.

$ git push --set-upstream index.html master

Hope this will help.

answered Apr 30 by MD
• 24,500 points

Related Questions In Git & GitHub

0 votes
0 answers
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

answered Apr 29 in Git & GitHub by MD
• 24,500 points
230 views
0 votes
1 answer
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
498 views
0 votes
1 answer
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

answered Apr 10 in Git & GitHub by MD
• 24,500 points
385 views