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 in Git & GitHub by anonymous
• 19,570 points
47 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 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,270 points
679 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,570 points

closed Nov 25, 2019 by Sirajul 218 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 in Git & GitHub by anonymous
4,490 views
0 votes
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,107 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 in Git & GitHub by anonymous
820 views
0 votes
1 answer

Difference between git stash pop and git stash apply.

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

answered 6 days ago in Git & GitHub by anonymous
111 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
809 views
+2 votes
1 answer