What s difference between git rebase and git commit

0 votes
Can somebody brief about the difference between Git rebase and Git commit commands? when should you exactly use which command?
Oct 5, 2020 in Git & GitHub by anonymous
• 19,610 points
98 views

1 answer to this question.

0 votes

The git commit command captures a snapshot of the project's currently staged changes. Committed snapshots can be thought of as “safe” versions of a project—Git will never change them unless you explicitly ask it to.

Git rebase gets all unique commits from both branches and applies them one by one. Git rebase rewrites commit history but doesn’t create an extra commit for merging.

answered Oct 6, 2020 by Lyana

Related Questions In Git & GitHub

0 votes
2 answers

What's the difference between git push and git commit?

I installed ubuntu on vagrant and gave ...READ MORE

answered Jan 2, 2019 in Git & GitHub by Ali
• 11,300 points
1,227 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 294 views
0 votes
3 answers

difference between git remote and git clone

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

answered Jul 10, 2020 in Git & GitHub by anonymous
6,353 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
4,755 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 17, 2020 in Git & GitHub by anonymous
1,435 views
0 votes
1 answer

Difference between git stash pop and git stash apply.

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

answered Nov 20, 2020 in Git & GitHub by anonymous
262 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,072 views
+2 votes
1 answer