Git
Rewriting History
-
This includes
- changing commit messages
- making changes in older commits
- deleting commits
- combining commits
-
Rewriting the commit messsage of latest commit (git commit –amend)
- Git has interactive rebase where you can rewrite history
- View classroom recording for examples
detached head
- HEAD should look at branch not at commit
- When HEAD looks at commit this state is called as DETACHED HEAD and this is a faulty state
Recover a deleted commit
- Watch recording
Remote Repo
- Remote Repositories can be hosted
- on any of your organizational servers (self hosted git)
- Gitolite
- Github enteprise
- Gitlab
- on cloud hosted (we create account)
- Every Remote Repository uses the git and in addition to this it will have
- daemon (for accepting connections)
- protocols:
- https
- ssh
- git
- protocols:
- usermangement
- daemon (for accepting connections)
- We have understood that adding remote repository leads to remote branches
