What s the difference between git push and git commit

0 votes
What's the difference between git push and git commit? I know it's probably a stupid doubt but this really got me confused.
Jan 3, 2019 in Git & GitHub by Ali
• 11,360 points
3,395 views

2 answers to this question.

0 votes

There are basically three areas when you're working with git:

Work area -> Staging area -> Local repository -> Remote repository(Github)

  • When you create any file you're working in the work area
  • When you do a git add filename, you add the file from the working area to the staging area
  • When you do git commit, it adds the file from staging area to local repository
  • When you do a git push, it adds the file from the local repository to a remote repository like GitHub.
answered Jan 3, 2019 by Vishnu
0 votes

I installed ubuntu on vagrant and gave password configuration as Yes in SSHD_Config file but it ended up throwing an error.

I dont know what's going wrong. 

answered Jan 3, 2019 by Ali
• 11,360 points

Related Questions In Git & GitHub

0 votes
1 answer

What's difference between git rebase and git commit?

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

answered Oct 6, 2020 in Git & GitHub by Lyana
1,007 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

answered Jul 18, 2020 in Git & GitHub by anonymous
8,906 views
+1 vote
1 answer

difference between git fetch and git pull

Both fetch and pull are used to ...READ MORE

answered Jun 27, 2018 in Git & GitHub by anonymous
6,258 views
0 votes
0 answers

Difference between git rebase and git merge? Which among them is better to use?

Difference between git rebase and git merge? ...READ MORE

Nov 25, 2019 in Git & GitHub by anonymous
• 19,610 points

closed Nov 25, 2019 by Sirajul 932 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,944 views
+2 votes
1 answer
0 votes
3 answers

difference between git remote and git clone

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

answered Jul 11, 2020 in Git & GitHub by anonymous
23,173 views
0 votes
1 answer

Configure Git and GitHub

In version control with Git, we deal ...READ MORE

answered Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,450 points
727 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP