Git
a free and open source distributed version control system
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550513/pasted-from-clipboard.png)
Index
- What is Git and why Git?
- Basic Introduction
- Gitk - a graphical history viewer
- Merge vs Rebase ? when to use what?
- Stashing VS Squashing
- Cherry-pick patch to branches
-
Git Cli
- Baisc commands (init/clone, add, commit, push, stash)
- Destructive commands (rebase, reset, force update)
- Update Comment message (--amend vs rebase -i)
- Get full file history of moved file
- Reverting a merge Commit (Revert Vs reset)
Index
- Git Cli Scenario which may not be handle with IDE's
- SVN to Git Migration
- Remove Secrets from git commits
- Repository itself moved
- Push Old code where many jira's in commits are closed
- Moving a file from one project to other project
- Pro ductivity hacks
- git alias
- Configure Default Editor
- Git ssh
Title Text
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6551329/pasted-from-clipboard.png)
Git WorkFlow
- Working Tree
- Staging Area
- Local Branch
- Remote
- Stashing Area
Each layer hold the Complete snapshot reference of code at that given moment
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550888/pasted-from-clipboard.png)
Git WorkFlow
Working Tree
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550888/pasted-from-clipboard.png)
The Currnet working folder
Git WorkFlow
Staging Area`
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550888/pasted-from-clipboard.png)
Place where we select files which can be add to commit
Git WorkFlow
Local Branch
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550888/pasted-from-clipboard.png)
Local Repo where our changes are saved
Git WorkFlow
Remote Repo
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550888/pasted-from-clipboard.png)
Git server Repo where our changes are stored
Git WorkFlow
Stashing Area
A Place to park our current change
![](https://s3.amazonaws.com/media-p.slid.es/uploads/963299/images/6550888/pasted-from-clipboard.png)
Stash Area
Title Text
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
deck
By raji sekar
deck
- 678